Skip to content

Commit cdd49cf

Browse files
proper type for ImprovedRequest (#576)
1 parent 5ce36a6 commit cdd49cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/google-cloud-vision/src/helpers.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ export interface FeaturesMethod {
4242
objectLocalization?: FeatureFunction;
4343
}
4444
interface ImprovedRequest {
45-
image?: {source?: {filename: string}; content?: Uint8Array | string | null};
45+
image?: {
46+
source?: {
47+
filename?: string;
48+
imageUri?: string;
49+
};
50+
content?: Uint8Array | string | null;
51+
};
4652
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4753
features?: any;
4854
}

0 commit comments

Comments
 (0)