Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose some types #1871

Merged
merged 1 commit into from Nov 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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