Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// typeof DocumentStorage
type DocumentStorage = Batchable<{
willUpdate: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
value: {
source: string;
undoHistories: any;
};
mutations: {
source: ZoomedStorageMutations<string>;
undoHistories: ZoomedStorageMutations<any>;
};
startBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
endBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
} & {
children: {
source: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentSources">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<string>;
};
undoHistories: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentUndoHistories">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<any>;
};
};
}> | Govern.GovernElement<Batchable<{
willUpdate: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
value: {
source: string;
undoHistories: any;
};
mutations: {
source: ZoomedStorageMutations<string>;
undoHistories: ZoomedStorageMutations<any>;
};
startBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
endBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
} & {
children: {
source: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentSources">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<string>;
};
undoHistories: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentUndoHistories">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<any>;
};
};
}>, any> | Govern.Store<Batchable<{
willUpdate: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
source: boolean | CompoundValueNode<boolean>;
undoHistories: boolean | CompoundValueNode<boolean>;
};
value: {
source: string;
undoHistories: any;
};
mutations: {
source: ZoomedStorageMutations<string>;
undoHistories: ZoomedStorageMutations<any>;
};
startBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
endBatch: (() => void) | Pick<{
source: () => void;
undoHistories: () => void;
}, "source" | "undoHistories">;
} & {
children: {
source: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentSources">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<string>;
};
undoHistories: Pick<Zoom<Zoom<({
type: "delegate";
} & Pick<Delegate<{
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
}, {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}>, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "masterValue" | "disconnectedSince" | "hasUncommitedChanges" | "hasUnpushedChanges" | "hasDiverged" | "isBranchedFromMaster" | "isPushing" | "commit" | "revert" | "fetch" | "push" | "errors" | "isInvalid"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}) | ({
type: "storage";
} & Pick<{
willUpdate: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
isAwaitingInitialData: false | {
documentSources: boolean | CompoundValueNode<boolean>;
documentUndoHistories: boolean | CompoundValueNode<boolean>;
editorPathname: boolean | CompoundValueNode<boolean>;
history: boolean | CompoundValueNode<boolean>;
navigationLocationBar: boolean | CompoundValueNode<boolean>;
consoleMessages: boolean | CompoundValueNode<boolean>;
};
value: {
documentSources: MapStorageValue<string>;
documentUndoHistories: MapStorageValue<any>;
editorPathname: string;
history: BreadboardHistory;
navigationLocationBar: string;
consoleMessages: BreadboardConsoleMessage[];
};
mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
};
startBatch: undefined;
endBatch: undefined;
} & any, "mutations" | "isAwaitingInitialData" | "value" | "willUpdate" | "children"> & {
batch(fn: (mutations: {
documentSources: MapStorageMutations<string>;
documentUndoHistories: MapStorageMutations<any>;
editorPathname: ValueStorageMutations<string>;
history: ValueStorageMutations<BreadboardHistory>;
navigationLocationBar: ValueStorageMutations<string>;
consoleMessages: CollectionStorageMutations<BreadboardConsoleMessage>;
}) => void): void;
startBatch(): void;
endBatch(): void;
}), {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, "documentUndoHistories">, {
isAwaitingInitialData: ZoomStrategy.SelectOrPass;
mutations: ZoomStrategy.Select;
value: ZoomStrategy.Select;
willUpdate: ZoomStrategy.SelectOrPass;
startBatch: ZoomStrategy.Pass;
endBatch: ZoomStrategy.Pass;
}, string>, "isAwaitingInitialData" | "value" | "willUpdate" | "startBatch" | "endBatch"> & {
mutations: ZoomedStorageMutations<any>;
};
};
}>, any>
@jamesknelson

This comment has been minimized.

Copy link
Owner Author

commented Jun 10, 2018

I wonder why VSCode is getting a little unresponsive...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.