Files
AIsouler-GKD_subscription/src/utils.ts
2024-01-29 11:01:55 +08:00

10 lines
184 B
TypeScript

export const tryRun = <T>(fc: () => T, fallbackFc: (e: unknown) => T) => {
try {
return fc();
} catch (e) {
return fallbackFc(e);
}
};
export const OPEN_AD_ORDER = -10;