mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add missing options property for pollyjs__persister (#37218)
* Add missing `options` property * Make options readonly accordingly to its usage
This commit is contained in:
parent
947119c984
commit
aa76e038e4
2
types/pollyjs__persister/index.d.ts
vendored
2
types/pollyjs__persister/index.d.ts
vendored
@ -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>;
|
||||
}
|
||||
|
||||
@ -2,3 +2,6 @@ import Persister from '@pollyjs/persister';
|
||||
|
||||
Persister.name;
|
||||
Persister.type;
|
||||
|
||||
const persister = new Persister();
|
||||
persister.options;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user