NamespaceBody

tcmts.store.NamespaceBody · #42plas62 · type

A namespace node: ["ns", [[name, [hashes]]...], [[child, nodeHash]...]], both lists sorted by name. Where a name shows a definition with other text than it was first stored with (its comments, layout or doc changed), a fourth list says which version: [[name, hash, textHash]...], sorted by name and hash. A node without one is written, and hashed, as before there were text versions.

export type NamespaceBody = [
  "ns",
  [string, string[]][],
  [string, string][],
  texts?: [string, string, string][],
];

used by