[Improvement] add type definition files (#361)

This commit is contained in:
neverland
2017-11-29 18:00:08 +08:00
committed by GitHub
parent c8915d3984
commit 121e2de375
12 changed files with 153 additions and 4 deletions

12
types/image-preview.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
import { VanPopupMixin } from './mixins/popup';
export class VanImagePreview extends VanPopupMixin {
images: string[];
startPosition: number;
}
export interface ImagePreview {
(images: string[], startPosition?: number): VanImagePreview;
}
export const ImagePreview: ImagePreview;