From 51efb4d4559fcca0cc0cc38f74e761befa1e1c29 Mon Sep 17 00:00:00 2001 From: Pedro Durek Date: Sat, 26 Nov 2022 00:24:14 -0700 Subject: [PATCH] Expose some types --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index c3300efa..7731cd1c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ // Helpers type MergeBy = Omit & K; -type StringMap = { [key: string]: any }; +export type StringMap = { [key: string]: any }; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; @@ -116,7 +116,7 @@ export type PluginOptions = MergeBy< CustomPluginOptions >; -type FormatFunction = ( +export type FormatFunction = ( value: any, format?: string, lng?: string, @@ -1116,7 +1116,7 @@ export interface NewableModule extends Newable { type: T['type']; } -type Callback = (error: any, t: TFunction) => void; +export type Callback = (error: any, t: TFunction) => void; /** * Uses similar args as the t function and returns true if a key exists.