Skip to content

Commit

Permalink
Add string array to populate types
Browse files Browse the repository at this point in the history
  • Loading branch information
douwepausma committed Jan 13, 2025
1 parent 0a7a652 commit 9590050
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 9590050

Please sign in to comment.