mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
721 B
TypeScript
21 lines
721 B
TypeScript
// Type definitions for slate-plain-serializer 0.6
|
|
// Project: https://github.com/ianstormtaylor/slate
|
|
// Definitions by: Brandon Shelton <https://github.com/YangusKhan>
|
|
// Martin Kiefel <https://github.com/mkiefel>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
import { BlockProperties, MarkProperties, Value } from 'slate';
|
|
|
|
export interface DeserializeOptions {
|
|
toJson?: boolean;
|
|
defaultBlock?: BlockProperties;
|
|
defaultMarks?: MarkProperties[] | Set<MarkProperties>;
|
|
}
|
|
|
|
declare namespace Plain {
|
|
function deserialize(string: string, options?: DeserializeOptions): Value;
|
|
function serialize(value: Value): string;
|
|
}
|
|
|
|
export default Plain;
|