我不明白为什么?
export const CompanyProfileStub: Company = {
id: 1
};
我该如何解决?
export interface Company {
id: bigint;
}
基本上,您不能将a分配给a Number
,BigInt
因为它是另一种原始类型。您可以BigInt
使用js的构造函数在JS中创建一个,BigInt
如下所示:
const huge = BigInt(9007199254740991)
或n
在数字的末尾使用,例如:
const huge = 1n
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句