polkadot-js/api

View on GitHub
packages/api-derive/src/util/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0

export interface DeriveCache {
  del: (key: string) => void;
  forEach: (cb: (key: string, value: any) => void) => void;
  get: <T = any> (key: string) => T | undefined;
  set: (key: string, value: any) => void;
}