UNPKG

@woocommerce/data

Version:
31 lines 905 B
/** * Internal dependencies */ import { OptionsState } from './types'; /** * Get option from state tree. * * @param {Object} state - Reducer state * @param {Array} name - Option name */ export declare const getOption: (state: OptionsState, name: string) => unknown; /** * Determine if an options request resulted in an error. * * @param {Object} state - Reducer state * @param {string} name - Option name */ export declare const getOptionsRequestingError: (state: OptionsState, name: string) => {}; /** * Determine if options are being updated. * * @param {Object} state - Reducer state */ export declare const isOptionsUpdating: (state: OptionsState) => boolean; /** * Determine if an options update resulted in an error. * * @param {Object} state - Reducer state */ export declare const getOptionsUpdatingError: (state: OptionsState) => {}; //# sourceMappingURL=selectors.d.ts.map