web-api-hooks
Version:
Essential set of React Hooks for convenient Web API consumption.
11 lines (10 loc) • 407 B
TypeScript
export declare type EventArgs<T> = Omit<T, keyof Event>;
export declare type EventMap<T> = T extends Window ? WindowEventMap : T extends Document ? DocumentEventMap : {
[key: string]: Event;
};
export declare type JSONValue = string | number | boolean | JSONArray | JSONObject | null;
export interface JSONArray extends Array<JSONValue> {
}
export interface JSONObject {
[key: string]: JSONValue;
}