• Create a dir.

    Parameters

    • doc: Pick<Doc, "content" | "repo" | "path">
    • baseDoc: BaseDoc & {
          type: "dir" | "file";
      }

    Returns Promise<Doc>

  • Parameters

    • doc: Optional<Pick<Doc, "content" | "repo" | "path">, "path">
    • OptionalbaseDoc: BaseDoc & {
          type: "dir" | "file";
      }

    Returns Promise<Doc>