Kaynağa Gözat

Create type of userActivationErrorCode

Shun Miyazawa 3 yıl önce
ebeveyn
işleme
3f878b6f4f

+ 6 - 0
packages/app/src/interfaces/errors/user-activation.ts

@@ -0,0 +1,6 @@
+export const userActivationErrorCode = {
+  TOKEN_NOT_FOUND: 'token-not-found',
+  USER_REGISTRATION_ORDER_IS_NOT_APPROPRIATE: 'user-registration-order-is-not-appropriate',
+} as const;
+
+export type userActivationErrorCode = typeof userActivationErrorCode[keyof typeof userActivationErrorCode];