Add next & previous to Rules interface (#35900)

This commit is contained in:
Ludvig 2019-06-08 03:41:26 +02:00 committed by Andrew Casey
parent d311e1d311
commit f294b49f63

View File

@ -42,6 +42,7 @@ export interface Rules {
marks?: Array<{
type: string | ((type: string) => boolean)
}>;
next?: ObjectAndType | ObjectAndType[];
nodes?: Array<{
min?: number;
max?: number;
@ -50,6 +51,7 @@ export interface Rules {
normalize?: (editor: Editor, error: SlateError) => void;
parent?: ObjectAndType | ObjectAndType[];
text?: RegExp | ((text: string) => boolean);
previous?: ObjectAndType | ObjectAndType[];
}
export interface SchemaProperties {