mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Add next & previous to Rules interface (#35900)
This commit is contained in:
parent
d311e1d311
commit
f294b49f63
2
types/slate/index.d.ts
vendored
2
types/slate/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user