Skip to content

Commit d768449

Browse files
authored
Merge branch 'main' into enhance/12805
2 parents 4f436fb + 80aa8dd commit d768449

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/safe-clone-deep.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Copyright (C) 2025 Posit Software, PBC
77
*/
88

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.
911
export interface Cloneable<T> {
1012
clone(): T;
1113
}

src/project/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ export type FileInformation = {
6060
outputFiles?: Record<string, FormatIdentifier>;
6161
};
6262

63-
export interface ProjectContext {
64-
clone: () => ProjectContext;
63+
export interface ProjectContext extends Cloneable<ProjectContext> {
6564
dir: string;
6665
engines: string[];
6766
files: ProjectFiles;

0 commit comments

Comments
 (0)