mirror of
https://git.meshkee.com/BaloutPastry/backend.git
synced 2026-08-11 22:31:00 +04:30
30 lines
691 B
TypeScript
30 lines
691 B
TypeScript
/** Districts of Qom used across settings (shipping, branches). */
|
|
export const DISTRICTS = [
|
|
'پردیسان',
|
|
'جعفریه',
|
|
'زنبیلآباد',
|
|
'سالاریه',
|
|
'صفاییه',
|
|
'عطاران',
|
|
'انارستان',
|
|
'بنیاد',
|
|
'آذر',
|
|
'هنرستان',
|
|
'باجک',
|
|
'دورشهر',
|
|
'خیابان ارم',
|
|
'شهرک قدس',
|
|
'شهرک امام حسن',
|
|
'شهرک مهدیه',
|
|
'قلعه کامکار',
|
|
'نیروگاه',
|
|
'حرم',
|
|
'بلوار امین',
|
|
] as const;
|
|
|
|
export type District = (typeof DISTRICTS)[number];
|
|
|
|
export function isDistrict(value: string): value is District {
|
|
return (DISTRICTS as readonly string[]).includes(value);
|
|
}
|