Skip to content

Commit

Permalink
proper type for ImprovedRequest (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhenliu-gg5 authored Apr 9, 2020
1 parent 5ce36a6 commit cdd49cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/google-cloud-vision/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export interface FeaturesMethod {
objectLocalization?: FeatureFunction;
}
interface ImprovedRequest {
image?: {source?: {filename: string}; content?: Uint8Array | string | null};
image?: {
source?: {
filename?: string;
imageUri?: string;
};
content?: Uint8Array | string | null;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
features?: any;
}
Expand Down

0 comments on commit cdd49cf

Please sign in to comment.