@chili-publish/studio-connectors 1.45.0 → 1.46.0
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.
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ declare global {
|
|
|
2
2
|
var ConnectorHttpError: ConnectorHttpErrorConstructor;
|
|
3
3
|
var StudioFormData: StudioFormDataConstructor;
|
|
4
4
|
var FilePointer: FilePointerConstructor;
|
|
5
|
+
/**
|
|
6
|
+
* Suspends execution for the given duration.
|
|
7
|
+
* Provided by the connector host runtime (e.g. Studio QuickJS / CLI debugger).
|
|
8
|
+
*
|
|
9
|
+
* @param ms - Duration to sleep in milliseconds.
|
|
10
|
+
*/
|
|
11
|
+
function sleep(ms: number): Promise<void>;
|
|
5
12
|
}
|
|
6
13
|
export interface BaseConnector<C extends Record<string, boolean | undefined>> {
|
|
7
14
|
getCapabilities(): C;
|