UNPKG

@raccoons-co/genera

Version:

Abstractions on top of Typescript 5.0.

19 lines (18 loc) 540 B
"use strict"; /* * Copyright 2023, Raccoons. Developing simple way to change. * * @license MIT */ Object.defineProperty(exports, "__esModule", { value: true }); const ethics_1 = require("@raccoons-co/ethics"); class ClassFieldDecorator { decorator(initializer) { return function newFieldInitializer(value, context) { ethics_1.Strict.notNull(context); ethics_1.Strict.checkArgument(context.kind === "field"); return initializer; }; } } exports.default = ClassFieldDecorator;