| 11 | * Null type |
| 12 | */ |
| 13 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected