NRC Data
Data getter functions to retrieve NRC JSON.
Types
type NrcState = {
id: string;
code: string;
number: {
en: string;
mm: string;
};
name: {
en: string;
mm: string;
};
};
type NrcTownship = {
id: string;
code: string;
short: {
en: string;
mm: string;
};
name: {
en: string;
mm: string;
};
stateId: string;
stateCode: string;
};
type NrcType = {
id: string;
name: {
en: string;
mm: string;
};
};
Functions
Get all NRC data
function getNrcData(): {
nrcStates: NrcState[];
nrcTownships: NrcTownship[];
nrcTypes: NrcType[];
};
Get all NRC States
function getNrcStates(): NrcState[];
Get all NRC Townships
function getNrcTownships(): NrcTownship[];
Get all NRC Types
function getNrcTypes(): NrcType[];
Find NRC State by Id
function getNrcStateById(id: string): NrcState;
Find NRC Township by Id
function getNrcTownshipById(id: string): NrcTownship;
Find NRC Type by Id
function getNrcTypeById(id: string): NrcType;
Find NRC Townships with State Id
function getNrcTownshipsByStateId(stateId: string): NrcTownship[];
Last updated