Skip to content

Commit cba231e

Browse files
author
hirsch88
committed
Make auth0 types global
1 parent 3d1026c commit cba231e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/types/auth0.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Type definitions for the auth0 responses.
66
*/
77

8-
declare module 'auth0' {
8+
declare namespace auth0 {
99

1010
interface User {
1111
user_id: string;
@@ -36,3 +36,6 @@ declare module 'auth0' {
3636
}
3737

3838
}
39+
40+
export as namespace auth0;
41+
export = auth0;

src/types/my-express.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import * as expressLib from 'express';
10-
import * as auth0 from 'auth0';
1110
import * as resources from 'resources';
1211

1312
declare namespace myExpress {

0 commit comments

Comments
 (0)