Skip to content

Commit 9afe883

Browse files
committed
Add duration utils to top-level export
1 parent f6fee70 commit 9afe883

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: .changeset/cool-spiders-remain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-ux": patch
3+
---
4+
5+
Add duration utils to top-level export

Diff for: packages/svelte-ux/src/lib/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ export * from './actions/index.js';
22
export * from './components/index.js';
33
export * from './stores/index.js';
44
export * from './types/index.js';
5-
// TODO: Conflict Duration Component & Type
65
export * from './utils/index.js';

Diff for: packages/svelte-ux/src/lib/utils/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
export { formatDate } from './date.js';
33
export { PeriodType, DayOfWeek, DateToken } from './date_types.js';
44
export * from './date_types.js';
5+
export { getDuration, humanizeDuration, DurationUnits } from './duration.js';
56
export * from './file.js';
67
export {
78
format,
@@ -23,6 +24,7 @@ export * as array from './array.js';
2324
export * as date from './date.js';
2425
export * as dateRange from './dateRange.js';
2526
export * as dom from './dom.js';
27+
export * as duration from './duration.js';
2628
export * as env from './env.js';
2729
export {
2830
defaultLocale,

0 commit comments

Comments
 (0)