Skip to content

Commit

Permalink
fix: correct ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnixon committed Aug 6, 2023
1 parent 341a260 commit d7d48e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "A collection of components for the Carbon Design System built using Vue.js",
"packageManager": "yarn@3.2.0",
"main": "dist/carbon-vue-3.umd.min.js",
"types": "src/index.d.ts",
"scripts": {
"postinstall": "node prepare.js",
"prepack": "pinst --disable",
Expand Down
16 changes: 5 additions & 11 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
declare namespace _default {
/**
* @typedef {import("vue").App} App
*/
/**
* Install plugin in Vue
* @param {App} Vue
* @param {Array<string>} options
*/
function install(Vue: import("vue").App<any>, options: string[]): void;
import { PluginFunction } from 'vue';

declare class CarbonVue {
static install: PluginFunction<Array<string>>;
}
export default _default;
export default CarbonVue;
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference path="index.d.ts" />
const ctx = require.context(
'./components/',
true,
Expand Down

0 comments on commit d7d48e3

Please sign in to comment.