File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11declare class IntlError {
2- _error : {
3- code : string ;
4- name : string ;
5- message : string ;
6- } ;
72 name : string ;
8- constructor ( error : any ) ;
9- appendMessage ( message : string ) : void ;
3+ message : string ;
4+ constructor ( error : { name : string , message : string } ) ;
105 formatMessage ( ...values : any [ ] ) : string ;
6+ error ( ...values : any [ ] ) : Error ;
117}
128declare const errors : any ;
13- export { errors , IntlError } ;
9+ declare const mapErrors : ( errors : { [ x : string ] : string ; } ) => { [ x : string ] : IntlError } ;
10+
11+ export { errors , mapErrors , IntlError } ;
Original file line number Diff line number Diff line change @@ -47,5 +47,6 @@ const errors = mapErrors(errorDetails);
4747
4848export {
4949 errors ,
50+ mapErrors ,
5051 IntlError
5152} ;
You can’t perform that action at this time.
0 commit comments