Skip to content

Commit

Permalink
Merge pull request #7 from ioslh/v2
Browse files Browse the repository at this point in the history
chore: add type declaration file
  • Loading branch information
YanagiEiichi authored Jul 22, 2020
2 parents 1749ffe + a15c149 commit c519939
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
interface Config {
[key: string]: any;
}

type Path = string;

interface SdkWithPath {
[key: string]: SdkWithPath;
<T = any>(): Promise<T>;
}

declare interface SdkClass {
new(path?: Path, config?: Config): SdkWithPath;
}

declare const APISDK: SdkClass;

export default APISDK;

0 comments on commit c519939

Please sign in to comment.