vue-tippy 6.0.0-alpha.50 → 6.0.0-alpha.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ import Tippy from '../components/Tippy'
2
+ import { Props, Content, DefaultProps, Instance } from 'tippy.js'
3
+ import { VNode, Ref, Component } from 'vue'
4
+
5
+ export declare type TippyContent = Content | VNode | Component | Ref
6
+ export declare type TippyTarget =
7
+ | Element
8
+ | Element[]
9
+ | Ref<Element | undefined>
10
+ | Ref<Element[] | undefined>
11
+ | null
12
+
13
+ export declare type TippyOptions = Partial<
14
+ Omit<Props, 'content' | 'triggerTarget'> & {
15
+ content: TippyContent
16
+ triggerTarget: TippyTarget
17
+ }
18
+ >
19
+
20
+ export declare type TippyComponent = InstanceType<typeof Tippy>
21
+
22
+ export interface TippyPluginOptions {
23
+ directive?: string
24
+ component?: string
25
+ componentSingleton?: string
26
+ defaultProps?: Partial<DefaultProps>
27
+ }
28
+
29
+ export type TippyInstance = Instance | Element | undefined
30
+ export type TippyInstances = Ref<TippyInstance>[] | Ref<TippyInstance[]> | (() => TippyInstance[])
package/tsconfig.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "include": ["src/**/*"],
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "rootDir": ".",
6
+ "outDir": "dist",
7
+ "sourceMap": false,
8
+ "noEmit": true,
9
+
10
+ "target": "es2019",
11
+ "module": "esnext",
12
+ "moduleResolution": "node",
13
+ "allowJs": false,
14
+
15
+ "noUnusedLocals": true,
16
+ "strictNullChecks": true,
17
+ "noImplicitAny": true,
18
+ "noImplicitThis": true,
19
+ "noImplicitReturns": true,
20
+ "strict": true,
21
+ "isolatedModules": false,
22
+
23
+ "experimentalDecorators": true,
24
+ "resolveJsonModule": true,
25
+ "esModuleInterop": true,
26
+ "removeComments": false,
27
+ "jsx": "preserve",
28
+ "lib": ["esnext", "dom"],
29
+ "types": ["node"]
30
+ }
31
+ }