mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added plain, html, and base64 serializer definitions * add version numbers, fix tslint files * missed renaming the package in comment
11 lines
195 B
TypeScript
11 lines
195 B
TypeScript
import Html, { Rule } from "slate-html-serializer";
|
|
|
|
const myRule: Rule = {
|
|
deserialize: (el, next) => {},
|
|
serialize: () => null
|
|
};
|
|
|
|
const serializer = new Html({
|
|
rules: [myRule]
|
|
});
|