Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import { runHealthScript } from './runHealthScript';
|
||||
export { checkPortListening } from './checkPortListening';
|
||||
export { HealthCheckResult } from './HealthCheckResult';
|
||||
export { checkWebUrl } from './checkWebUrl';
|
||||
/**
|
||||
* Create a promise that rejects after the specified timeout.
|
||||
* Useful for racing against long-running health checks.
|
||||
*
|
||||
* @param ms - Timeout duration in milliseconds
|
||||
* @param options.message - Custom error message (defaults to "Timed out")
|
||||
* @returns A promise that never resolves, only rejects after the timeout
|
||||
*/
|
||||
export declare function timeoutPromise(ms: number, { message }?: {
|
||||
message?: string | undefined;
|
||||
}): Promise<never>;
|
||||
export { runHealthScript };
|
||||
Reference in New Issue
Block a user