Skip to content

Commit 03cfe20

Browse files
committed
Fix config types
1 parent 888dc5b commit 03cfe20

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/apollo-codegen-core/src/compiler/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface CompilerOptions {
4242
namespace?: string;
4343
generateOperationIds?: boolean;
4444
operationIdsPath?: string;
45+
useReadOnlyTypes?: boolean;
4546
}
4647

4748
export interface CompilerContext {

packages/apollo-codegen-flow/src/helpers.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ const builtInScalarMap = {
2222
[GraphQLID.name]: t.stringTypeAnnotation()
2323
};
2424

25-
export interface FlowCompilerOptions extends CompilerOptions {
26-
useReadOnlyTypes: boolean;
27-
}
28-
2925
export function createTypeAnnotationFromGraphQLTypeFunction(
30-
compilerOptions: FlowCompilerOptions
26+
compilerOptions: CompilerOptions
3127
): Function {
3228
const arrayType = compilerOptions.useReadOnlyTypes
3329
? "$ReadOnlyArray"

packages/apollo-codegen-flow/src/language.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export type ObjectProperty = {
1818

1919
export interface FlowCompilerOptions extends CompilerOptions {
2020
useFlowExactObjects: boolean;
21-
useReadOnlyTypes: boolean;
2221
}
2322

2423
export default class FlowGenerator {

0 commit comments

Comments
 (0)