mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add SyntheticEvent type
This commit is contained in:
parent
148162eac3
commit
5bddeaef13
3
types/slate/index.d.ts
vendored
3
types/slate/index.d.ts
vendored
@ -11,6 +11,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
import * as Immutable from "immutable";
|
||||
import { SyntheticEvent } from "react";
|
||||
|
||||
export class Data extends Immutable.Record({}) {
|
||||
[key: string]: any;
|
||||
@ -1545,7 +1546,7 @@ export class Editor {
|
||||
|
||||
change(customChange: (change: Change, ...args: any[]) => Change): void;
|
||||
command(name: string, ...args: any[]): void;
|
||||
event(handler: string, event: Event): void;
|
||||
event(handler: string, event: Event | SyntheticEvent): void;
|
||||
query(query: string, ...args: any[]): any;
|
||||
registerCommand(command: string): void;
|
||||
registerQuery(query: string): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user