From 90cd31644e609aa1963208ff0616a7a727886077 Mon Sep 17 00:00:00 2001 From: Ryota Kameoka Date: Sun, 26 Dec 2021 15:05:14 +0900 Subject: [PATCH] feat: export `Options` type --- src/index.ts | 2 +- src/init.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a184d71..e862c4d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ // core export { DOMAPI, htmlDomApi } from "./htmldomapi"; -export { init } from "./init"; +export { init, Options } from "./init"; export { ThunkData, Thunk, ThunkFn, thunk } from "./thunk"; export { Key, VNode, VNodeData, vnode } from "./vnode"; diff --git a/src/init.ts b/src/init.ts index 6a9075a..a53b4ea 100644 --- a/src/init.ts +++ b/src/init.ts @@ -78,7 +78,7 @@ const hooks: Array = [ ]; // TODO Should `domApi` be put into this in the next major version bump? -type Options = { +export type Options = { experimental?: { fragments?: boolean; };