nunof07/smalltypes

View on GitHub
src/main/scalar/Undefined.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Scalar } from '@main';

/**
 * Undefined scalar.
 */
export class Undefined implements Scalar<undefined> {
    /**
     * Type determinant.
     */
    public isScalar(): true {
        return true;
    }

    /**
     * Get the value.
     */
    public value(): undefined {
        return undefined;
    }
}