mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
10 lines
184 B
TypeScript
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;
|