Skip to content

Commit

Permalink
Typescript: add type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
calling committed May 17, 2019
1 parent 2014a7c commit d1df59c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as loadScript } from './loadScript';
export { default as loadScriptPromised } from './loadScriptPromised';
2 changes: 2 additions & 0 deletions loadScript.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Needs a name due to a bug in the ESLint TS parser
export default function defaultExport(src: string, cb: Function, attrs?: object): void;
2 changes: 2 additions & 0 deletions loadScriptPromised.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Needs a name due to a bug in the ESLint TS parser
export default function defaultExport(url: string): Promise<void>;

0 comments on commit d1df59c

Please sign in to comment.