-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
37,120 additions
and
229 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,4 +212,3 @@ demo/release/ | |
CHANGELOG.md | ||
build/ | ||
packages/*/dist | ||
dist/ |
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,26 +1,24 @@ | ||
export declare type CHECK_ALL = 1; | ||
export declare type CHECK_ONLY_ERROR = 2; | ||
export declare const CHECK_ALL: 1; | ||
export declare const CHECK_ONLY_ERROR: 2; | ||
export interface IImageLoadedOptions { | ||
prefix?: string; | ||
length?: number; | ||
type?: CHECK_ALL | CHECK_ONLY_ERROR; | ||
type?: 1 | 2; | ||
complete?: () => void; | ||
end?: () => void; | ||
error?: (e: { | ||
target: LoadingImageElement; | ||
itemIndex: number; | ||
}) => void; | ||
} | ||
export declare const CHECK_ALL: CHECK_ALL; | ||
export declare const CHECK_ONLY_ERROR: CHECK_ONLY_ERROR; | ||
interface LoadingImageElement extends HTMLImageElement { | ||
export interface LoadingImageElement extends HTMLImageElement { | ||
__ITEM_INDEX__?: number; | ||
} | ||
declare class ImageLoaded { | ||
static CHECK_ALL: number; | ||
static CHECK_ONLY_ERROR: number; | ||
static waitImageLoaded(checklist: LoadingImageElement[][], { prefix, length, type, complete, error, end }: IImageLoadedOptions): void; | ||
static waitImageLoaded(checklist: LoadingImageElement[][], {prefix, length, type, complete, error, end}: IImageLoadedOptions): void; | ||
static checkImageLoaded(el: HTMLElement): HTMLImageElement[]; | ||
static check(elements: HTMLElement[], { prefix, type, complete, error, end }: IImageLoadedOptions): void; | ||
static check(elements: HTMLElement[], {prefix, type, complete, error, end}: IImageLoadedOptions): void; | ||
} | ||
export default ImageLoaded; |
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
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,6 +1,4 @@ | ||
export declare type WindowMockType = { | ||
[P in keyof Window]?: Window[P] extends (...args: any[]) => any ? Window[P] : Partial<Window[P]>; | ||
}; | ||
import { WindowMockType } from "./types"; | ||
declare let win: WindowMockType; | ||
export { win as window }; | ||
export declare const document: Partial<Document>; |
Oops, something went wrong.