Skip to content

Commit

Permalink
wip: satisfies as causes build error
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Dec 21, 2023
1 parent fe7916b commit 9e8768c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions website/src/utils/prismDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/

import {themes, type PrismTheme} from 'prism-react-renderer';
import {themes} from 'prism-react-renderer';

// TODO satisfies cause an error

const baseTheme = themes.vsDark;

Expand Down Expand Up @@ -78,4 +80,4 @@ export default {
},
},
],
} satisfies PrismTheme;
};
6 changes: 4 additions & 2 deletions website/src/utils/prismLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/

import {themes, type PrismTheme} from 'prism-react-renderer';
import {themes} from 'prism-react-renderer';

// TODO satisfies cause an error

const baseTheme = themes.github;

Expand Down Expand Up @@ -99,4 +101,4 @@ export default {
},
},
],
} satisfies PrismTheme;
};

0 comments on commit 9e8768c

Please sign in to comment.