7 lines
250 B
TypeScript
7 lines
250 B
TypeScript
/**
|
|
* Polyfill for Symbol.metadata required by TC39 Stage 3 decorators.
|
|
* Must be imported before any decorator code loads.
|
|
* @see https://github.com/tc39/proposal-decorator-metadata
|
|
*/
|
|
(Symbol as any).metadata ??= Symbol.for('Symbol.metadata');
|