Skip to content

Commit

Permalink
fix(nuxt-community#486): import Auth type in other files which use it
Browse files Browse the repository at this point in the history
Also, import @nuxt/auth relatively in the typescript example's package.json
  • Loading branch information
tpscrpt committed Apr 18, 2020
1 parent 4c40756 commit bf525a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/with-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@nuxt/types": "^0.6.1",
"@nuxt/typescript-build": "^0.5.6",
"@nuxt/typescript-runtime": "^0.3.8",
"@nuxtjs/auth": "^4.8.4",
"@nuxtjs/auth": "../../",
"@nuxtjs/axios": "^5.8.0",
"@nuxtjs/toast": "^3.3.0",
"@types/node": "^12.12.11",
Expand Down
1 change: 0 additions & 1 deletion types/auth.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ export default class Auth<T = any> {
refreshTokens(): Promise<any>;
token: Token;
refreshToken: Token;

}
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

import Auth from "./auth"
export * from "./auth";
export * from "./refreshController";
export * from "./requestHandler";
Expand Down
3 changes: 2 additions & 1 deletion types/refreshController.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Auth } from './index';
import Auth from './auth';

export default class RefreshController {
constructor(scheme: any);
scheme: any;
Expand Down
4 changes: 2 additions & 2 deletions types/token.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import TokenStatus from "./tokenStatus";
import { Auth } from './index';
import Auth from './auth';

export interface TokenBase {
export abstract class TokenBase {
constructor(auth: any);
$auth: Auth;
get(): any;
Expand Down

0 comments on commit bf525a8

Please sign in to comment.