-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rolllup config improvements, adding tests, circle ci
- Loading branch information
Carlos Rodrigues
committed
Oct 23, 2019
1 parent
9cbf486
commit e5a190d
Showing
31 changed files
with
2,153 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { Ref } from "@vue/composition-api"; | ||
import { RefTyped } from "./utils"; | ||
export declare type RemoveEventFunction = () => void; | ||
export declare function useEvent<K extends keyof DocumentEventMap>(el: Element | Ref<Element>, name: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): RemoveEventFunction; | ||
export declare function useEvent<K extends keyof DocumentEventMap>(el: RefTyped<Element>, name: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): RemoveEventFunction; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { Ref } from "@vue/composition-api"; | ||
import { RefElement } from "./utils"; | ||
import { RemoveEventFunction } from "./event"; | ||
declare type MouseMoveResult = { | ||
export interface MouseMoveResult { | ||
mouseX: Ref<number>; | ||
mouseY: Ref<number>; | ||
remove: RemoveEventFunction; | ||
}; | ||
export declare function useMouseResize(el: RefElement, wait: number): MouseMoveResult; | ||
export declare function useMouseResize(el: RefElement, options: boolean | AddEventListenerOptions, wait?: number): MouseMoveResult; | ||
export {}; | ||
} | ||
export declare function useMouseMove(el: RefElement, wait: number): MouseMoveResult; | ||
export declare function useMouseMove(el: RefElement, options?: boolean | AddEventListenerOptions, wait?: number): MouseMoveResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { Ref } from "@vue/composition-api"; | ||
import { RefElement } from "./utils"; | ||
import { RemoveEventFunction } from "./event"; | ||
declare type ResizeResult = { | ||
export interface ResizeResult { | ||
height: Ref<number>; | ||
width: Ref<number>; | ||
remove: RemoveEventFunction; | ||
}; | ||
} | ||
export declare function useOnResize(el: RefElement, wait: number): ResizeResult; | ||
export declare function useOnResize(el: RefElement, options: boolean | AddEventListenerOptions, wait?: number): ResizeResult; | ||
export {}; | ||
export declare function useOnResize(el: RefElement, options?: boolean | AddEventListenerOptions, wait?: number): ResizeResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { Ref } from "@vue/composition-api"; | ||
import { RefElement } from "./utils"; | ||
import { RemoveEventFunction } from "./event"; | ||
declare type ScrollResult = { | ||
export interface ScrollResult { | ||
scrollTop: Ref<number>; | ||
scrollLeft: Ref<number>; | ||
remove: RemoveEventFunction; | ||
}; | ||
} | ||
export declare function useOnScroll(el: RefElement, wait: number): ScrollResult; | ||
export declare function useOnScroll(el: RefElement, options: boolean | AddEventListenerOptions, wait?: number): ScrollResult; | ||
export {}; | ||
export declare function useOnScroll(el: RefElement, options?: boolean | AddEventListenerOptions, wait?: number): ScrollResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.