Skip to content

Commit

Permalink
fix(javascript): use unknown over any (#4011)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Oct 21, 2024
1 parent f9b9c8d commit 2c53b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export type ReplaceAllObjectsOptions = {
/**
* The array of `objects` to store in the given Algolia `indexName`.
*/
objects: Array<Record<string, any>>;
objects: Array<Record<string, unknown>>;
/**
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{! parameter that is generic and have a default value }}
{{#vendorExtensions.x-has-child-generic}}
<T = Record<string, any>>
<T = Record<string, unknown>>
{{/vendorExtensions.x-has-child-generic}}
{{#vendorExtensions.x-is-generic}}
<T = Record<string, any>>
{{/vendorExtensions.x-is-generic}}
<T = Record<string, unknown>>
{{/vendorExtensions.x-is-generic}}

0 comments on commit 2c53b45

Please sign in to comment.