From 86d7c615e9bec23c2ff53404087ce63877c61a8b Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 26 Feb 2017 18:51:27 -0500 Subject: [PATCH] update typings --- types/helpers.d.ts | 2 +- types/index.d.ts | 7 ++++++- types/test/helpers.ts | 2 +- types/test/index.ts | 2 +- types/test/vue.ts | 4 ++-- types/vue.d.ts | 2 +- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/types/helpers.d.ts b/types/helpers.d.ts index dc0fbd505..a98602166 100644 --- a/types/helpers.d.ts +++ b/types/helpers.d.ts @@ -1,4 +1,4 @@ -import Vue = require("vue"); +import Vue from "vue"; type Dictionary = { [key: string]: T }; diff --git a/types/index.d.ts b/types/index.d.ts index efb42f971..169953230 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,9 +1,14 @@ -import _Vue = require("vue"); +import _Vue from "vue"; import { WatchOptions } from "vue"; // augment typings of Vue.js import "./vue"; +export default { + Store, + install +}; + export * from "./helpers"; export declare class Store { diff --git a/types/test/helpers.ts b/types/test/helpers.ts index 3279be1ca..930a824a6 100644 --- a/types/test/helpers.ts +++ b/types/test/helpers.ts @@ -1,4 +1,4 @@ -import Vue = require("vue"); +import Vue from "vue"; import { mapState, diff --git a/types/test/index.ts b/types/test/index.ts index c034f932b..b1ba99fec 100644 --- a/types/test/index.ts +++ b/types/test/index.ts @@ -1,4 +1,4 @@ -import Vue = require("vue"); +import Vue from "vue"; import * as Vuex from "../index"; import createLogger from "../../dist/logger"; diff --git a/types/test/vue.ts b/types/test/vue.ts index e9e280ba9..b9a756698 100644 --- a/types/test/vue.ts +++ b/types/test/vue.ts @@ -1,5 +1,5 @@ -import Vue = require("vue"); -import * as Vuex from "../index"; +import Vue from "vue"; +import Vuex from "../index"; const store = new Vuex.Store({ state: { diff --git a/types/vue.d.ts b/types/vue.d.ts index 482abe12d..36e0eb5e2 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -2,7 +2,7 @@ * Extends interfaces in Vue.js */ -import Vue = require("vue"); +import Vue from "vue"; import { Store } from "./index"; declare module "vue/types/options" { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy