|
@@ -11,3 +11,14 @@ export type TresVNodeType = VNodeTypes & {
|
|
|
}
|
|
|
export type TresVNode = VNode & { children?: Array<VNode>; type: TresVNodeType }
|
|
|
export type TresAttributes = Record<string, any> & { args?: number[] }
|
|
|
+
|
|
|
+declare global {
|
|
|
+ // Define the window interface, with type annotations for the properties and methods of the window object
|
|
|
+ interface Window {
|
|
|
+ // Define the location property, with a type of Location
|
|
|
+ __TRES__: {
|
|
|
+ app: App
|
|
|
+ version: string
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|