aboutsummaryrefslogtreecommitdiff
path: root/packages/api/src/tree.d.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-02 17:26:29 +0200
committerHampusM <hampus@hampusmat.com>2021-08-02 17:26:29 +0200
commit904bd1731447796cf1a2bd992c89f889f2a6263a (patch)
treec746534149722905792e8a1b0059568ed9cc1c7c /packages/api/src/tree.d.ts
parent8feb65c5467cc3ad48270183113a121c4a9f86ca (diff)
Renamed the shared types package to api
Diffstat (limited to 'packages/api/src/tree.d.ts')
-rw-r--r--packages/api/src/tree.d.ts12
1 files changed, 12 insertions, 0 deletions
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