Duration: {
days: {
from: ((time: MaybeTimeDuration) => number);
of: typeof daysOf;
};
hours: {
from: ((time: MaybeTimeDuration) => number);
of: typeof hoursOf;
};
isTypedDuration: ((maybeTypedDuration: any) => maybeTypedDuration is TimeDuration);
milliseconds: {
from: ((time: MaybeTimeDuration) => number);
of: typeof millisecondsOf;
};
minutes: {
from: ((time: MaybeTimeDuration) => number);
of: typeof minutesOf;
};
seconds: {
from: ((time: MaybeTimeDuration) => number);
of: typeof secondsOf;
};
value: {
from: ((time: MaybeTimeDuration) => number);
of: ((time: MaybeTimeDuration, defaultUnit?: string) => string);
};
}
Type declaration
-
days: {
from: ((time: MaybeTimeDuration) => number);
of: typeof daysOf;
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: typeof daysOf
-
hours: {
from: ((time: MaybeTimeDuration) => number);
of: typeof hoursOf;
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: typeof hoursOf
-
isTypedDuration: ((maybeTypedDuration: any) => maybeTypedDuration is TimeDuration)
-
- (maybeTypedDuration: any): maybeTypedDuration is TimeDuration
-
Returns maybeTypedDuration is TimeDuration
-
milliseconds: {
from: ((time: MaybeTimeDuration) => number);
of: typeof millisecondsOf;
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: typeof millisecondsOf
-
minutes: {
from: ((time: MaybeTimeDuration) => number);
of: typeof minutesOf;
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: typeof minutesOf
-
seconds: {
from: ((time: MaybeTimeDuration) => number);
of: typeof secondsOf;
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: typeof secondsOf
-
value: {
from: ((time: MaybeTimeDuration) => number);
of: ((time: MaybeTimeDuration, defaultUnit?: string) => string);
}
-
from: ((time: MaybeTimeDuration) => number)
-
- (time: MaybeTimeDuration): number
-
Returns number
-
of: ((time: MaybeTimeDuration, defaultUnit?: string) => string)
-
- (time: MaybeTimeDuration, defaultUnit?: string): string
-
Parameters
-
time: MaybeTimeDuration
-
Optional
defaultUnit: string
Returns string