File tree Expand file tree Collapse file tree
apollo-codegen-core/src/compiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export interface CompilerOptions {
4242 namespace ?: string ;
4343 generateOperationIds ?: boolean ;
4444 operationIdsPath ?: string ;
45+ useReadOnlyTypes ?: boolean ;
4546}
4647
4748export interface CompilerContext {
Original file line number Diff line number Diff 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-
2925export function createTypeAnnotationFromGraphQLTypeFunction (
30- compilerOptions : FlowCompilerOptions
26+ compilerOptions : CompilerOptions
3127) : Function {
3228 const arrayType = compilerOptions . useReadOnlyTypes
3329 ? "$ReadOnlyArray"
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export type ObjectProperty = {
1818
1919export interface FlowCompilerOptions extends CompilerOptions {
2020 useFlowExactObjects : boolean ;
21- useReadOnlyTypes : boolean ;
2221}
2322
2423export default class FlowGenerator {
You can’t perform that action at this time.
0 commit comments