diff --git a/src/__tests__/codegen.test.ts b/src/__tests__/codegen.test.ts index b899ad4..c998cd6 100644 --- a/src/__tests__/codegen.test.ts +++ b/src/__tests__/codegen.test.ts @@ -37,14 +37,14 @@ describe('codegen', () => { "file": "ct.mjs", }, { - "code": "const pluginCtMap = { + "code": "type PluginCtMapType = { 'foo.100': '#fff', 'foo.200': {"base":"#000","lg":"#111"}, 'bar.100': 'red', 'bar.200': 'blue', - } as const; + } - export const ct: (alias: T) => typeof pluginCtMap[T];", + export const ct: (alias: T) => PluginCtMapType[T];", "file": "ct.d.ts", }, ],