Skip to content

Commit

Permalink
fix: add string array to populate types
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly authored Jan 24, 2025
2 parents 9ac67c7 + 3101e37 commit 22fc464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/content-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ export interface BaseQueryParams {
*
* Can be:
* - a `string` to specify relation paths as `populate=name`
* - an `array` of strings to specify multiple relation paths
* - an `object` to enable deeper population configurations
*/
populate?: string | Record<string, unknown>;
populate?: string | string[] | Record<string, unknown>;

/**
* Specifies the fields of documents to include in the response.
Expand Down

0 comments on commit 22fc464

Please sign in to comment.