@@ -530,9 +530,9 @@ export function createComposer<
530
530
*/
531
531
532
532
// getPostTranslationHandler
533
- const getPostTranslationHandler = ( ) : PostTranslationHandler <
534
- Message
535
- > | null => ( isFunction ( _postTranslation ) ? _postTranslation : null )
533
+ function getPostTranslationHandler ( ) : PostTranslationHandler < Message > | null {
534
+ return isFunction ( _postTranslation ) ? _postTranslation : null
535
+ }
536
536
537
537
// setPostTranslationHandler
538
538
function setPostTranslationHandler (
@@ -543,7 +543,9 @@ export function createComposer<
543
543
}
544
544
545
545
// getMissingHandler
546
- const getMissingHandler = ( ) : MissingHandler | null => _missing
546
+ function getMissingHandler ( ) : MissingHandler | null {
547
+ return _missing
548
+ }
547
549
548
550
// setMissingHandler
549
551
function setMissingHandler ( handler : MissingHandler | null ) : void {
@@ -695,8 +697,9 @@ export function createComposer<
695
697
}
696
698
697
699
// getLocaleMessage
698
- const getLocaleMessage = ( locale : Locale ) : LocaleMessageDictionary < Message > =>
699
- ( _messages . value [ locale ] || { } ) as LocaleMessageDictionary < Message >
700
+ function getLocaleMessage ( locale : Locale ) : LocaleMessageDictionary < Message > {
701
+ return ( _messages . value [ locale ] || { } ) as LocaleMessageDictionary < Message >
702
+ }
700
703
701
704
// setLocaleMessage
702
705
function setLocaleMessage (
@@ -720,8 +723,9 @@ export function createComposer<
720
723
}
721
724
722
725
// getDateTimeFormat
723
- const getDateTimeFormat = ( locale : Locale ) : DateTimeFormat =>
724
- _datetimeFormats . value [ locale ] || { }
726
+ function getDateTimeFormat ( locale : Locale ) : DateTimeFormat {
727
+ return _datetimeFormats . value [ locale ] || { }
728
+ }
725
729
726
730
// setDateTimeFormat
727
731
function setDateTimeFormat ( locale : Locale , format : DateTimeFormat ) : void {
@@ -741,8 +745,9 @@ export function createComposer<
741
745
}
742
746
743
747
// getNumberFormat
744
- const getNumberFormat = ( locale : Locale ) : NumberFormat =>
745
- _numberFormats . value [ locale ] || { }
748
+ function getNumberFormat ( locale : Locale ) : NumberFormat {
749
+ return _numberFormats . value [ locale ] || { }
750
+ }
746
751
747
752
// setNumberFormat
748
753
function setNumberFormat ( locale : Locale , format : NumberFormat ) : void {
0 commit comments