UNPKG

@opra/common

Version:
29 lines (28 loc) 692 B
import { __decorate, __metadata } from "tslib"; import { isNull } from 'valgen'; import { DECODER, ENCODER } from '../../constants.js'; import { SimpleType } from '../simple-type.js'; let NullType = class NullType { constructor(properties) { if (properties) Object.assign(this, properties); } [DECODER]() { return isNull; } [ENCODER]() { return isNull; } }; NullType = __decorate([ SimpleType({ name: 'null', description: 'A Null value', nameMappings: { js: 'null', json: 'null', }, }), __metadata("design:paramtypes", [Object]) ], NullType); export { NullType };