MCPcopy
hub / github.com/marktext/marktext / getFileStateFromData

Function getFileStateFromData

packages/desktop/src/renderer/src/store/help.ts:150–152  ·  view source on GitHub ↗
(
  data: Partial<IFileState> | Record<string, unknown> | null | undefined
)

Source from the content-addressed store, hash-verified

148}
149
150export const getFileStateFromData = (
151 data: Partial<IFileState> | Record<string, unknown> | null | undefined
152): IFileState => createDocumentState(data)

Callers 1

_processTreeEventFunction · 0.90

Calls 1

createDocumentStateFunction · 0.85

Tested by

no test coverage detected