From d3b0d1971ec3f540c7e89c83508770d49b682e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir?= Date: Mon, 25 Jul 2022 13:19:37 +0200 Subject: [PATCH] [IMP] types: expose ComponentConstructor for typing purpose We have been using this type in o-spreadsheet since https://github.com/odoo/o-spreadsheet/pull/1187 but the new typing file (https://github.com/odoo/owl/pull/1207) does not include it. It would be useful to allow us to bump or version of owl witouht having to resort to long aboslute paths (i.e. import from `@odoo/owl`and not `@odoo/owl/dist/types/runtime/component@ everywhere). --- src/runtime/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/index.ts b/src/runtime/index.ts index 7c2c2832..75f8e3b8 100644 --- a/src/runtime/index.ts +++ b/src/runtime/index.ts @@ -36,6 +36,7 @@ export const blockDom = { export { App, mount } from "./app"; export { xml } from "./template_set"; export { Component } from "./component"; +export type { ComponentConstructor } from "./component"; export { useComponent, useState } from "./component_node"; export { status } from "./status"; export { reactive, markRaw, toRaw } from "./reactivity";