Skip to content

Patch beta ​

Interface of @v12-engine/editor

ts
export interface Patch<T>

Something with an id as it was and as it became. Nothing before: it was added. Nothing after: it was taken away

Members ​

after ​

ts
after?: T;

The thing as it became; none when it was taken away

before ​

ts
before?: T;

The thing as it was before; none when it was added

id ​

ts
id: number;

The id of the thing the patch is of