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