woocommerce/packages/woocommerce-blocks/assets/js/base/components/state-input/StateInputProps.ts

16 lines
345 B
TypeScript
Raw Normal View History

2021-12-10 12:03:04 +00:00
export interface StateInputProps {
className?: string;
label: string;
id: string;
autoComplete?: string;
value: string;
country: string;
onChange: ( value: string ) => void;
required?: boolean;
errorMessage?: string;
}
export type StateInputWithStatesProps = StateInputProps & {
states: Record< string, Record< string, string > >;
};