Skip to main content
Module

x/wmill/sync.ts>State

Open-source web IDE, scalable runtime and platform for serverless, workflows and UIs
Go to Latest
class State
import { State } from "https://deno.land/x/wmill@v1.63.2/sync.ts";

Constructors

new
State(
hashes: Map<TrackedId, string>,
tracked: Map<string, TrackedId>,
contentFiles: Map<TrackedId, string>,
workspaceId: string,
remoteUrl: string,
)

Properties

contentFiles: Map<TrackedId, string>
hashes: Map<TrackedId, string>
remoteUrl: string
optional
stateRoot: string
tracked: Map<string, TrackedId>
workspaceId: string

Methods

add(path: string)
contentFile(id: TrackedId): string | undefined
forget(path: string)
get(path: string): Tracked
save(): Promise<void>

Static Methods

loadState(dir: string): Promise<State>