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

18 lines
528 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[];
public toCSV<T>(data: T[], options: { headers: 'full' | 'none' | 'relative' | 'key' }): string;
2020-08-29 15:16:37 +03:00
}
}
2020-08-29 14:51:53 +03:00
declare module '*.png'