@@ -137,7 +137,7 @@ export function Field(returnTypeFunction: ReturnTypeFunc, options?: IFieldOption
137137 options,
138138 } ) ;
139139
140- return GqlField ( returnTypeFunction , options ) ( prototype , property_key ) ;
140+ return GqlField ( returnTypeFunction , options as FieldOptions ) ( prototype , property_key ) ;
141141 } ;
142142}
143143
@@ -170,7 +170,7 @@ export function Query(returnTypeFunction: ReturnTypeFunc, options?: Omit<QueryOp
170170 } ) ;
171171 }
172172
173- return GqlQuery ( returnTypeFunction , options ) ( prototype , property_key , descriptor ) ;
173+ return GqlQuery ( returnTypeFunction , options as QueryOptions ) ( prototype , property_key , descriptor ) ;
174174 } ;
175175}
176176
@@ -185,7 +185,7 @@ export function Mutation(returnTypeFunction: ReturnTypeFunc, options?: Omit<Muta
185185 } ) ;
186186 }
187187
188- return GqlMutation ( returnTypeFunction , options ) ( prototype , property_key , descriptor ) ;
188+ return GqlMutation ( returnTypeFunction , options as MutationOptions ) ( prototype , property_key , descriptor ) ;
189189 } ;
190190}
191191
@@ -200,7 +200,7 @@ export function ResolveField(returnTypeFunction: ReturnTypeFunc, options?: Omit<
200200 } ) ;
201201 }
202202
203- return GqlResolveField ( returnTypeFunction , options ) ( prototype , property_key , descriptor ) ;
203+ return GqlResolveField ( returnTypeFunction , options as ResolveFieldOptions ) ( prototype , property_key , descriptor ) ;
204204 } ;
205205}
206206
0 commit comments