mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
[Improvement] add type definition files (#361)
This commit is contained in:
12
types/image-preview.d.ts
vendored
Normal file
12
types/image-preview.d.ts
vendored
Normal 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;
|
Reference in New Issue
Block a user