@@ -75,7 +75,7 @@ export type PreloadedQueryInner_DEPRECATED<
7575 + id : ?string ,
7676 + name : string ,
7777 + source : ?Observable < GraphQLResponse > ,
78- + variables : $ElementType < TQuery , 'variables' > ,
78+ + variables : TQuery [ 'variables' ] ,
7979 + status : PreloadQueryStatus ,
8080| } ;
8181
@@ -100,7 +100,7 @@ export type PreloadedQueryInner<
100100 + networkCacheConfig : ?CacheConfig ,
101101 + source : ?Observable < GraphQLResponse > ,
102102 + kind : 'PreloadedQuery' ,
103- + variables : $ElementType < TQuery , 'variables' > ,
103+ + variables : TQuery [ 'variables' ] ,
104104| } ;
105105
106106export type PreloadQueryStatus = { |
@@ -203,14 +203,11 @@ export type PreloadProps<
203203// Return type of `loadEntryPoint(...)`
204204export type PreloadedEntryPoint < TEntryPointComponent > = $ReadOnly < { |
205205 dispose : ( ) => void ,
206- entryPoints : $PropertyType <
207- ElementConfig < TEntryPointComponent > ,
208- 'entryPoints' ,
209- > ,
210- extraProps : $PropertyType < ElementConfig < TEntryPointComponent > , 'extraProps' > ,
206+ entryPoints : ElementConfig < TEntryPointComponent > [ 'entryPoints' ] ,
207+ extraProps : ElementConfig < TEntryPointComponent > [ 'extraProps' ] ,
211208 getComponent : ( ) => TEntryPointComponent ,
212209 isDisposed : boolean ,
213- queries : $PropertyType < ElementConfig < TEntryPointComponent > , 'queries' > ,
210+ queries : ElementConfig < TEntryPointComponent > [ 'queries' ] ,
214211 rootModuleID : string ,
215212| } > ;
216213
@@ -227,10 +224,9 @@ type ComponentFromEntryPoint<+TEntryPoint> = $Call<
227224 TEntryPoint ,
228225> ;
229226
230- export type EntryPointElementConfig < + TEntryPoint > = $PropertyType <
231- ElementConfig < ComponentFromEntryPoint < TEntryPoint >> ,
232- 'props' ,
233- > ;
227+ export type EntryPointElementConfig < + TEntryPoint > = ElementConfig <
228+ ComponentFromEntryPoint < TEntryPoint > ,
229+ > [ 'props' ] ;
234230
235231export type ThinQueryParams <
236232 TQuery : OperationType ,
@@ -239,7 +235,7 @@ export type ThinQueryParams<
239235 environmentProviderOptions ?: ?TEnvironmentProviderOptions ,
240236 options ?: ?PreloadOptions ,
241237 parameters : PreloadableConcreteRequest < TQuery > ,
242- variables : $ElementType < TQuery , 'variables' > ,
238+ variables : TQuery [ 'variables' ] ,
243239| } > ;
244240
245241type ThinNestedEntryPointParams < TEntryPointParams , TEntryPoint > = $ReadOnly < { |
@@ -264,14 +260,14 @@ export type ExtractEntryPointTypeHelper = <
264260export type EntryPoint < TEntryPointParams , + TEntryPointComponent > =
265261 InternalEntryPointRepresentation<
266262 TEntryPointParams ,
267- $PropertyType < ElementConfig < TEntryPointComponent > , 'queries'> ,
268- $PropertyType < ElementConfig < TEntryPointComponent > , 'entryPoints'> ,
269- $PropertyType < ElementConfig < TEntryPointComponent > , 'props'> ,
270- $PropertyType < ElementConfig < TEntryPointComponent > , 'extraProps'> ,
263+ ElementConfig < TEntryPointComponent > [ 'queries'] ,
264+ ElementConfig< TEntryPointComponent > [ 'entryPoints'] ,
265+ ElementConfig< TEntryPointComponent > [ 'props'] ,
266+ ElementConfig< TEntryPointComponent > [ 'extraProps'] ,
271267 > ;
272268
273269type ExtractFirstParam = < P , R > ((P) => R ) => P ;
274- type GetPreloadPropsType < T > = $ElementType < T , 'getPreloadProps '> ;
270+ type GetPreloadPropsType < T > = T[ 'getPreloadProps'] ;
275271export type PreloadParamsOf< T > = $Call<
276272 ExtractFirstParam ,
277273 GetPreloadPropsType < T > ,
0 commit comments