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