Skip to main content

Function: fetchPostOrPosts()

fetchPostOrPosts<T, P>(query, _config, fetcher): Promise<FetchPostsOrPostsReturnType<T>>

Defined in: packages/core/src/data/fetchFn/fetchPostOrPosts.ts:27

Type Parameters​

T​

T extends PostEntity = PostEntity

P​

P extends PostOrPostsParams = PostOrPostsParams

Parameters​

query​

QueryProps<P> = {}

_config​

undefined | HeadlessConfig

fetcher​

undefined | PostOrPostsFetchStrategy<T, P, PostOrPostsFetchStrategyResult<T>>

Returns​

Promise<FetchPostsOrPostsReturnType<T>>