Interface TFunction<Ns, KPrefix>
Type Parameters
Ns extends Namespace = DefaultNamespace
KPrefix = undefined
- TFunction<Key, TOpt, Ret>(...args): TFunctionReturnOptionalDetails<Ret, TOpt>
Type Parameters
Key extends string | TemplateStringsArray
TOpt extends TOptions<$Dictionary<unknown>>
Ret extends string | object | (string | object)[]
Parameters
Rest
...args: [key: Key | Key[], options?: TOpt & InterpolationMap<Ret>] | [key: string | string[], options: TOpt & $Dictionary<unknown> & {
defaultValue: string;
}] | [key: string | string[], defaultValue: string, options?: TOpt & $Dictionary<unknown>]
Returns TFunctionReturnOptionalDetails<Ret, TOpt>
Properties
$TFunctionBrand
$TFunctionBrand: never
T function declaration *