Skip to content

Commit

Permalink
Merge pull request react-native-camera#2765 from tribou/tracked-text-…
Browse files Browse the repository at this point in the history
…feature-type

Fix TrackedTextFeature TS type
  • Loading branch information
MateusAndrade committed Mar 26, 2020
2 parents e9af04a + 86e8053 commit d1e3d66
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,18 @@ export interface Face {
rollAngle?: number;
}

export interface TrackedTextFeature {
type: 'block' | 'line' | 'element';
export interface TrackedTextFeatureRecursive {
type: "block" | "line" | "element";
bounds: {
size: Size;
origin: Point;
};
value: string;
components: TrackedTextFeature[];
components?: TrackedTextFeatureRecursive[];
}

export interface TrackedTextFeature extends TrackedTextFeatureRecursive {
components: TrackedTextFeatureRecursive[];
}

interface TakePictureOptions {
Expand Down

0 comments on commit d1e3d66

Please sign in to comment.