Skip to content

Commit 62e120e

Browse files
committed
add declarations for named exports from SFCs
1 parent 71b3133 commit 62e120e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web_src/js/globals.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ declare module '*.vue' {
1212
import type {DefineComponent} from 'vue';
1313
const component: DefineComponent<unknown, unknown, any>;
1414
export default component;
15+
// List of named exports from vue components, used to make `tsc` output clean.
16+
// To actually lint .vue files, `vue-tsc` is used because `tsc` can not parse them.
17+
export function initRepoBranchTagSelector(selector: string): void;
18+
export function initDashboardRepoList(): void;
19+
export function initRepositoryActionView(): void;
1520
}
1621

1722
declare let __webpack_public_path__: string;

0 commit comments

Comments
 (0)