Skip to content

Commit

Permalink
Expose some types (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodurek committed Nov 26, 2022
1 parent 77da0d1 commit a24473d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
@@ -1,6 +1,6 @@
// Helpers
type MergeBy<T, K> = Omit<T, keyof K> & K;
type StringMap = { [key: string]: any };
export type StringMap = { [key: string]: any };
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void
? I
: never;
Expand Down Expand Up @@ -116,7 +116,7 @@ export type PluginOptions = MergeBy<
CustomPluginOptions
>;

type FormatFunction = (
export type FormatFunction = (
value: any,
format?: string,
lng?: string,
Expand Down Expand Up @@ -1116,7 +1116,7 @@ export interface NewableModule<T extends Module> extends Newable<T> {
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.
Expand Down

0 comments on commit a24473d

Please sign in to comment.