Skip to content

Instantly share code, notes, and snippets.

@radist2s
Created November 6, 2019 15:39
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 radist2s/d148ef02c9a74934bcf934a7eb5cd06b to your computer and use it in GitHub Desktop.
Save radist2s/d148ef02c9a74934bcf934a7eb5cd06b to your computer and use it in GitHub Desktop.
react-load-script TypeScript definition
declare module 'react-load-script' {
import {Component} from 'react'
export interface ILoadScriptProps {
url: string
onCreate?: () => void
onError?: () => void
onLoad?: () => void
}
export default class LoadScript extends Component<ILoadScriptProps> {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment