diff --git a/packages/oc-generic-template-compiler/index.d.ts b/packages/oc-generic-template-compiler/index.d.ts index eff3774..aee2c8a 100644 --- a/packages/oc-generic-template-compiler/index.d.ts +++ b/packages/oc-generic-template-compiler/index.d.ts @@ -5,7 +5,7 @@ interface PackageJson { dependencies?: Record; devDependencies?: Record; } -interface CompiledViewInfo { +export interface CompiledViewInfo { template: { type: string; hashKey: string; @@ -37,14 +37,16 @@ export interface CompilerOptions { verbose: boolean; watch: boolean; } +export interface CompilerServerOptions extends CompilerOptions { + compiledViewInfo: CompiledViewInfo; +} + export type CompileView = ( options: CompilerOptions, cb: Callback ) => void; export type CompileServer = ( - options: CompilerOptions & { - compiledViewInfo: CompiledViewInfo; - }, + options: CompilerServerOptions, cb: Callback ) => void; export type CompileStatics = ( diff --git a/packages/oc-generic-template-compiler/package.json b/packages/oc-generic-template-compiler/package.json index 698b052..0c6bfa1 100644 --- a/packages/oc-generic-template-compiler/package.json +++ b/packages/oc-generic-template-compiler/package.json @@ -1,6 +1,6 @@ { "name": "oc-generic-template-compiler", - "version": "2.1.2", + "version": "2.1.3", "description": "OC-Generic-Template-Compiler", "main": "index.js", "types": "index.d.ts",