Interface: TFunction<Ns, KPrefix>
@sapphire/plugin-i18next.TFunction
T function declaration *
Type parameters
Name | Type |
---|---|
Ns | extends Namespace = DefaultNamespace |
KPrefix | undefined |
Callable
TFunction
▸ TFunction<Key
, TOpt
, Ret
, ActualOptions
>(...args
): TFunctionReturnOptionalDetails
<Ret
, TOpt
>
Type parameters
Name | Type |
---|---|
Key | extends string | TemplateStringsArray |
TOpt | extends TOptions |
Ret | extends string | $SpecialObject |
ActualOptions | extends TOptionsBase & $Dictionary & InterpolationMap <Ret > = TOpt & InterpolationMap <Ret > |
Parameters
Name | Type |
---|---|
...args | [key: Key | Key[], options?: ActualOptions] | [key: string | string[], options: TOpt & $Dictionary & Object] | [key: string | string[], defaultValue: string, options?: TOpt & $Dictionary] |
Returns
TFunctionReturnOptionalDetails
<Ret
, TOpt
>
Defined in
node_modules/i18next/typescript/t.d.ts:215
Properties
$TFunctionBrand
• $TFunctionBrand: never
Defined in
node_modules/i18next/typescript/t.d.ts:213