Skip to content

Commit

Permalink
fix(codegen): fix missing initializer error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Apr 11, 2024
1 parent 93875d1 commit 13f2164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/codegen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('codegen', () => {
'foo.200': {"base":"#000","lg":"#111"};
'bar.100': 'red';
'bar.200': 'blue';};
export const ct: <T extends keyof PluginCtMapType>(alias: T) => PluginCtMapType[T];",
export declare const ct: <T extends keyof PluginCtMapType>(alias: T) => PluginCtMapType[T];",
"file": "ct.d.ts",
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const codegen = (
const ctDtsFile: ArtifactContent = {
file: `ct.d.${dtsExt}`,
code: `type PluginCtMapType = {${serializeMapTypes(map)}};
export const ct: <T extends keyof PluginCtMapType>(alias: T) => PluginCtMapType[T];`,
export declare const ct: <T extends keyof PluginCtMapType>(alias: T) => PluginCtMapType[T];`,
};

cssFn.files.push(ctFile, ctDtsFile);
Expand Down

0 comments on commit 13f2164

Please sign in to comment.