Skip to content

Commit

Permalink
Bring support to template string back
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodurek committed Dec 8, 2020
1 parent 895ad3c commit 840c259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ export type TFuncReturn<N, P, T = Resources> = N extends (keyof T)[]
: string;

export interface TFunction<N extends Namespace = DefaultNamespace> {
<K extends TFuncKey<N>, TInterpolationMap extends object = StringMap>(
<K extends TFuncKey<N> | TemplateStringsArray, TInterpolationMap extends object = StringMap>(
key: K,
options?: TOptions<TInterpolationMap> | string,
): TFuncReturn<N, K>;
<K extends TFuncKey<N>, TInterpolationMap extends object = StringMap>(
<K extends TFuncKey<N> | TemplateStringsArray, TInterpolationMap extends object = StringMap>(
key: K,
defaultValue?: string,
options?: TOptions<TInterpolationMap> | string,
Expand Down

0 comments on commit 840c259

Please sign in to comment.