Skip to content

Commit e98039a

Browse files
committed
feat(types): add multiple endpoint type
1 parent c382da3 commit e98039a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"files": [
1313
"lib",
1414
"dist",
15-
"types/index.d.ts"
15+
"types/**/*.d.ts"
1616
],
1717
"scripts": {
1818
"build": "rollup -c --environment BUILD:production",

types/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './lib'
12
import Vue, { PluginObject } from 'vue'
23

34
export class VueFinalModalComponant extends Vue {
@@ -27,8 +28,4 @@ export interface VfmOptions {
2728

2829
declare const VfmPlugin: () => PluginObject<VfmOptions>
2930

30-
export default VfmPlugin
31-
32-
declare module 'vue-final-modal/lib' {
33-
export default VfmPlugin
34-
}
31+
export default VfmPlugin

types/lib.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module 'vue-final-modal/lib' {
2+
import VfmPlugin from 'vue-final-modal'
3+
export default VfmPlugin
4+
}

0 commit comments

Comments
 (0)