@snap/camera-kit
Version:
Camera Kit Web
13 lines • 664 B
TypeScript
/**
* Modifies the provided request object to include a priority field if the lowPriority flag is true.
* Returns the request object unchanged if lowPriority is false.
*
* @internal
*
* @param request The request object to be potentially modified.
* @param lowPriority A boolean flag indicating whether to add a priority field to the request object.
* @returns The modified request object with a priority field if lowPriority is true,
* or the original request object if lowPriority is false.
*/
export declare function withRequestPriority(request: RequestInit, lowPriority: boolean | undefined): RequestInit;
//# sourceMappingURL=utils.d.ts.map