@@ -20,7 +20,11 @@ import {
2020 * public formattedDate!: string; // => '10/25/1970'
2121 * ```
2222 */
23- export function middleEndianDateString ( dependantKey : string , defaultValue : any = 'None' , options : ParseOptions = { } ) {
23+ export function middleEndianDateString (
24+ dependantKey : string ,
25+ defaultValue : any = 'None' ,
26+ options : ParseOptions = { }
27+ ) : PropertyDecorator {
2428 return computed ( dependantKey , function computedMiddleEndianDateString ( ) {
2529 return toMiddleEndianDateString ( get ( this , dependantKey ) , defaultValue , options ) ;
2630 } ) ;
@@ -38,7 +42,11 @@ export function middleEndianDateString(dependantKey: string, defaultValue: any =
3842 * public formattedTime!: string; // => '1:10 PM'
3943 * ```
4044 */
41- export function middleEndianTimeString ( dependantKey : string , defaultValue : any = 'None' , options : ParseOptions = { } ) {
45+ export function middleEndianTimeString (
46+ dependantKey : string ,
47+ defaultValue : any = 'None' ,
48+ options : ParseOptions = { }
49+ ) : PropertyDecorator {
4250 return computed ( dependantKey , function computedMiddleEndianTimeString ( ) {
4351 return toMiddleEndianTimeString ( get ( this , dependantKey ) , defaultValue , options ) ;
4452 } ) ;
@@ -56,7 +64,11 @@ export function middleEndianTimeString(dependantKey: string, defaultValue: any =
5664 * public formattedDateTime!: string; // => '10/25/1970 1:10 PM'
5765 * ```
5866 */
59- export function middleEndianDateTimeString ( dependantKey : string , defaultValue : any = 'None' , options : ParseOptions = { } ) {
67+ export function middleEndianDateTimeString (
68+ dependantKey : string ,
69+ defaultValue : any = 'None' ,
70+ options : ParseOptions = { }
71+ ) : PropertyDecorator {
6072 return computed ( dependantKey , function computedMiddleEndianDateTimeString ( ) {
6173 return toMiddleEndianDateTimeString ( get ( this , dependantKey ) , defaultValue , options ) ;
6274 } ) ;
@@ -74,7 +86,11 @@ export function middleEndianDateTimeString(dependantKey: string, defaultValue: a
7486 * public formattedDate!: string; // => '1970-10-25'
7587 * ```
7688 */
77- export function bigEndianDateString ( dependantKey : string , defaultValue : any = 'None' , options : ParseOptions = { } ) {
89+ export function bigEndianDateString (
90+ dependantKey : string ,
91+ defaultValue : any = 'None' ,
92+ options : ParseOptions = { }
93+ ) : PropertyDecorator {
7894 return computed ( dependantKey , function computedBigEndianDateString ( ) {
7995 return toBigEndianDateString ( get ( this , dependantKey ) , defaultValue , options ) ;
8096 } ) ;
0 commit comments