shlink-web-client/shlink-web-client.d.ts

18 lines
541 B
TypeScript
Raw Normal View History

2020-08-29 14:51:53 +03:00
declare module 'event-source-polyfill' {
declare class EventSourcePolyfill {
public onmessage?: ({ data }: { data: string }) => void;
public onerror?: ({ status }: { status: number }) => void;
public close: () => void;
public constructor(hubUrl: URL, options?: any);
}
2020-08-22 09:47:19 +03:00
}
2020-08-29 14:51:53 +03:00
2020-08-29 15:16:37 +03:00
declare module 'csvjson' {
export declare class CsvJson {
public toObject<T>(content: string): T[];
2022-03-13 20:56:42 +03:00
public toCSV<T>(data: T[], options: { headers: 'full' | 'none' | 'relative' | 'key'; wrap?: true }): string;
2020-08-29 15:16:37 +03:00
}
}
2020-08-29 14:51:53 +03:00
declare module '*.png'