1
0
mirror of https://github.com/lexogrine/cs2-react-hud.git synced 2025-12-10 02:42:49 +01:00
cs2-react-hud/src/main.tsx

20 lines
457 B
TypeScript

import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import * as process from "process";
globalThis.process = process;
declare global {
interface Window {
ipcApi: {
send: (channel: string, ...arg: any) => void;
receive: (channel: string, func: (...arg: any) => void) => void;
};
}
}
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)