From 5dca2872e460c6ba9cec449d8a1b8dd33b47e1e0 Mon Sep 17 00:00:00 2001 From: Thomas Dvornik Date: Wed, 20 Mar 2019 13:31:33 -0600 Subject: [PATCH] fix: use proper plugin type def (#78) --- src/hooks.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hooks.ts b/src/hooks.ts index 1d4d5919..ebed1dc8 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -15,9 +15,12 @@ export interface Hooks { 'command_not_found': {id: string}, 'plugins:preinstall': { plugin: { - name: string, - tag: string, - type: 'npm' + name: string; + tag: string; + type: 'npm'; + } | { + url: string; + type: 'repo'; } } }