diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
| commit | 8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch) | |
| tree | 05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts | |
pain
Diffstat (limited to 'frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts')
| -rw-r--r-- | frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts new file mode 100644 index 0000000..08af4ba --- /dev/null +++ b/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts @@ -0,0 +1,14 @@ +export type Deadline = Date | number; +export declare function minDeadline(...deadlineList: Deadline[]): Deadline; +export declare function getDeadlineTimeoutString(deadline: Deadline): string; +/** + * Get the timeout value that should be passed to setTimeout now for the timer + * to end at the deadline. For any deadline before now, the timer should end + * immediately, represented by a value of 0. For any deadline more than + * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will + * end at that time, so it is treated as infinitely far in the future. + * @param deadline + * @returns + */ +export declare function getRelativeTimeout(deadline: Deadline): number; +export declare function deadlineToString(deadline: Deadline): string; |
