File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
+ lib /*
2
3
dist
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ interface TokenResponse{
12
12
id_token : string ;
13
13
}
14
14
15
- interface EmptyResponse {
16
- }
17
-
18
15
export function signup ( credentials : Credentials ) : Promise < string > {
19
16
return new Promise ( ( fulfill , reject ) => {
20
17
if ( inflight ) {
@@ -48,7 +45,7 @@ export function login(credentials: Credentials): Promise<string> {
48
45
. then ( ( result ) => result . id_token ) ;
49
46
}
50
47
51
- export function logout ( ) : Promise < EmptyResponse > {
48
+ export function logout ( ) : Promise < { } > {
52
49
return new Promise ( function ( fulfill ) {
53
50
let iframe = document . createElement ( 'iframe' ) ;
54
51
iframe . onload = ( ) => {
@@ -66,7 +63,7 @@ export function logout(): Promise<EmptyResponse> {
66
63
} ) ;
67
64
}
68
65
69
- export function requestPasswordReset ( username : string ) : Promise < EmptyResponse > {
66
+ export function requestPasswordReset ( username : string ) : Promise < { } > {
70
67
return get ( url ( '/password/reset' ) , { username} ) ;
71
68
}
72
69
Original file line number Diff line number Diff line change 1
1
{
2
2
"include" : [
3
- " ./src/*.ts "
3
+ " ./src/*"
4
4
],
5
5
"compilerOptions" : {
6
- "allowJs" : true ,
6
+ "declaration" : true ,
7
+ "declarationDir" : " ./lib" ,
8
+ "outDir" : " ./lib" ,
9
+
7
10
"target" : " es5" ,
8
11
"noImplicitAny" : true ,
9
12
"strictNullChecks" : true ,
You can’t perform that action at this time.
0 commit comments