Non enumerable decorator

Decorator that sets the enumerable property of a class field to false.

import { nonenumerable } from 'jodit/core/decorators';

class SomeComponent {
	@nonenumerable
	somePrivateProp: number = 1;

	anotherPublicProp: number = 2;
}

const elm = new SomeComponent();
console.log(Object.keys(elm)); // ['anotherPublicProp']

nonenumerable

nonenumerable(target, propertyKey): void

Parameters

Name Type
target object
propertyKey string

Returns

void

Defined in

src/core/decorators/nonenumerable/nonenumerable.ts#13