UNPKG

811 BJavaScriptView Raw
1"use strict";
2// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3// Node module: @loopback/repository
4// This file is licensed under the MIT License.
5// License text available at https://opensource.org/licenses/MIT
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.NullType = void 0;
8/* eslint-disable @typescript-eslint/no-explicit-any */
9/**
10 * Null type
11 */
12class NullType {
13 constructor() {
14 this.name = 'boolean';
15 }
16 isInstance(value) {
17 return value === null;
18 }
19 defaultValue() {
20 return null;
21 }
22 isCoercible(value) {
23 return value == null;
24 }
25 coerce(value) {
26 return null;
27 }
28 serialize(value) {
29 return null;
30 }
31}
32exports.NullType = NullType;
33//# sourceMappingURL=null.js.map
\No newline at end of file