@hautechai/sdk 0.1.5 → 0.2.1

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.
@@ -121,6 +121,6 @@ declare const operations: (options: SDKOptions, relevantOperations: OperationsLi
121
121
  }) => Promise<void>;
122
122
  wait: <T extends OperationEntity | {
123
123
  id: string;
124
- }>(props: T, timeoutMs?: number) => Promise<Waited<T extends OperationEntity ? T : OperationEntity> | null>;
124
+ }, N extends number | undefined>(props: T, timeoutMs?: N) => Promise<Waited<T extends OperationEntity ? T : OperationEntity> | (N extends undefined ? never : null)>;
125
125
  };
126
126
  export default operations;
@@ -88,6 +88,7 @@ const operations = (options, relevantOperations) => {
88
88
  return polled;
89
89
  await sleep(delay);
90
90
  }
91
+ //@ts-expect-error - can't be reached if timeoutMs is defined.
91
92
  return null;
92
93
  },
93
94
  };