import { createDecoratorOrDecoratorFactory , MemberDescriptor , isMethod , isAccessor } from "@esfx/decorators-stage1-core" ; /**
 * Makes a method or accessor configurable.
 */ export const configurable = createDecoratorOrDecoratorFactory ( ( member ) => { if ( ! isMethod ( member ) && ! isAccessor ( member ) ) throw new TypeError ( `'@configurable' is only supported on methods or accessors.` ) ; member . descriptor . configurable = true ; } ) ;