mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -79,6 +79,7 @@ export type {
|
||||
} from './api/ontime-controller/BackendResponse.type.js';
|
||||
export type {
|
||||
EventPostPayload,
|
||||
InsertOptions,
|
||||
PatchWithId,
|
||||
ProjectRundown,
|
||||
ProjectRundownsList,
|
||||
|
||||
Reference in New Issue
Block a user