import { Annotation , Type } from '@manta-style/core' ; export default class ParenthesizedType extends Type { private readonly type : Type ; constructor ( type ) { super ( ) ; this . type = type ; } public getType ( ) { return this . type ; } public deriveLiteral ( annotations ) { return this . type . deriveLiteral ( annotations ) ; } public validate ( value ) { return this . type . validate ( value ) ; } public format ( value ) { return this . type . format ( value ) ; } }