UNPKG

413 BJavaScriptView Raw
1/**
2 * Method property decorator. Sets `configurable` flag of
3 * PropertyDescriptor to `false` (same as `@configurable(false)`).
4 * Intended to be used in combination with mixin decorators to enable
5 * partial implementations of mixed-in behaviors in target class and
6 * avoid them being overidden by mixed-in behaviour.
7 */
8export const nomixin = (_, __, descriptor) => {
9 descriptor.configurable = false;
10};