Closed timotheeguerin closed 2 months ago
$$
for known configsThis would reserve $
for decorators. For back compat we would still check if the $
variant of $lib
, $flags
, etc. is a config object and use that instead.
Issues with this approach:
foo-bar
)@$flags
$decorators
exportthis allows to exports all decorators
export const $decorators = {
flags: $flags,
"foo-bar": fooBarDecorator
}
this could even solve the confusing way namespace are defined in JS
export const $decorators = {
Azure.Core: {
flags: $flags,
"foo-bar": fooBarDecorator
}
}
est: 5
Problem
Cannot name a decorator
flags
lib
linter
oronEmit
(special exports) Due to how to use certain reserved name in JS we cannot name a decorator with those namesAdd a new
$decorators
exportwe can additionally provide a typed helper
Additional items