@advisr/v-mapbox
Version:
Maplibre (and Mapbox) with Vue 💚
9 lines (8 loc) • 304 B
TypeScript
import type { InjectionKey } from 'vue';
/**
* Dependency injection 🥳
* @param {InjectionKey} key - The key to inject
* @param {string | undefined} fallback - The fallback value
* @returns {undefined} - The value
*/
export declare function injectStrict<T>(key: InjectionKey<T>, fallback?: T): T;