Gitako/src/global.d.ts
2020-03-28 22:00:20 +08:00

19 lines
345 B
TypeScript

type MetaData = {
userName: string
repoName: string
branchName: string
defaultBranchName?: string
repoUrl?: string
userUrl?: string
type?: 'tree' | 'blob' | string
}
type TreeNode = {
name: string
contents?: TreeNode[]
path: string
type: 'tree' | 'blob' | 'commit'
url?: string
sha?: string
accessDenied?: boolean
}