mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
8585eea9e6
* now with 100% fat free cancellation Co-authored-by: James Gatz <jamesgatzos@gmail.com> * unblock electron 15 * fix cookielist and temp fix curl types * fix types * fix inso * default to verbose inso test * implement readdata function * fix test * revert test changes * isomorphic cancel * reduce typing issues * curl types * turns out the tests were wrong * handle errors * remove unused inso mock * remove request delay * fix lint and add logs * Revert "remove request delay" This reverts commit f07d8c90a7a7279ca10f8a8de1ea0c82caa06390. * simplify and add cancel fallback * skip cancel test * playwright is fast and insomnia is slow * trailing spaces are serious yo * cancel is flake town * hmm * unblock nunjucks and storeTimeline * fix nunjucks tests * preload writeFile * oops forgot to remove the reload * debugging CI takes all day, log stuff and pray * also warn if nunjucks is being lame * Stop using environment variables * revert debugging logs Co-authored-by: James Gatz <jamesgatzos@gmail.com> Co-authored-by: David Marby <david@dmarby.se>
62 lines
1.7 KiB
TypeScript
62 lines
1.7 KiB
TypeScript
declare module '*.svg' {
|
|
const content: any;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.png' {
|
|
const content: any;
|
|
export default content;
|
|
}
|
|
|
|
declare const __DEV__: boolean;
|
|
|
|
declare namespace NodeJS {
|
|
interface Global {
|
|
__DEV__: boolean;
|
|
/** this is required by codemirror/addon/lint/json-lint */
|
|
jsonlint: any;
|
|
/** this is required by codemirror/addon/lint/yaml-lint */
|
|
jsyaml: any;
|
|
}
|
|
}
|
|
|
|
interface Window {
|
|
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: Function;
|
|
main: {
|
|
restart: () => void;
|
|
authorizeUserInWindow: (options: { url: string; urlSuccessRegex?: RegExp; urlFailureRegex?: RegExp; sessionId: string }) => Promise<string>;
|
|
setMenuBarVisibility: (visible: boolean) => void;
|
|
installPlugin: (url: string) => void;
|
|
writeFile: (options: {path: string; content: string}) => Promise<string>;
|
|
cancelCurlRequest: (requestId: string) => void;
|
|
curlRequest: (options: {
|
|
curlOptions: CurlOpt[];
|
|
responseBodyPath: string;
|
|
maxTimelineDataSizeKB: number;
|
|
requestId: string;
|
|
requestBodyPath?: string;
|
|
isMultipart: boolean;
|
|
}) => Promise<{
|
|
patch: ResponsePatch;
|
|
debugTimeline: ResponseTimelineEntry[];
|
|
headerResults: HeaderResult[];
|
|
}>;
|
|
};
|
|
dialog: {
|
|
showOpenDialog: (options: Electron.OpenDialogOptions) => Promise<Electron.OpenDialogReturnValue>;
|
|
showSaveDialog: (options: Electron.SaveDialogOptions) => Promise<Electron.SaveDialogReturnValue>;
|
|
};
|
|
app: {
|
|
getPath: (name: string) => string;
|
|
getAppPath: () => string;
|
|
};
|
|
shell: {
|
|
showItemInFolder: (fullPath: string) => void;
|
|
};
|
|
}
|
|
|
|
// needed for @hot-loader/react-dom in order for TypeScript to build
|
|
declare const __REACT_DEVTOOLS_GLOBAL_HOOK__: undefined | {
|
|
checkDCE: Function;
|
|
};
|