We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decorators in 4.3.x can't use Object.defineProperty anymore.
export function ObservableProperty (fireName: string) { return function (target: Observable<any>, key: string) { // eslint-disable-line let property = target[key] const getter = () => property const setter = (newVal: unknown) => { target.fire(fireName, { [key]: newVal, [`old${key.replace(key[0], key[0].toUpperCase())}`]: property, }) property = newVal } Object.defineProperty(target, key, { get: getter, set: setter, enumerable: true, configurable: true, }) } }
暂定处理方法:等待装饰器提案完善
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Decorators in 4.3.x can't use Object.defineProperty anymore.
暂定处理方法:等待装饰器提案完善
The text was updated successfully, but these errors were encountered: