Skip to content

Commit d1df59c

Browse files
committed
Typescript: add type definitions
1 parent 2014a7c commit d1df59c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as loadScript } from './loadScript';
2+
export { default as loadScriptPromised } from './loadScriptPromised';

loadScript.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Needs a name due to a bug in the ESLint TS parser
2+
export default function defaultExport(src: string, cb: Function, attrs?: object): void;

loadScriptPromised.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Needs a name due to a bug in the ESLint TS parser
2+
export default function defaultExport(url: string): Promise<void>;

0 commit comments

Comments
 (0)