mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Add delimiter option to slate-plain-serializer * Fix semicolon separator * Removed patch version
27 lines
898 B
TypeScript
27 lines
898 B
TypeScript
// Type definitions for slate-plain-serializer 0.7
|
|
// Project: https://github.com/ianstormtaylor/slate
|
|
// Definitions by: Brandon Shelton <https://github.com/YangusKhan>
|
|
// Martin Kiefel <https://github.com/mkiefel>
|
|
// Alex Nault <https://github.com/anault>
|
|
// 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>;
|
|
delimiter?: string;
|
|
}
|
|
|
|
export interface SerializeOptions {
|
|
delimiter?: string;
|
|
}
|
|
|
|
declare namespace Plain {
|
|
function deserialize(string: string, options?: DeserializeOptions): Value;
|
|
function serialize(value: Value, options?: SerializeOptions): string;
|
|
}
|
|
|
|
export default Plain;
|