Move RepoBranchTagSelector init outside the SFC (#32890)
SFCs shouldn't export anything besides their component, and this eliminates one issue with tsc, while apparently also solving a hack. It seems to work as before, also when multiples are on the same page.
This commit is contained in:
parent
2beaedc417
commit
857abed3a9
3 changed files with 38 additions and 47 deletions
1
web_src/js/globals.d.ts
vendored
1
web_src/js/globals.d.ts
vendored
|
@ -14,7 +14,6 @@ declare module '*.vue' {
|
|||
export default component;
|
||||
// List of named exports from vue components, used to make `tsc` output clean.
|
||||
// To actually lint .vue files, `vue-tsc` is used because `tsc` can not parse them.
|
||||
export function initRepoBranchTagSelector(selector: string): void;
|
||||
export function initDashboardRepoList(): void;
|
||||
export function initRepositoryActionView(): void;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue