- createNamespace<TKey, TValue>(baseUri: string, toValue: ((expanded: string) => TValue), ...localNames: TKey[]): Namespace<typeof localNames, TValue>
-
Type Parameters
-
TKey extends string
-
TValue
Parameters
-
baseUri: string
-
toValue: ((expanded: string) => TValue)
-
- (expanded: string): TValue
-
Returns TValue
-
Rest
...localNames: TKey[]
Creates a function that expands local names from the given base URI, and exports the given local names as properties on the returned object.