0.1.6 • Published 6 months ago

@types/twilio-common v0.1.6

Weekly downloads
230
License
MIT
Repository
github
Last release
6 months ago

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.

0.1.4

8 months ago

0.1.6

6 months ago

0.1.5

7 months ago

0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

5 years ago

0.1.0

6 years ago