mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #28930 from mkiefel/slate-plain-serializer
Fix slate-plain-serializer's default export
This commit is contained in:
+8
-3
@@ -1,6 +1,7 @@
|
||||
// Type definitions for slate-plain-serializer 0.5
|
||||
// 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.6
|
||||
import { BlockProperties, MarkProperties, Value } from 'slate';
|
||||
@@ -11,5 +12,9 @@ export interface DeserializeOptions {
|
||||
defaultMarks?: MarkProperties[] | Set<MarkProperties>;
|
||||
}
|
||||
|
||||
export function deserialize(string: string, options?: DeserializeOptions): Value;
|
||||
export function serialize(value: Value): string;
|
||||
declare namespace Plain {
|
||||
function deserialize(string: string, options?: DeserializeOptions): Value;
|
||||
function serialize(value: Value): string;
|
||||
}
|
||||
|
||||
export default Plain;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as Plain from "slate-plain-serializer";
|
||||
import Plain from "slate-plain-serializer";
|
||||
import { Value } from "slate";
|
||||
|
||||
const val = Value.create();
|
||||
|
||||
Reference in New Issue
Block a user