From 904bd1731447796cf1a2bd992c89f889f2a6263a Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 2 Aug 2021 17:26:29 +0200 Subject: Renamed the shared types package to api --- packages/api/src/tree.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/api/src/tree.d.ts (limited to 'packages/api/src/tree.d.ts') diff --git a/packages/api/src/tree.d.ts b/packages/api/src/tree.d.ts new file mode 100644 index 0000000..d2b4708 --- /dev/null +++ b/packages/api/src/tree.d.ts @@ -0,0 +1,12 @@ +import { LatestCommit } from "./commit"; + +export type TreeEntry = { + name: string, + type: "tree" | "blob", + latest_commit: LatestCommit +}; + +export type Tree = { + type: "tree" | "blob", + content: string | TreeEntry[] +}; \ No newline at end of file -- cgit v1.2.3-18-g5258