Skip to content

Commit 2c53b45

Browse files
authoredOct 21, 2024
fix(javascript): use unknown over any (#4011)
1 parent f9b9c8d commit 2c53b45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎templates/javascript/clients/client/model/clientMethodProps.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export type ReplaceAllObjectsOptions = {
175175
/**
176176
* The array of `objects` to store in the given Algolia `indexName`.
177177
*/
178-
objects: Array<Record<string, any>>;
178+
objects: Array<Record<string, unknown>>;
179179
180180
/**
181181
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{! parameter that is generic and have a default value }}
22
{{#vendorExtensions.x-has-child-generic}}
3-
<T = Record<string, any>>
3+
<T = Record<string, unknown>>
44
{{/vendorExtensions.x-has-child-generic}}
55
{{#vendorExtensions.x-is-generic}}
6-
<T = Record<string, any>>
7-
{{/vendorExtensions.x-is-generic}}
6+
<T = Record<string, unknown>>
7+
{{/vendorExtensions.x-is-generic}}

0 commit comments

Comments
 (0)