UNPKG

@polkadot/types-codec

Version:
19 lines (18 loc) 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isize = void 0; const I32_js_1 = require("./I32.js"); /** * @name ISize * @description * A System default signed number, typically used in RPC to report non-consensus * data. It is a wrapper for [[I32]] as a WASM default (as generated by Rust bindings). * It is not to be used, since it creates consensus mismatches. */ class isize extends I32_js_1.i32 { constructor(registry, value) { super(registry, value); throw new Error('The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly.'); } } exports.isize = isize;