Skip to content

Commit

Permalink
fix: add imports types
Browse files Browse the repository at this point in the history
  • Loading branch information
Efcolipt committed Jun 10, 2023
1 parent 41e14a4 commit eae0327
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "0.7.6",
"main": "./dist/vue-slick-ts.umd.js",
"module": "./dist/vue-slick-ts.es.js",
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.ts",
"unpkg": "./dist/vue-slick-ts.umd.js",
"files": [
"dist",
"README.md"
],
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.ts",
"require": "./dist/vue-slick-ts.umd.js",
"import": "./dist/vue-slick-ts.es.js",
"default": "./dist/vue-slick-ts.es.js"
Expand Down
2 changes: 1 addition & 1 deletion src/VueSlickCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import $ from "jquery";
import { onMounted, ref } from "vue";
import "slick-carousel";
import { carouselProps } from "./carousel.props";
import { ListSlickEvents, SlickInstance, SlickBreakpoint, SlickDirection, ListSlickMethods } from './carousel'
import { ListSlickEvents, SlickInstance, SlickBreakpoint, SlickDirection, ListSlickMethods } from './carousel.types'
const props = defineProps(carouselProps);
const emits = defineEmits<{
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion tsconfig.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist/types"
"outFile": "dist/index.d.ts",
"isolatedModules": false
},
"include": ["./src/*"]
}

0 comments on commit eae0327

Please sign in to comment.