PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
data
export interface ResponseError { code: string; message: string; data: { status: number; [ key: string ]: unknown; }; } export interface ApiResponse { body: Record< string, unknown >; headers: Headers; status: number; } export function assertBatchResponseIsValid( response: unknown ): asserts response is { responses: ApiResponse[]; headers: Headers; } { if ( typeof response === 'object' && response !== null && response.hasOwnProperty( 'responses' ) ) { return; } throw new Error( 'Response not valid' ); } export function assertResponseIsValid( response: unknown ): asserts response is ApiResponse { if ( typeof response === 'object' && response !== null && response.hasOwnProperty( 'body' ) && response.hasOwnProperty( 'headers' ) ) { return; } throw new Error( 'Response not valid' ); }
[+]
..
[+]
schema
[+]
utils
[-] shared-controls.ts
[edit]
[+]
cart
[-] index.js
[edit]
[+]
collections
[-] types.ts
[edit]
[-] constants.js
[edit]
[-] default-states.ts
[edit]
[+]
query-state