Skip to content

Commit

Permalink
fix: type of AccessTokenCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Jan 17, 2022
1 parent 02733aa commit af51769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/oidc-client-ts.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```ts

// @public (undocumented)
export type AccessTokenCallback = (...ev: unknown[]) => void;
export type AccessTokenCallback = (...ev: unknown[]) => (Promise<void> | void);

// @public (undocumented)
export class AccessTokenEvents {
Expand Down
2 changes: 1 addition & 1 deletion src/AccessTokenEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { User } from "./User";
/**
* @public
*/
export type AccessTokenCallback = (...ev: unknown[]) => void;
export type AccessTokenCallback = (...ev: unknown[]) => (Promise<void> | void);

/**
* @public
Expand Down

0 comments on commit af51769

Please sign in to comment.