Improve Clone (#1897)

* refactor(rundown): optimise copy-paste performance

* chore: configure opt-in compiler

* refactor(rundown): stabilise frequently accessed data

* feat(clone): allow cloning any element

* remove paste above and cue increment from test

---------

Co-authored-by: arc-alex <ac@omnivox.dk>
This commit is contained in:
Carlos Valente
2025-11-28 16:20:52 +01:00
committed by GitHub
parent a78586d2fa
commit 3f1f06f7c5
21 changed files with 321 additions and 250 deletions
@@ -3,15 +3,14 @@ import type { MaybeNumber } from '../../utils/utils.type.js';
export type PatchWithId<T extends OntimeEntry = OntimeEntry> = Partial<T> & { id: EntryId };
export type EventPostPayload = Partial<OntimeEntry> & {
export type InsertOptions = {
after?: EntryId;
before?: EntryId;
};
}
export type TransientEventPayload = Partial<OntimeEntry> & {
after?: EntryId;
before?: EntryId;
};
export type EventPostPayload = Partial<OntimeEntry> & InsertOptions;
export type TransientEventPayload = Partial<OntimeEntry> & InsertOptions;
export type ProjectRundown = {
id: string;
+1
View File
@@ -79,6 +79,7 @@ export type {
} from './api/ontime-controller/BackendResponse.type.js';
export type {
EventPostPayload,
InsertOptions,
PatchWithId,
ProjectRundown,
ProjectRundownsList,