import type { DataContextGetter } from './DataContextGetter' ; export function createDataContext < T > ( name , defaultValue ? ) { name = `@context/${ name }` ; const obj = { [ name ] ( ) { return defaultValue as T ; } , } ; return obj [ name ] ; }