Skip to content

Commit

Permalink
remove ".d" from paths (vuejs#3607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaorun343 authored and yyx990803 committed Sep 6, 2016
1 parent 8f4aab2 commit d2337df
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Vue as _Vue} from "./vue.d";
import {Vue as _Vue} from "./vue";
// `Vue` in `export = Vue` must be a namespace
declare namespace Vue {}
// TS cannot merge imported class with namespace, declare a subclass to bypass
Expand Down
4 changes: 2 additions & 2 deletions types/options.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Vue } from "./vue.d";
import { VNode, VNodeData, VNodeDirective } from "./vnode.d";
import { Vue } from "./vue";
import { VNode, VNodeData, VNodeDirective } from "./vnode";

type Constructor = {
new (...args: any[]): any;
Expand Down
2 changes: 1 addition & 1 deletion types/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vue as _Vue } from "./vue.d";
import { Vue as _Vue } from "./vue";

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

Expand Down
5 changes: 2 additions & 3 deletions types/test/options-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Vue = require("../index.d");
import { ComponentOptions } from "../options.d";
import { FunctionalComponentOptions } from "../options.d";
import Vue = require("../index");
import { ComponentOptions, FunctionalComponentOptions } from "../options";

interface Component extends Vue {
a: number;
Expand Down
4 changes: 2 additions & 2 deletions types/test/plugin-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue = require("../index.d");
import { PluginFunction, PluginObject } from "../plugin.d";
import Vue = require("../index");
import { PluginFunction, PluginObject } from "../plugin";

class Option {
prefix: string;
Expand Down
2 changes: 1 addition & 1 deletion types/test/vue-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Vue = require("../index.d");
import Vue = require("../index");

class Test extends Vue {
testProperties() {
Expand Down
2 changes: 1 addition & 1 deletion types/vnode.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vue } from "./vue.d";
import { Vue } from "./vue";

export type VNodeChildren = VNodeChildrenArrayContents | string;
export interface VNodeChildrenArrayContents {
Expand Down
4 changes: 2 additions & 2 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
DirectiveOptions,
DirectiveFunction
} from "./options.d";
import { VNode, VNodeData, VNodeChildren } from "./vnode.d";
import { PluginFunction, PluginObject } from "./plugin.d";
import { VNode, VNodeData, VNodeChildren } from "./vnode";
import { PluginFunction, PluginObject } from "./plugin";

export declare class Vue {

Expand Down

0 comments on commit d2337df

Please sign in to comment.