UNPKG

@aedart/contracts

Version:

The Ion contracts package. Contains types, interfaces and unique identifiers

35 lines (32 loc) 950 B
/** * @aedart/contracts * * BSD-3-Clause, Copyright (c) 2023-present Alin Eugen Deac <aedart@gmail.com>. */ /** * Support Reflections identifier * * @type {Symbol} */ const SUPPORT_REFLECTIONS = Symbol('@aedart/contracts/support/reflections'); /** * The prototype of {@link Function} * * **Note**: _Prototype is obtained via `Reflect.getPrototypeOf(Function)`_ * * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype * * @type {object} */ const FUNCTION_PROTOTYPE = Reflect.getPrototypeOf(Function); /** * `TypedArray` prototype * * **Note**: _Prototype is obtained via `Reflect.getPrototypeOf(Int8Array)`_ * * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray * * @type {object} */ const TYPED_ARRAY_PROTOTYPE = Reflect.getPrototypeOf(Int8Array); export { FUNCTION_PROTOTYPE, SUPPORT_REFLECTIONS, TYPED_ARRAY_PROTOTYPE };