@polkadot/types-codec
Version:
Implementation of the SCALE codec
22 lines (21 loc) • 684 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.VecAny = void 0;
const Array_js_1 = require("../abstract/Array.js");
/**
* @name VecAny
* @description
* This manages codec arrays, assuming that the inputs are already of type Codec. Unlike
* a vector, this can be used to manage array-like structures with variable arguments of
* any types
*/
class VecAny extends Array_js_1.AbstractArray {
/**
* @description Returns the base runtime type name for this instance
*/
toRawType() {
// FIXME This is basically an any type, cannot instantiate via createType
return 'Vec<Codec>';
}
}
exports.VecAny = VecAny;
;