UNPKG

vue-material-you

Version:

Material design 3 UI framework for Vue 3

7 lines (6 loc) 252 B
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);