UNPKG

@envelop/rate-limiter

Version:

This plugins uses [`graphql-rate-limit`](https://github.com/teamplanes/graphql-rate-limit#readme) in order to limit the rate of calling queries and mutations.

14 lines (13 loc) 429 B
import { Store } from './store'; import { Identity } from './types'; interface StoreData { readonly [identity: string]: { readonly [fieldIdentity: string]: readonly number[]; }; } declare class InMemoryStore implements Store { state: StoreData; setForIdentity(identity: Identity, timestamps: readonly number[]): void; getForIdentity(identity: Identity): readonly number[]; } export { InMemoryStore };