import { Type } from '@manta-style/core' ; import { throwUnableToFormat } from '../utils/errorReporting' ; export default class UndefinedKeyword extends Type { public deriveLiteral ( ) { return this ; } public mock ( ) { return undefined ; } public validate ( value ) { return typeof value === 'undefined' ; } public format ( value ) { if ( typeof value === 'undefined' ) { return value ; } throwUnableToFormat ( { typeName : 'UndefinedKeyword' , inputValue : value , expectedValue : undefined , } ) ; } }