Interface TFunction<Ns, KPrefix>


T function declaration *


interface TFunction<Ns, KPrefix> {
    $TFunctionBrand: never;
    <Key, TOpt, Ret>(...args): TFunctionReturnOptionalDetails<Ret, TOpt>;
}

Type Parameters

  • Ns extends Namespace = DefaultNamespace

  • KPrefix = undefined

  • 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

Properties

$TFunctionBrand: never

Generated using TypeDoc