summaryrefslogtreecommitdiff
path: root/frontend/global.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/global.d.ts')
-rw-r--r--frontend/global.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontend/global.d.ts b/frontend/global.d.ts
new file mode 100644
index 00000000..bc193a94
--- /dev/null
+++ b/frontend/global.d.ts
@@ -0,0 +1,10 @@
+import type * as React from 'react';
+import type * as ReactDOM from 'react-dom';
+import type * as JSXRuntime from 'react/jsx-runtime';
+declare global {
+ interface Window {
+ SP_REACT: typeof React;
+ SP_REACTDOM: typeof ReactDOM;
+ SP_JSX: typeof JSXRuntime;
+ }
+}