Created
May 27, 2019 21:08
-
-
Save sodle/1173508af207a6bc277e8f3102f823de to your computer and use it in GitHub Desktop.
Starting point for react-load-script typedefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export = Script; | |
declare interface IScriptProps { | |
attributes?: object | |
onCreate?: () => void, | |
onError: () => void, | |
onLoad: () => void, | |
url: string | |
} | |
declare class Script { | |
props: IScriptProps; | |
state: any; | |
context: any; | |
refs: any; | |
forceUpdate(callback: any): void; | |
render(): any; | |
setState(partialState: any, callback: any): void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment