Skip to main content

Interface: TFunction

@sapphire/plugin-i18next.TFunction

Callable

TFunction

โ–ธ TFunction<TResult, TKeys, TInterpolationMap>(key, options?): TResult

Type parameters

NameType
TResultextends TFunctionResult = string
TKeysextends TFunctionKeys = string
TInterpolationMapextends object = StringMap

Parameters

NameType
keyTKeys | TKeys[]
options?string | TOptions<TInterpolationMap>

Returns

TResult

Defined in

node_modules/i18next/index.d.ts:694

TFunction

โ–ธ TFunction<TResult, TKeys, TInterpolationMap>(key, defaultValue?, options?): TResult

Type parameters

NameType
TResultextends TFunctionResult = string
TKeysextends TFunctionKeys = string
TInterpolationMapextends object = StringMap

Parameters

NameType
keyTKeys | TKeys[]
defaultValue?string
options?string | TOptions<TInterpolationMap>

Returns

TResult

Defined in

node_modules/i18next/index.d.ts:703