@replit/connectors 0.1.0 → 0.2.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/src/client.ts CHANGED
@@ -287,7 +287,10 @@ export class Replit {
287
287
  /**
288
288
  * Import an existing connection after validation
289
289
  */
290
- createConnection(body: TopLevelAPI.CreateConnectionParams, options?: RequestOptions): APIPromise<unknown> {
290
+ createConnection(
291
+ body: TopLevelAPI.CreateConnectionParams,
292
+ options?: RequestOptions,
293
+ ): APIPromise<TopLevelAPI.CreateConnectionResponse> {
291
294
  return this.post('/v2/connection', { body, ...options });
292
295
  }
293
296
 
@@ -351,7 +354,7 @@ export class Replit {
351
354
  id: string,
352
355
  query: TopLevelAPI.GetConnectionParams | null | undefined = {},
353
356
  options?: RequestOptions,
354
- ): APIPromise<unknown> {
357
+ ): APIPromise<TopLevelAPI.GetConnectionResponse> {
355
358
  return this.get(path`/v2/connection/${id}`, { query, ...options });
356
359
  }
357
360