Skip to content

Commit

Permalink
fix(exo): ContextProvider typing (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights authored Jan 16, 2024
1 parent d848754 commit 99107d4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/exo/src/exo-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down

0 comments on commit 99107d4

Please sign in to comment.