File tree Expand file tree Collapse file tree 6 files changed +17
-25
lines changed Expand file tree Collapse file tree 6 files changed +17
-25
lines changed Original file line number Diff line number Diff line change 1
- declare namespace api {
2
- const auth : {
3
- signin ( parameters : {
4
- login : string ;
5
- password : string ;
6
- } ) : Promise < { status : string ; token : string } > ;
7
- signout ( ) : Promise < { status : string } > ;
8
- restore ( parameters : { token : string } ) : Promise < { status : string } > ;
9
- } ;
1
+ declare namespace api . auth {
2
+ function signin ( parameters : {
3
+ login : string ;
4
+ password : string ;
5
+ } ) : Promise < { status : string ; token : string } > ;
6
+ function signout ( ) : Promise < { status : string } > ;
7
+ function restore ( parameters : { token : string } ) : Promise < { status : string } > ;
10
8
}
Original file line number Diff line number Diff line change 1
- export interface Config {
2
- static : {
1
+ declare namespace config {
2
+ const static : {
3
3
port : number ;
4
4
} ;
5
- api : {
5
+ const api : {
6
6
port : number ;
7
7
transport : 'http' | 'https' ;
8
8
} ;
9
- sandbox : {
9
+ const sandbox : {
10
10
timeout : number ;
11
11
displayErrors : boolean ;
12
12
} ;
13
- db : {
13
+ const db : {
14
14
host : string ;
15
15
port : number ;
16
16
database : string ;
17
17
user : string ;
18
18
password : string ;
19
19
} ;
20
- pg : {
20
+ const pg : {
21
21
database : string ;
22
22
user : string ;
23
23
password : string ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- export function hash ( password : string ) : Promise < string > ;
1
+ declare namespace common {
2
+ function hash ( password : string ) : Promise < string > ;
3
+ }
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const sandbox = {
15
15
db : Object . freeze ( db ) ,
16
16
console : Object . freeze ( logger ) ,
17
17
common : Object . freeze ( common ) ,
18
- config : Object . freeze ( config ) ,
19
18
} ;
20
19
const apiPath = path . join ( process . cwd ( ) , './api' ) ;
21
20
const routing = { } ;
Original file line number Diff line number Diff line change 9
9
"noEmit" : true ,
10
10
"skipLibCheck" : true
11
11
},
12
- "include" : [" *.ts " ]
12
+ "include" : [" *" , " **/* " ]
13
13
}
You can’t perform that action at this time.
0 commit comments