Skip to content

assertValidDuration

assertValidDuration(d): asserts d is Duration

Defined in: duration.ts:77

Assert that a value is a google.protobuf.Duration message. This function will throw an error if the value is not a valid Duration message. The range is from -315,576,000,000 to +315,576,000,000 inclusive. The nanos field must be in the range of -999,999,999 to +999,999,999 inclusive.

Duration

asserts d is Duration