Skip to content

Commit 05b4b85

Browse files
author
farfromrefug
committed
fix(zoomimage): typings fix
1 parent aa234b1 commit 05b4b85

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/zoomimage/index-common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { Property } from '@nativescript/core';
33

44
export { initialize };
55

6-
export class ZoomImageBase extends Img {
6+
export abstract class ZoomImageBase extends Img {
77
zoomScale: number;
88
minZoom: number;
99
maxZoom: number;
10+
abstract setZoom(scale: number, animated?: boolean, point?: { x; y });
1011
}
1112

1213
export const zoomScaleProperty = new Property<ZoomImageBase, number>({

src/zoomimage/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
import { Img } from '@nativescript-community/ui-image';
1+
import { ZoomImageBase } from './index-common';
22

3-
export class ZoomImg extends Img {}
3+
export class ZoomImg extends ZoomImageBase {
4+
}

0 commit comments

Comments
 (0)