Skip to content

Commit d2337df

Browse files
Kaorun343yyx990803
Kaorun343
authored andcommitted
remove ".d" from paths (vuejs#3607)
1 parent 8f4aab2 commit d2337df

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Vue as _Vue} from "./vue.d";
1+
import {Vue as _Vue} from "./vue";
22
// `Vue` in `export = Vue` must be a namespace
33
declare namespace Vue {}
44
// TS cannot merge imported class with namespace, declare a subclass to bypass

types/options.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Vue } from "./vue.d";
2-
import { VNode, VNodeData, VNodeDirective } from "./vnode.d";
1+
import { Vue } from "./vue";
2+
import { VNode, VNodeData, VNodeDirective } from "./vnode";
33

44
type Constructor = {
55
new (...args: any[]): any;

types/plugin.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Vue as _Vue } from "./vue.d";
1+
import { Vue as _Vue } from "./vue";
22

33
export type PluginFunction<T> = (Vue: typeof _Vue, options?: T) => void;
44

types/test/options-test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import Vue = require("../index.d");
2-
import { ComponentOptions } from "../options.d";
3-
import { FunctionalComponentOptions } from "../options.d";
1+
import Vue = require("../index");
2+
import { ComponentOptions, FunctionalComponentOptions } from "../options";
43

54
interface Component extends Vue {
65
a: number;

types/test/plugin-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Vue = require("../index.d");
2-
import { PluginFunction, PluginObject } from "../plugin.d";
1+
import Vue = require("../index");
2+
import { PluginFunction, PluginObject } from "../plugin";
33

44
class Option {
55
prefix: string;

types/test/vue-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vue = require("../index.d");
1+
import Vue = require("../index");
22

33
class Test extends Vue {
44
testProperties() {

types/vnode.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Vue } from "./vue.d";
1+
import { Vue } from "./vue";
22

33
export type VNodeChildren = VNodeChildrenArrayContents | string;
44
export interface VNodeChildrenArrayContents {

types/vue.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
DirectiveOptions,
77
DirectiveFunction
88
} from "./options.d";
9-
import { VNode, VNodeData, VNodeChildren } from "./vnode.d";
10-
import { PluginFunction, PluginObject } from "./plugin.d";
9+
import { VNode, VNodeData, VNodeChildren } from "./vnode";
10+
import { PluginFunction, PluginObject } from "./plugin";
1111

1212
export declare class Vue {
1313

0 commit comments

Comments
 (0)