UNPKG
vue-material-you
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Material design 3 UI framework for Vue 3
vue-material-you
/
dist
/
src
/
utilities
/
inject-defined
/
index.d.ts
7 lines
(6 loc)
•
252 B
TypeScript
View Raw
1
2
3
4
5
6
7
import type { InjectionKey }
from
"vue"
;
/** * Wrapper around vue's inject function that ensures that the injected value is defined. *
@param
key The key of the value to inject. */
export
default
function
<
T
>(
key: InjectionKey<T>
):
T
& (
{} |
null
)
;