Skip to content

Commit

Permalink
export more types
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-devis-agullo committed Dec 28, 2023
1 parent db32bae commit 9893c6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions packages/oc-generic-template-compiler/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface PackageJson {
dependencies?: Record<string, string>;
devDependencies?: Record<string, string>;
}
interface CompiledViewInfo {
export interface CompiledViewInfo {
template: {
type: string;
hashKey: string;
Expand Down Expand Up @@ -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<CompiledViewInfo>
) => void;
export type CompileServer = (
options: CompilerOptions & {
compiledViewInfo: CompiledViewInfo;
},
options: CompilerServerOptions,
cb: Callback<any>
) => void;
export type CompileStatics = (
Expand Down
2 changes: 1 addition & 1 deletion packages/oc-generic-template-compiler/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9893c6c

Please sign in to comment.