@wordpress/components
Version:
UI components for WordPress.
22 lines • 716 B
TypeScript
/**
* External dependencies
*/
import type { Reducer, SyntheticEvent } from 'react';
/**
* Internal dependencies
*/
import type { Action, InputAction } from './actions';
export interface InputState {
_event?: SyntheticEvent;
error: unknown;
initialValue?: string;
isDirty: boolean;
isDragEnabled: boolean;
isDragging: boolean;
isPressEnterToChange: boolean;
value?: string;
}
export type StateReducer<SpecializedAction = {}> = Reducer<InputState, SpecializedAction extends Action ? InputAction | SpecializedAction : InputAction>;
export declare const initialStateReducer: StateReducer;
export declare const initialInputControlState: InputState;
//# sourceMappingURL=state.d.ts.map