Skip to content

Commit fe1c18f

Browse files
authored
chore(docs): Include StringValue in docs (#1140)
1 parent 737eb92 commit fe1c18f

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

packages/common/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export * from './failure';
1919
export { Headers, Next } from './interceptors';
2020
export * from './interfaces';
2121
export * from './retry-policy';
22-
export { type Timestamp, Duration } from './time';
22+
export { type Timestamp, Duration, StringValue } from './time';
2323
export * from './workflow-handle';
2424
export * from './workflow-options';
2525

packages/common/src/time.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export type Timestamp = google.protobuf.ITimestamp;
1616
*/
1717
export type Duration = StringValue | number;
1818

19+
export type { StringValue } from 'ms';
20+
1921
/**
2022
* Lossy conversion function from Timestamp to number due to possible overflow.
2123
* If ts is null or undefined returns undefined.

packages/docs/package-lock.json

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)