mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-23 07:38:58 -04:00
Add type definition to plugin insomnia attribute (#4023)
This commit is contained in:
@@ -11,7 +11,27 @@ import { getTempDir } from '../common/electron-helpers';
|
||||
const YARN_DEPRECATED_WARN = /(?<keyword>warning)(?<dependencies>[^>:].+[>:])(?<issue>.+)/;
|
||||
|
||||
interface InsomniaPlugin {
|
||||
insomnia: any;
|
||||
// Insomnia attribute from package.json
|
||||
insomnia: {
|
||||
name: string;
|
||||
displayName: string;
|
||||
description: string;
|
||||
|
||||
// Used by the plugin hub, not currently used by Insomnia app
|
||||
// Each image is relative to package root
|
||||
images?: {
|
||||
icon?: string;
|
||||
cover?: string;
|
||||
};
|
||||
|
||||
publisher?: {
|
||||
name: string;
|
||||
// absolute URL
|
||||
icon: string;
|
||||
};
|
||||
};
|
||||
|
||||
// NPM specific properties
|
||||
name: string;
|
||||
version: string;
|
||||
dist: {
|
||||
|
||||
Reference in New Issue
Block a user