Skip to content

Commit

Permalink
Fix TrackedTextFeature TS type
Browse files Browse the repository at this point in the history
  • Loading branch information
tribou committed Mar 25, 2020
1 parent e9af04a commit 86e8053
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 86e8053

Please sign in to comment.