import { Compiler , Parser } from '@crosstype/core' ; import { cast , requireIfExists } from '@crosstype/common' ; import { SpecialKind } from './types' ; const { compiler , parser } = requireIfExists ( '@crosstype/ctl-typescript/dist/tools' , ( ) => import ( '@crosstype/ctl-typescript/dist/tools' ) ) ; export const Config = { name : 'typescript' , shortName : 'ts' , experimental : true , optionsConfig : { } , compiler , parser , specialKind : SpecialKind , CompileOptions : cast < Compiler . OptionsBase > ( ) , CompileHooks : cast < Compiler . HooksBase > ( ) , ParseOptions : cast < Parser . OptionsBase > ( ) , ParseHooks : cast < Parser . HooksBase > ( ) , } ;