Skip to content

Commit

Permalink
Add typings to es5 folder as well
Browse files Browse the repository at this point in the history
  • Loading branch information
torarvid committed Sep 3, 2018
1 parent 04174ea commit c7c1ce4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -5,5 +5,6 @@
!monetization.js
!payment.js
!es5/*.js
!es5/*.d.ts
!es5/*.js.map
!src/**/*
1 change: 1 addition & 0 deletions build.sh
Expand Up @@ -10,3 +10,4 @@ webpack src/es5/identity.js -o es5/identity.js $COMMON_OPTS $CJS_OPTS
webpack src/es5/monetization.js -o es5/monetization.js $COMMON_OPTS $CJS_OPTS
webpack src/es5/payment.js -o es5/payment.js $COMMON_OPTS $CJS_OPTS
webpack src/es5/global.js -o es5/global.js $COMMON_OPTS $WINDOW_OPTS
cp src/es5/*.d.ts es5/
11 changes: 11 additions & 0 deletions src/es5/index.d.ts
@@ -0,0 +1,11 @@
export class Identity {
constructor(options: {
clientId: string,
env?: string | null,
log?: (message?: any, ...params: any[] ) => void,
redirectUri?: string | null })

hasSession(): Promise<any>
_enableSessionCaching: boolean;
_itpMode: boolean;
}

0 comments on commit c7c1ce4

Please sign in to comment.