@aedart/contracts
Version:
The Ion contracts package. Contains types, interfaces and unique identifiers
33 lines (30 loc) • 794 B
JavaScript
/**
* @aedart/contracts
*
* BSD-3-Clause, Copyright (c) 2023-present Alin Eugen Deac <aedart@gmail.com>.
*/
/**
* Support Mixins identifier
*
* @type {Symbol}
*/
const SUPPORT_MIXINS = Symbol('@aedart/contracts/support/mixins');
/**
* Symbol used by "apply mixin" and "is application of" functions
*
* @type {symbol}
*/
const APPLIED_MIXIN = Symbol.for('__mixwith_appliedMixin');
/**
* Symbol used by the mixin wrap and unwrap functions
*
* @type {symbol}
*/
const WRAPPED_MIXIN = Symbol.for('__mixwith_wrappedMixin');
/**
* Symbol used for by a "cache" mixin to ensure a mixin is only applied once
*
* @type {symbol}
*/
const CACHED_APPLICATIONS = Symbol.for('__mixwith_cachedApplications');
export { APPLIED_MIXIN, CACHED_APPLICATIONS, SUPPORT_MIXINS, WRAPPED_MIXIN };