mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
4061c42748
* adapt index.d.ts for end users * fix extend return type
7 lines
236 B
TypeScript
7 lines
236 B
TypeScript
import {Vue as _Vue} from "./vue.d";
|
|
// `Vue` in `export = Vue` must be a namespace
|
|
declare namespace Vue {}
|
|
// TS cannot merge imported class with namespace, declare a subclass to bypass
|
|
declare class Vue extends _Vue {}
|
|
export = Vue;
|