Skip to content

Commit 3647f44

Browse files
committed
refactor: rename mapErrors to
1 parent dfabc75 commit 3647f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/errors.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ declare class IntlError {
66
error(...values: any[]): Error;
77
}
88
declare const errors: any;
9-
declare const mapErrors: (errors: { [x: string]: string; }) => { [x: string]: IntlError };
9+
declare const toIntlErrors: (errors: { [x: string]: string; }) => { [x: string]: IntlError };
1010

11-
export { errors, mapErrors, IntlError };
11+
export { errors, IntlError, toIntlErrors };

0 commit comments

Comments
 (0)