Skip to content

Commit c8352dc

Browse files
committed
Remove Exact from typescript plugin
1 parent 0475225 commit c8352dc

File tree

1 file changed

+0
-8
lines changed
  • packages/plugins/typescript/typescript/src

1 file changed

+0
-8
lines changed

packages/plugins/typescript/typescript/src/visitor.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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] };`;
5049
export const MAKE_OPTIONAL_SIGNATURE = `type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };`;
5150
export const MAKE_MAYBE_SIGNATURE = `type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };`;
5251
export 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

Comments
 (0)