MCPcopy Create free account
hub / github.com/continuedev/continue / clone

Method clone

packages/continue-sdk/typescript/api/src/runtime.ts:289–294  ·  view source on GitHub ↗

* Create a shallow clone of `this` by constructing a new instance * and then shallow cloning data members.

(this: T)

Source from the content-addressed store, hash-verified

287 * and then shallow cloning data members.
288 */
289 private clone<T extends BaseAPI>(this: T): T {
290 const constructor = this.constructor as any;
291 const next = new constructor(this.configuration);
292 next.middleware = this.middleware.slice();
293 return next;
294 }
295}
296
297function isBlob(value: any): value is Blob {

Callers 2

withMiddlewareMethod · 0.95
BaseAPIClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected