@aedart/contracts
Version:
The Ion contracts package. Contains types, interfaces and unique identifiers
51 lines (46 loc) • 1.19 kB
JavaScript
/**
* @aedart/contracts
*
* BSD-3-Clause, Copyright (c) 2023-present Alin Eugen Deac <aedart@gmail.com>.
*/
;
/**
* The kind of element that is being decorated
*
* @see https://github.com/tc39/proposal-decorators
*/
var Kind;
(function (Kind) {
Kind[Kind["class"] = 1] = "class";
Kind[Kind["method"] = 2] = "method";
Kind[Kind["getter"] = 3] = "getter";
Kind[Kind["setter"] = 4] = "setter";
Kind[Kind["field"] = 5] = "field";
Kind[Kind["accessor"] = 6] = "accessor";
})(Kind || (Kind = {}));
var Kind$1 = Kind;
/**
* Support Meta identifier
*
* @type {Symbol}
*/
const SUPPORT_META = Symbol('@aedart/contracts/support/meta');
/**
* The well-known symbol for metadata
* @see https://github.com/tc39/proposal-decorator-metadata
*
* @type {symbol}
*/
const METADATA = Symbol.for('metadata');
/**
* Symbol used for "target" metadata
*
* @type {symbol}
*/
const TARGET_METADATA = Symbol('target_metadata');
exports.Kind = Kind$1;
exports.METADATA = METADATA;
exports.SUPPORT_META = SUPPORT_META;
exports.TARGET_METADATA = TARGET_METADATA;
module.exports = Object.assign(exports.default, exports);
//# sourceMappingURL=meta.cjs.map