blob: 9cac2c5285e25f04ed9faf442422eed74a071dba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { Doc } from "./Doc";
export const OnUpdate = Symbol("OnUpdate");
export const Parent = Symbol("Parent");
const Id = Symbol("Object Id");
export class ObjectField {
protected [OnUpdate]?: (diff?: any) => void;
private [Parent]?: Doc;
readonly [Id] = "";
}
export namespace ObjectField {
export function MakeCopy(field: ObjectField) {
//TODO Types
return field;
}
}
|