MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / NullType

Class NullType

packages/repository/src/types/null.ts:13–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 * Null type
12 */
13export class NullType implements Type<null> {
14 readonly name = 'boolean';
15
16 isInstance(value: any) {
17 return value === null;
18 }
19
20 defaultValue() {
21 return null;
22 }
23
24 isCoercible(value: any): boolean {
25 return value == null;
26 }
27
28 coerce(value: any) {
29 return null;
30 }
31
32 serialize(value: boolean | null | undefined) {
33 return null;
34 }
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected