Skip to main content

Interface: TFunction<Ns, KPrefix>

@sapphire/plugin-i18next.TFunction


T function declaration *


Type parameters

NameType
Nsextends Namespace = DefaultNamespace
KPrefixundefined

Callable

TFunction

TFunction<Key, TOpt, Ret, ActualOptions>(...args): TFunctionReturnOptionalDetails<Ret, TOpt>

Type parameters

NameType
Keyextends string | TemplateStringsArray
TOptextends TOptions
Retextends string | $SpecialObject
ActualOptionsextends TOptionsBase & $Dictionary = TOpt & $PreservedValue<$UnionToIntersection<$StringKeyPathToRecordUnion<ParseInterpolationValues<Ret>, unknown>>, Record<string, unknown>>

Parameters

NameType
...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:260

Properties

$TFunctionBrand

$TFunctionBrand: never

Defined in

node_modules/i18next/typescript/t.d.ts:259