From 99107d41e1f025fcaf13aef27b0b174a55939c3a Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Tue, 16 Jan 2024 11:21:35 -0800 Subject: [PATCH] fix(exo): ContextProvider typing (#1966) --- packages/exo/src/exo-tools.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/exo/src/exo-tools.js b/packages/exo/src/exo-tools.js index abdcb0ec0e..99685f1498 100644 --- a/packages/exo/src/exo-tools.js +++ b/packages/exo/src/exo-tools.js @@ -297,8 +297,17 @@ const defendMethod = (method, methodGuard, label) => { */ /** - * @typedef {(facet: any) => KitContext} KitContextProvider - * @typedef {((representative: any) => ClassContext) | KitContextProvider} ContextProvider + * @typedef {( + * representative: any + * ) => ClassContext | undefined} ClassContextProvider + */ + +/** + * @typedef {(facet: any) => KitContext | undefined} KitContextProvider + */ + +/** + * @typedef { ClassContextProvider | KitContextProvider } ContextProvider */ /**