Remove unused BigInt extension (#5447)

This commit is contained in:
Jaco
2023-01-26 09:25:01 +02:00
committed by GitHub
parent 29537ea283
commit 1ce1f0a981
@@ -1,16 +0,0 @@
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { BigInt } from '@polkadot/x-bigint';
// @ts-expect-error not extensible, we make it extensible here
export abstract class AbstractBigInt extends BigInt {
// @ts-expect-error super() not required, the self magic does that
constructor (value: string | number | bigint | boolean) {
const self = Object(BigInt(value)) as typeof AbstractBigInt;
Object.setPrototypeOf(self, AbstractBigInt.prototype);
return self;
}
}