From 10c119b2f623ba4ed95d0e46187dc676dc322682 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sat, 3 Feb 2018 17:55:33 +0000 Subject: [PATCH] refactor(hiccup-dom): minor update ILifeCycle --- packages/hiccup-dom/src/api.ts | 4 ++-- packages/hiccup-dom/src/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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";