Add definitions for v-chart plugin

This commit is contained in:
Nate Mara
2018-10-28 17:09:27 -04:00
parent 974c120127
commit 93aa1c8c47
5 changed files with 39 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for v-chart-plugin 0.2
// Project: https://github.com/ignoreintuition/v-chart-plugin
// Definitions by: Nate Mara <https://github.com/natemara>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { PluginObject } from 'vue';
declare const Chart: PluginObject<void>;
export default Chart;
+6
View File
@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"vue": ">=2.0.0"
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6", "dom"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "v-chart-plugin-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
@@ -0,0 +1,5 @@
import Vue from 'vue';
import Chart from 'v-chart-plugin';
Vue.use(Chart);