import TypeLiteral from './TypeLiteral' ; import { Type } from '@manta-style/core' ; export default class ObjectKeyword extends Type { public deriveLiteral ( ) { return new TypeLiteral ( ) ; } public validate ( value ) { return typeof value === 'object' ; } public format ( value ) { if ( typeof value === 'object' ) { return value ; } else { return { } ; } } }