mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: add types
This commit is contained in:
parent
e066675817
commit
e6a0e0a139
2 changed files with 4 additions and 4 deletions
|
|
@ -105,8 +105,8 @@ function getCurrentPageType() {
|
|||
)
|
||||
}
|
||||
|
||||
const REPO_TYPE_PRIVATE = 'private'
|
||||
const REPO_TYPE_PUBLIC = 'public'
|
||||
const REPO_TYPE_PRIVATE = 'private' as const
|
||||
const REPO_TYPE_PUBLIC = 'public' as const
|
||||
export function getRepoPageType() {
|
||||
const headerSelector = `#js-repo-pjax-container .pagehead.repohead h1`
|
||||
return $(headerSelector, header => {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ export function getCurrentBranch() {
|
|||
raiseError(new Error('cannot get current branch'))
|
||||
}
|
||||
|
||||
const REPO_TYPE_PRIVATE = 'private'
|
||||
const REPO_TYPE_PUBLIC = 'public'
|
||||
const REPO_TYPE_PRIVATE = 'private' as const
|
||||
const REPO_TYPE_PUBLIC = 'public' as const
|
||||
export function getRepoPageType() {
|
||||
const headerSelector = `.git-project-title .icon-lock`
|
||||
return $(
|
||||
|
|
|
|||
Loading…
Reference in a new issue