Skip to content

Commit

Permalink
chore: fix refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Jun 11, 2022
1 parent ef1f264 commit 29c58e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/highlight/src/lib/core/build-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export function createThemeFactory<
}

export const createTheme = createThemeFactory(
'@codeimage/base-highlight',
'@codeimage/base-theme',
<T extends CustomTheme>(_: T): T => _,
);
14 changes: 7 additions & 7 deletions packages/highlight/src/lib/core/custom-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ export interface TerminalThemeProperties {

export interface CustomThemeProperties {
/**
* @description Label of highlight box preview
* @description Label of theme box preview
*/
label: string;
/**
* @description Background of highlight box preview
* @description Background of theme box preview
*/
previewBackground: string;
/**
* @description Enable/disable dark mode highlight
* @description Enable/disable dark mode theme
*/
darkMode: boolean;
/**
* @description MacOsTerminal highlight properties
* @description MacOsTerminal theme properties
*/
terminal: TerminalThemeProperties;
}

export interface CustomTheme {
/**
* Custom highlight identifier
* Custom theme identifier
*/
id: string;
/**
* Custom highlight editor base highlight extension
* Custom theme editor base theme extension
*/
editorTheme: Extension;
/**
* Custom highlight properties
* Custom theme properties
*/
properties: CustomThemeProperties;
}
18 changes: 9 additions & 9 deletions packages/highlight/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js",
},
"include": [
"./src",
]
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": [
"./src"
]
}

0 comments on commit 29c58e7

Please sign in to comment.