// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Codec, Constructor, InterfaceTypes, Registry } from '../types'; import { CodecMap } from './Map'; export class BTreeMap extends CodecMap { public static with (keyType: Constructor | keyof InterfaceTypes, valType: Constructor | keyof InterfaceTypes): Constructor> { return class extends BTreeMap { constructor (registry: Registry, value?: Uint8Array | string | Map) { super(registry, keyType, valType, value, 'BTreeMap'); } }; } }