Skip to content

Instantly share code, notes, and snippets.

@sodle
Created May 27, 2019 21:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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