Skip to content

Commit c8a0d24

Browse files
authored
Merge pull request #31 from Acksell/acksell/fix-mlkit-view-typing
MLKitView typing: Hide overriden on-function
2 parents 742e5c3 + 413e5ff commit c8a0d24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: packages/mlkit-core/index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ export declare class MLKitView extends MLKitViewBase {
4343
requestCameraPermission(): Promise<void>;
4444
hasCameraPermission(): boolean;
4545
on(event: 'detection', callback: (args: DetectionEvent) => void, thisArg?: any);
46+
// Needed when 'on' method is overriden.
47+
/**
48+
* @hidden
49+
*/
50+
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
4651
}
4752

4853
export function detectWithStillImage(image: any, options?: StillImageDetectionOptions): Promise<{ [key: string]: any }>;

0 commit comments

Comments
 (0)