@bgord/tools 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/size.vo.d.ts +1 -1
- package/dist/stopwatch.service.d.ts +1 -2
- package/package.json +1 -1
- package/src/size.vo.ts +2 -5
- package/src/stopwatch.service.ts +1 -1
package/dist/size.vo.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare enum SizeUnit {
|
|
|
6
6
|
GB = "GB"
|
|
7
7
|
}
|
|
8
8
|
declare const SizeValueSchema: z.ZodNumber;
|
|
9
|
-
type SizeValueType = z.infer<typeof SizeValueSchema>;
|
|
9
|
+
export type SizeValueType = z.infer<typeof SizeValueSchema>;
|
|
10
10
|
type SizeConfigType = {
|
|
11
11
|
unit: SizeUnit;
|
|
12
12
|
value: SizeValueType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TimestampType } from "./timestamp.vo";
|
|
2
|
-
type StopwatchResultType = {
|
|
2
|
+
export type StopwatchResultType = {
|
|
3
3
|
durationMs: TimestampType;
|
|
4
4
|
};
|
|
5
5
|
export declare class Stopwatch {
|
|
@@ -8,4 +8,3 @@ export declare class Stopwatch {
|
|
|
8
8
|
private stopMs;
|
|
9
9
|
stop(): StopwatchResultType;
|
|
10
10
|
}
|
|
11
|
-
export {};
|
package/package.json
CHANGED
package/src/size.vo.ts
CHANGED
|
@@ -11,12 +11,9 @@ export enum SizeUnit {
|
|
|
11
11
|
|
|
12
12
|
const SizeValueSchema = z.number().positive();
|
|
13
13
|
|
|
14
|
-
type SizeValueType = z.infer<typeof SizeValueSchema>;
|
|
14
|
+
export type SizeValueType = z.infer<typeof SizeValueSchema>;
|
|
15
15
|
|
|
16
|
-
type SizeConfigType = {
|
|
17
|
-
unit: SizeUnit;
|
|
18
|
-
value: SizeValueType;
|
|
19
|
-
};
|
|
16
|
+
type SizeConfigType = { unit: SizeUnit; value: SizeValueType };
|
|
20
17
|
|
|
21
18
|
export class Size {
|
|
22
19
|
private readonly unit: SizeUnit;
|
package/src/stopwatch.service.ts
CHANGED
|
@@ -6,7 +6,7 @@ enum StopwatchState {
|
|
|
6
6
|
stopped = "finished",
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
type StopwatchResultType = { durationMs: TimestampType };
|
|
9
|
+
export type StopwatchResultType = { durationMs: TimestampType };
|
|
10
10
|
|
|
11
11
|
export class Stopwatch {
|
|
12
12
|
private state: StopwatchState = StopwatchState.started;
|