-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.d.ts
44 lines (36 loc) · 1009 Bytes
/
.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// declare hassConnection as type of createConnection on window
import { type CSSInterpolation } from "@emotion/serialize";
import { type Connection, type Auth } from "home-assistant-js-websocket";
declare module '*.png' {
const value: string;
export = value;
}
declare module '*.css' {
const value: string;
export = value;
}
declare module '*.jpg' {
const value: string;
export = value;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import React from "react";
declare module "react" {
interface Attributes {
css?: CSSInterpolation;
cssStyles?: CSSInterpolation;
}
}
declare module "*.svg?react" {
import * as React from "react";
const ReactComponent: React.FunctionComponent<
React.ComponentProps<"svg"> & { title?: string }
>;
export default ReactComponent;
}
declare global {
interface Window {
hassConnection: Promise<{ auth: Auth; conn: Connection }>;
hassConnectionReady?: (hassConnection: Window["hassConnection"]) => void;
}
}