createTrinity API
Generates a typed
[useX, provideX, defaultX] tuple for Vue's provide/inject dependency injection pattern.Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| createTrinity | Foundation |
| createContext | Foundation |
| createPlugin | Foundation |
| Core | Fundamentals |
Functions
createTrinity
(keyOrUseContext: string | (() => Z), provideContextOrContext: Z | ((context: Z, app?: App) => Z), maybeContext?: Z | undefined) => ContextTrinity<Z>