UNPKG

@coveo/platform-client

Version:

The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.

14 lines (13 loc) 353 B
import { ResponseBodyFormat } from '../handlers/index.js'; export interface AsyncSupplier<T> { (): Promise<T>; } export interface Supplier<T> { (): T; } export interface Predicate<T> { (value: T): boolean; } export interface CoveoPlatformClientRequestInit extends Omit<RequestInit, 'method'> { responseBodyFormat?: ResponseBodyFormat; }