Skip to content

Commit

Permalink
fix: export types carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
Efcolipt committed Jun 10, 2023
1 parent 42b348e commit e97801b
Show file tree
Hide file tree
Showing 3 changed files with 14 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.8.0",
"main": "./dist/vue-slick-ts.umd.js",
"module": "./dist/vue-slick-ts.es.js",
"types": "./dist/index.d.ts",
"types": "./dist/types/index.d.ts",
"unpkg": "./dist/vue-slick-ts.umd.js",
"files": [
"dist",
"README.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/types/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
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ export function install(app: App) {
app.component("VueSlickCarousel", VueSlickCarousel);
}

export type {
ListSlickEvents,
ListSlickMethods,
SlickBreakpoint,
SlickDirection,
SlickEvents,
SlickInstance,
SlickInstanceOptions,
SlickMethods,
} from './carousel.types'

export { VueSlickCarousel };

export default {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"outFile": "dist/index.d.ts",
"isolatedModules": false
"outDir": "dist/types",
},
"include": ["./src/*"]
}

0 comments on commit e97801b

Please sign in to comment.