Skip to content

Instantly share code, notes, and snippets.

@sodle
Created May 27, 2019 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sodle/1173508af207a6bc277e8f3102f823de to your computer and use it in GitHub Desktop.
Save sodle/1173508af207a6bc277e8f3102f823de to your computer and use it in GitHub Desktop.
Starting point for react-load-script typedefs
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