Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: updated plugin properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 20, 2018
1 parent d0007c0 commit df26a0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import {ICommand} from './command'
import {IConfig} from './config'
import {IPJSON} from './pjson'
import {IPluginModule} from './plugin'
import {IPlugin, IPluginModule} from './plugin'

export interface Hooks {
init: {id: string}
update: {}
'plugins:parse': {
module: IPluginModule
pjson: IPJSON
pjson: IPlugin
}
prerun: {
Command: ICommand
Expand Down
9 changes: 8 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ICommand} from './command'
import {ICachedCommand, ICommand} from './command'
import {IConfig} from './config'
import {ITopic} from './topic'

export interface IPluginModule {
Expand All @@ -12,4 +13,10 @@ export interface IPlugin {
version: string
type: string
root: string
config: IConfig
module?: IPluginModule
commands: ICachedCommand[]
topics: ITopic[]
plugins: Plugin[]
hooks: {[k: string]: string[]}
}

0 comments on commit df26a0c

Please sign in to comment.