Skip to content

Commit

Permalink
types: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 21, 2020
1 parent c57f4a8 commit daa55f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/uploader/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function toArray<T>(item: T | T[]): T[] {
}

export function readFileContent(file: File, resultType: ResultType) {
return new Promise((resolve) => {
return new Promise<string | ArrayBuffer | null | undefined>((resolve) => {
if (resultType === 'file') {
resolve();
return;
Expand Down
4 changes: 2 additions & 2 deletions test/event.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPublicInstance } from 'vue';
import { VueWrapper } from '@vue/test-utils';

function getTouch(el: HTMLElement | Window, x: number, y: number) {
function getTouch(el: Element | Window, x: number, y: number) {
return {
identifier: Date.now(),
target: el,
Expand Down Expand Up @@ -47,7 +47,7 @@ export function trigger(

// simulate drag gesture
export function triggerDrag(
el: Wrapper<Vue> | HTMLElement,
el: VueWrapper<ComponentPublicInstance> | HTMLElement,
x = 0,
y = 0
): void {
Expand Down

0 comments on commit daa55f8

Please sign in to comment.