Skip to content

Commit

Permalink
Merge pull request valgeirb#62 from lxnelyclxud/main
Browse files Browse the repository at this point in the history
  • Loading branch information
valgeirb authored May 23, 2022
2 parents a67a5cf + 178c887 commit 686fab8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
42 changes: 42 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
declare module "vue3-popper" {
import { DefineComponent } from "vue";

interface Props {
placement?:
| "auto"
| "auto-start"
| "auto-end"
| "top"
| "top-start"
| "top-end"
| "bottom"
| "bottom-start"
| "bottom-end"
| "right"
| "right-start"
| "right-end"
| "left"
| "left-start"
| "left-end";
disableClickAway?: boolean;
offsetSkid?: string;
offsetDistance?: string;
hover?: boolean;
show?: boolean;
disabled?: boolean;
openDelay?: number | string;
closeDelay?: number | string;
zIndex?: number | string;
arrow?: boolean;
arrowPadding?: string;
interactive?: boolean;
locked?: boolean;
content?: string;
"onOpen:popper"?: () => void;
"onClose:popper"?: () => void;
}

const Popper: DefineComponent<Props>;

export default Popper;
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"unpkg": "dist/popper.min.js",
"files": [
"dist/*",
"src/**/*.vue"
"src/**/*.vue",
"index.d.ts"
],
"sideEffects": false,
"scripts": {
Expand Down

0 comments on commit 686fab8

Please sign in to comment.