Skip to content

Commit 5e7a23b

Browse files
committed
run tsc (without gulp) to create lib dir
1 parent 0b127ff commit 5e7a23b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
lib/*
23
dist

src/api.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ interface TokenResponse{
1212
id_token: string;
1313
}
1414

15-
interface EmptyResponse{
16-
}
17-
1815
export function signup(credentials: Credentials): Promise<string> {
1916
return new Promise((fulfill, reject) => {
2017
if (inflight) {
@@ -48,7 +45,7 @@ export function login(credentials: Credentials): Promise<string> {
4845
.then((result) => result.id_token);
4946
}
5047

51-
export function logout(): Promise<EmptyResponse> {
48+
export function logout(): Promise<{}> {
5249
return new Promise(function(fulfill) {
5350
let iframe = document.createElement('iframe');
5451
iframe.onload = () => {
@@ -66,7 +63,7 @@ export function logout(): Promise<EmptyResponse> {
6663
});
6764
}
6865

69-
export function requestPasswordReset(username: string): Promise<EmptyResponse> {
66+
export function requestPasswordReset(username: string): Promise<{}> {
7067
return get(url('/password/reset'), {username});
7168
}
7269

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"include": [
3-
"./src/*.ts"
3+
"./src/*"
44
],
55
"compilerOptions": {
6-
"allowJs": true,
6+
"declaration": true,
7+
"declarationDir": "./lib",
8+
"outDir": "./lib",
9+
710
"target": "es5",
811
"noImplicitAny": true,
912
"strictNullChecks": true,

0 commit comments

Comments
 (0)