mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
16 lines
296 B
TypeScript
16 lines
296 B
TypeScript
import Html, { Rule } from "slate-html-serializer";
|
|
|
|
const myRule: Rule = {
|
|
deserialize: (el, next) => {},
|
|
serialize: () => null
|
|
};
|
|
|
|
const serializer = new Html({
|
|
rules: [myRule]
|
|
});
|
|
|
|
const serializerWithDefaultBlock = new Html({
|
|
rules: [myRule],
|
|
defaultBlock: 'unstyled'
|
|
});
|