india-state-district
Version:
A lightweight TypeScript library for handling Indian states and districts data with type safety and easy integration
25 lines (24 loc) • 605 B
TypeScript
export declare const DEFAULT_OPTIONS: {
stateSelectId: string;
districtSelectId: string;
placeholder: {
state: string;
district: string;
};
displayStateCode: boolean;
validation: {
required: boolean;
};
};
export declare const ERROR_MESSAGES: {
ELEMENTS_NOT_FOUND: string;
INVALID_STATE: string;
INVALID_DISTRICT: string;
REQUIRED_FIELDS: string;
STATE_REQUIRED: string;
DISTRICT_REQUIRED: string;
CUSTOM_VALIDATION: string;
NO_STATE_SELECTED: string;
INVALID_STATE_CODE: string;
INITIALIZATION_ERROR: string;
};