mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Set minimum typescript version to 2.3
Add dom lib to tsconfig.json Use absolute import for chart.js Avoid using declare module
This commit is contained in:
parent
4f6f2fb504
commit
5421f89485
17
types/vue-chartkick/index.d.ts
vendored
17
types/vue-chartkick/index.d.ts
vendored
@ -2,13 +2,14 @@
|
||||
// Project: https://github.com/ankane/vue-chartkick#readme
|
||||
// Definitions by: CNS Media <https://github.com/cnsmedia>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare module "vue-chartkick" {
|
||||
import {PluginObject} from "vue";
|
||||
interface VueChartkickPlugin extends PluginObject<{adapter: any}> {
|
||||
version: string;
|
||||
addAdapter: (library: any) => void
|
||||
}
|
||||
const VueChartkick: VueChartkickPlugin;
|
||||
export default VueChartkick;
|
||||
import { PluginObject } from "vue";
|
||||
|
||||
interface VueChartkickPlugin extends PluginObject<{ adapter: any }> {
|
||||
version: string;
|
||||
addAdapter: (library: any) => void;
|
||||
}
|
||||
|
||||
declare const VueChartkick: VueChartkickPlugin;
|
||||
export default VueChartkick;
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import VueChartkick from 'vue-chartkick';
|
||||
import Vue from "vue";
|
||||
import * as Chart from "../chart.js";
|
||||
import * as Chart from "chart.js";
|
||||
|
||||
Vue.use(VueChartkick, {adapter: Chart});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user