@@ -46,7 +46,6 @@ export interface TypeScriptPluginParsedConfig extends ParsedTypesConfig {
4646 useImplementingTypes : boolean ;
4747}
4848
49- export const EXACT_SIGNATURE = `type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };` ;
5049export const MAKE_OPTIONAL_SIGNATURE = `type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };` ;
5150export const MAKE_MAYBE_SIGNATURE = `type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };` ;
5251export const MAKE_EMPTY_SIGNATURE = `type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };` ;
@@ -159,7 +158,6 @@ export class TsVisitor<
159158 const definitions : string [ ] = [
160159 this . getMaybeValue ( ) ,
161160 this . getInputMaybeValue ( ) ,
162- this . getExactDefinition ( ) ,
163161 this . getMakeOptionalDefinition ( ) ,
164162 this . getMakeMaybeDefinition ( ) ,
165163 this . getMakeEmptyDefinition ( ) ,
@@ -176,12 +174,6 @@ export class TsVisitor<
176174 return definitions ;
177175 }
178176
179- public getExactDefinition ( ) : string {
180- if ( this . config . onlyEnums ) return '' ;
181-
182- return `${ this . getExportPrefix ( ) } ${ EXACT_SIGNATURE } ` ;
183- }
184-
185177 public getMakeOptionalDefinition ( ) : string {
186178 return `${ this . getExportPrefix ( ) } ${ MAKE_OPTIONAL_SIGNATURE } ` ;
187179 }
0 commit comments