feat: méthode WebSocket HA pour Lovelace + vue lumières créée
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
export interface Map<K, V> {
|
||||
clear(): void;
|
||||
delete(key: K): boolean;
|
||||
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
|
||||
get(key: K): V | undefined;
|
||||
has(key: K): boolean;
|
||||
set(key: K, value?: V): this;
|
||||
readonly size: number;
|
||||
}
|
||||
export declare class BrowserHeaders {
|
||||
headersMap: {
|
||||
[key: string]: string[];
|
||||
};
|
||||
constructor(init?: BrowserHeaders.ConstructorArg, options?: {
|
||||
splitValues: boolean;
|
||||
});
|
||||
appendFromString(str: string): void;
|
||||
delete(key: string, value?: string): void;
|
||||
append(key: string, value: string | string[]): void;
|
||||
set(key: string, value: string | string[]): void;
|
||||
has(key: string, value?: string): boolean;
|
||||
get(key: string): string[];
|
||||
forEach(callback: (key: string, values: string[]) => void): void;
|
||||
toHeaders(): Headers;
|
||||
}
|
||||
export declare namespace BrowserHeaders {
|
||||
type HeaderObject = {
|
||||
[key: string]: string | string[];
|
||||
};
|
||||
type HeaderMap = Map<string, string | string[]>;
|
||||
type ConstructorArg = HeaderObject | HeaderMap | BrowserHeaders | Headers | string;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
export declare interface WindowHeaders {
|
||||
get(key: string): string[];
|
||||
getAll(key: string): string[];
|
||||
has(key: string): boolean;
|
||||
delete(key: string): void;
|
||||
keys(): any;
|
||||
entries(): any;
|
||||
forEach(callback: (value: string, key: string) => void): any;
|
||||
append(key: string, value: string): void;
|
||||
set(key: string, value: string): void;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { BrowserHeaders } from "./BrowserHeaders";
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import { WindowHeaders } from "./WindowHeaders";
|
||||
export declare function iterateHeaders(headers: WindowHeaders, callback: (entry: string[]) => void): void;
|
||||
export declare function iterateHeadersKeys(headers: WindowHeaders, callback: (key: string) => void): void;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user