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

Commit

Permalink
fix: add engine properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 20, 2018
1 parent 58bab8b commit 9ef015d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export interface IConfig {
npmRegistry: string
}

export interface ICLIConfig extends IConfig {
engine: IEngine
}

export interface TSConfig {
compilerOptions: {
rootDir?: string
Expand Down
4 changes: 4 additions & 0 deletions src/engine.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {ICachedCommand} from './command'
import {ICLIConfig} from './config'
import {IPlugin} from './plugin'
import {ITopic} from './topic'

export interface IEngine {
readonly config: ICLIConfig
readonly plugins: IPlugin[]

readonly topics: ITopic[]
Expand All @@ -18,4 +20,6 @@ export interface IEngine {
findTopic(id: string, must?: boolean): ITopic | undefined

runHook<T extends {}>(event: string, opts: T): Promise<void>

load(root: string): Promise<void>
}

0 comments on commit 9ef015d

Please sign in to comment.