From 2910cd331ec66b643e30f821d8a460b8c2bf4fdf Mon Sep 17 00:00:00 2001 From: odilitime Date: Fri, 10 Jan 2025 21:22:07 +0000 Subject: [PATCH] revert GoPlusType so it can work with switch statement --- packages/plugin-goplus/src/lib/GoPlusManage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-goplus/src/lib/GoPlusManage.ts b/packages/plugin-goplus/src/lib/GoPlusManage.ts index e7e2c327ffb..eee7eabc8a6 100644 --- a/packages/plugin-goplus/src/lib/GoPlusManage.ts +++ b/packages/plugin-goplus/src/lib/GoPlusManage.ts @@ -1,6 +1,6 @@ -export const GoPlusTypeEnum = { +export const GoPlusType = { EVMTOKEN_SECURITY_CHECK: "EVMTOKEN_SECURITY_CHECK", SOLTOKEN_SECURITY_CHECK: "SOLTOKEN_SECURITY_CHECK", SUITOKEN_SECURITY_CHECK: "SUITOKEN_SECURITY_CHECK", @@ -15,7 +15,7 @@ export const GoPlusTypeEnum = { URL_SECURITY_CHECK: "URL_SECURITY_CHECK", } as const; -export type GoPlusType = (typeof GoPlusTypeEnum)[keyof typeof GoPlusTypeEnum]; +export type GoPlusTypeType = (typeof GoPlusTypeEnum)[keyof typeof GoPlusType]; export type GoPlusParamType = { "type": GoPlusType,