7
7
``` ts
8
8
function addProps(
9
9
children : VNodeArrayChildren ,
10
- callback : (vnode : VNode ) => (Record <string , any > | null | void ),
10
+ callback : (vnode : VNode ) => (Record <string , unknown > | null | void ),
11
11
options : IterationOptions = COMPONENTS_AND_ELEMENTS
12
12
): VNodeArrayChildren
13
13
```
@@ -179,7 +179,7 @@ Returns the text content of a text node. If the passed value is not a text node
179
179
### Type
180
180
181
181
` ` ` ts
182
- function getType(vnode: any ):
182
+ function getType(vnode: unknown ):
183
183
'comment' |
184
184
'component' |
185
185
'element' |
@@ -204,7 +204,7 @@ If the passed value doesn't appear to be convertible to a VNode, the returned va
204
204
### Type
205
205
206
206
` ` ` ts
207
- function isComment(vnode: any ): vnode is (null | undefined | boolean | (VNode & { type: typeof Comment }))
207
+ function isComment(vnode: unknown ): vnode is (null | undefined | boolean | (VNode & { type: typeof Comment }))
208
208
` ` `
209
209
210
210
### Description
@@ -220,7 +220,7 @@ Returns `true` if the passed value is considered to be a comment. This could be
220
220
### Type
221
221
222
222
` ` ` ts
223
- function isComponent(vnode: any ): vnode is (VNode & { type: Component })
223
+ function isComponent(vnode: unknown ): vnode is (VNode & { type: Component })
224
224
` ` `
225
225
226
226
### Description
@@ -238,7 +238,7 @@ Returns `true` if the passed value is a component VNode. This includes both stat
238
238
### Type
239
239
240
240
` ` ` ts
241
- function isElement(vnode: any ): vnode is (VNode & { type: string })
241
+ function isElement(vnode: unknown ): vnode is (VNode & { type: string })
242
242
` ` `
243
243
244
244
### Description
@@ -278,7 +278,7 @@ This helper is written using `someChild()`. If the exact criteria it uses to dec
278
278
### Type
279
279
280
280
` ` ` ts
281
- function isFragment(vnode: any ): vnode is ((VNode & { type: typeof Fragment }) | VNodeArrayChildren)
281
+ function isFragment(vnode: unknown ): vnode is ((VNode & { type: typeof Fragment }) | VNodeArrayChildren)
282
282
` ` `
283
283
284
284
### Description
@@ -294,7 +294,7 @@ Returns `true` if the passed value is considered a fragment. This could either b
294
294
### Type
295
295
296
296
` ` ` ts
297
- function isFunctionalComponent(vnode: any ): vnode is (VNode & { type: FunctionalComponent })
297
+ function isFunctionalComponent(vnode: unknown ): vnode is (VNode & { type: FunctionalComponent })
298
298
` ` `
299
299
300
300
### Description
@@ -312,7 +312,7 @@ Returns `true` if the passed value is a VNode for a [functional component](https
312
312
### Type
313
313
314
314
` ` ` ts
315
- function isStatefulComponent(vnode: any ): vnode is (VNode & { type: ComponentOptions })
315
+ function isStatefulComponent(vnode: unknown ): vnode is (VNode & { type: ComponentOptions })
316
316
` ` `
317
317
318
318
### Description
@@ -330,7 +330,7 @@ Returns `true` if the passed value is a VNode for a stateful (i.e. non-functiona
330
330
### Type
331
331
332
332
` ` ` ts
333
- function isStatic(vnode: any ): vnode is (VNode & { type: typeof Static })
333
+ function isStatic(vnode: unknown ): vnode is (VNode & { type: typeof Static })
334
334
` ` `
335
335
336
336
### Description
@@ -346,7 +346,7 @@ Returns `true` if the passed value is a static VNode. Static VNodes are a specia
346
346
### Type
347
347
348
348
` ` ` ts
349
- function isText(vnode: any ): vnode is (string | number | (VNode & { type: typeof Text }))
349
+ function isText(vnode: unknown ): vnode is (string | number | (VNode & { type: typeof Text }))
350
350
` ` `
351
351
352
352
### Description
0 commit comments