0.1.6 • Published 6 months ago
@types/twilio-common v0.1.6
Installation
npm install --save @types/twilio-common
Summary
This package contains type definitions for twilio-common (https://github.com/twilio/twilio-common.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/twilio-common.
index.d.ts
// Type definitions for twilio-common 0.1
// Project: https://github.com/twilio/twilio-common.js, https://twilio.com
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { EventEmitter } from 'events';
export class AccessManager extends EventEmitter {
readonly expires?: Date | undefined;
readonly identity?: string | undefined;
readonly isExpired: boolean;
readonly token: string;
constructor(initialToken: string);
updateToken(newToken: string): Promise<AccessManager>;
on(type: 'error', listener: (error: Error) => void): this;
on(type: 'tokenExpired' | 'tokenWillExpire' | 'tokenUpdated', listener: (manager: AccessManager) => void): this;
}
Additional Details
- Last updated: Thu, 23 Dec 2021 23:35:56 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by DefinitelyTyped.