7 lines
206 B
TypeScript
7 lines
206 B
TypeScript
const STATUS_POSTFIX = "-status";
|
|
|
|
export const isStatusId = (rawId: string) => rawId.endsWith(STATUS_POSTFIX);
|
|
|
|
export const getStatusId = (rawId: string) =>
|
|
Number(rawId.replace(STATUS_POSTFIX, ""));
|