Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 929abe5

Browse files
committed
Removed as
1 parent c6dca35 commit 929abe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/entities/duplicate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function duplicateInBackend(entities: Entity[], options: { history?: boolean } =
163163
};
164164

165165

166-
const promise = new Promise((resolve, reject) => {
166+
const promise = new Promise<Entity[]>((resolve, reject) => {
167167
deferred.resolve = resolve;
168168
deferred.reject = reject;
169169
});
@@ -231,7 +231,7 @@ function duplicateInBackend(entities: Entity[], options: { history?: boolean } =
231231
});
232232
}
233233

234-
return promise as Promise<Entity[]>;
234+
return promise;
235235
}
236236

237237
/**

0 commit comments

Comments
 (0)