Add missing options property for pollyjs__persister (#37218)

* Add missing `options` property

* Make options readonly accordingly to its usage
This commit is contained in:
Silver Chen 2019-07-31 19:08:13 +02:00 committed by Jesse Trinity
parent 947119c984
commit aa76e038e4
2 changed files with 5 additions and 0 deletions

View File

@ -1,10 +1,12 @@
// Type definitions for @pollyjs/persister 2.0
// Project: https://github.com/netflix/pollyjs/tree/master/packages/@pollyjs/persister
// Definitions by: feinoujc <https://github.com/feinoujc>
// silverchen <https://github.com/silverchen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default class Persister {
static readonly name: string;
static readonly type: string;
readonly options: any;
persist(): Promise<void>;
}

View File

@ -2,3 +2,6 @@ import Persister from '@pollyjs/persister';
Persister.name;
Persister.type;
const persister = new Persister();
persister.options;