We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f436fb + 80aa8dd commit d768449Copy full SHA for d768449
src/core/safe-clone-deep.ts
@@ -6,6 +6,8 @@
6
* Copyright (C) 2025 Posit Software, PBC
7
*/
8
9
+// This is used to create new interfaces that extend the Cloneable interface
10
+// to make the object having a clone method for specific cloning behavior in safeCloneDeep.
11
export interface Cloneable<T> {
12
clone(): T;
13
}
src/project/types.ts
@@ -60,8 +60,7 @@ export type FileInformation = {
60
outputFiles?: Record<string, FormatIdentifier>;
61
};
62
63
-export interface ProjectContext {
64
- clone: () => ProjectContext;
+export interface ProjectContext extends Cloneable<ProjectContext> {
65
dir: string;
66
engines: string[];
67
files: ProjectFiles;
0 commit comments