mirror of
https://github.com/deiucanta/chatpad.git
synced 2026-03-11 09:04:31 +00:00
Fix typescript error
This commit is contained in:
parent
1fa02b34f4
commit
a18ad930ed
1 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,12 @@
|
|||
import PrismRenderer from "prism-react-renderer/prism";
|
||||
import { Prism } from "prism-react-renderer";
|
||||
|
||||
window.Prism = PrismRenderer;
|
||||
declare global {
|
||||
interface Window {
|
||||
Prism: any;
|
||||
}
|
||||
}
|
||||
|
||||
window.Prism = Prism;
|
||||
|
||||
// Load all languages like this as webpack doesn't detect prism's loadLanguages call and doesn't load any
|
||||
require("prismjs/components/prism-abap");
|
||||
|
|
|
|||
Loading…
Reference in a new issue