@@ -105,7 +105,7 @@ export function getHoverInformation(
105105 return '' ;
106106}
107107
108- function renderMdCodeStart ( into : string [ ] , options : any ) {
108+ function renderMdCodeStart ( into : string [ ] , options : HoverConfig ) {
109109 if ( options . useMarkdown ) {
110110 text ( into , '```graphql\n' ) ;
111111 }
@@ -119,7 +119,7 @@ function renderMdCodeEnd(into: string[], options: any) {
119119export function renderField (
120120 into : string [ ] ,
121121 typeInfo : AllTypeInfo ,
122- options : any ,
122+ options : HoverConfig ,
123123) {
124124 renderQualifiedField ( into , typeInfo , options ) ;
125125 renderTypeAnnotation ( into , typeInfo , options , typeInfo . type ! ) ;
@@ -128,7 +128,7 @@ export function renderField(
128128function renderQualifiedField (
129129 into : string [ ] ,
130130 typeInfo : AllTypeInfo ,
131- options : any ,
131+ options : HoverConfig ,
132132) {
133133 if ( ! typeInfo . fieldDef ) {
134134 return ;
@@ -144,7 +144,7 @@ function renderQualifiedField(
144144export function renderDirective (
145145 into : string [ ] ,
146146 typeInfo : AllTypeInfo ,
147- _options : any ,
147+ _options : HoverConfig ,
148148) {
149149 if ( ! typeInfo . directiveDef ) {
150150 return ;
@@ -153,7 +153,11 @@ export function renderDirective(
153153 text ( into , name ) ;
154154}
155155
156- export function renderArg ( into : string [ ] , typeInfo : AllTypeInfo , options : any ) {
156+ export function renderArg (
157+ into : string [ ] ,
158+ typeInfo : AllTypeInfo ,
159+ options : HoverConfig ,
160+ ) {
157161 if ( typeInfo . directiveDef ) {
158162 renderDirective ( into , typeInfo , options ) ;
159163 } else if ( typeInfo . fieldDef ) {
@@ -174,7 +178,7 @@ export function renderArg(into: string[], typeInfo: AllTypeInfo, options: any) {
174178function renderTypeAnnotation (
175179 into : string [ ] ,
176180 typeInfo : AllTypeInfo ,
177- options : any ,
181+ options : HoverConfig ,
178182 t : GraphQLType ,
179183) {
180184 text ( into , ': ' ) ;
@@ -184,7 +188,7 @@ function renderTypeAnnotation(
184188export function renderEnumValue (
185189 into : string [ ] ,
186190 typeInfo : AllTypeInfo ,
187- options : any ,
191+ options : HoverConfig ,
188192) {
189193 if ( ! typeInfo . enumValue ) {
190194 return ;
@@ -198,7 +202,7 @@ export function renderEnumValue(
198202export function renderType (
199203 into : string [ ] ,
200204 typeInfo : AllTypeInfo ,
201- options : any ,
205+ options : HoverConfig ,
202206 t : GraphQLType ,
203207) {
204208 if ( ! t ) {
@@ -219,7 +223,7 @@ export function renderType(
219223
220224function renderDescription (
221225 into : string [ ] ,
222- options : any ,
226+ options : HoverConfig ,
223227 // TODO: Figure out the right type for this one
224228 def : any ,
225229) {
@@ -237,14 +241,14 @@ function renderDescription(
237241
238242function renderDeprecation (
239243 into : string [ ] ,
240- _options : any ,
241- def : GraphQLField < any , any > | GraphQLFieldConfig < any , any > ,
244+ _options : HoverConfig ,
245+ def : GraphQLField < unknown , unknown > | GraphQLFieldConfig < unknown , unknown > ,
242246) {
243247 if ( ! def ) {
244248 return ;
245249 }
246250
247- const reason = def . deprecationReason || null ;
251+ const reason = def . deprecationReason ;
248252 if ( ! reason ) {
249253 return ;
250254 }
0 commit comments