diff --git a/packages/hiccup-dom/src/api.ts b/packages/hiccup-dom/src/api.ts index bb1c78e334..3a16eb6bf4 100644 --- a/packages/hiccup-dom/src/api.ts +++ b/packages/hiccup-dom/src/api.ts @@ -1,9 +1,9 @@ import { IObjectOf } from "@thi.ng/api/api"; export interface ILifecycle { - init(el: Element, ...args: any[]); + init?(el: Element, ...args: any[]); render(...args: any[]): any; - release(...args: any[]); + release?(...args: any[]); } export interface ComponentAttribs { diff --git a/packages/hiccup-dom/src/index.ts b/packages/hiccup-dom/src/index.ts index 920d91898f..91d4ce56fc 100644 --- a/packages/hiccup-dom/src/index.ts +++ b/packages/hiccup-dom/src/index.ts @@ -1,3 +1,4 @@ +export * from "./api"; export * from "./diff"; export * from "./dom"; export * from "./start";