Skip to content

Commit

Permalink
feat: 💪 (type) TecackStrokes
Browse files Browse the repository at this point in the history
  • Loading branch information
ubugeeei committed Nov 28, 2023
1 parent b3d507c commit 0b66e30
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/shared/src/stroke.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
export type TecackDataset = [TargetChar, TargetCharStrokeLength, Array<TecackStroke>];
/**
* The TecackDataset.
*
* @example ["字", 6, [..]]
*/
export type TecackDataset = [TargetChar, TargetCharStrokeLength, TecackStrokes];

export type TargetChar = string;

export type TargetCharStrokeLength = number;

/** Stroke information for any single character. */
export type TecackStrokes = Array<TecackStroke>;

/** Information on a single stroke of any single character. */
export type TecackStroke = Array<Position>;

export type Position = [X, Y];
Expand Down

0 comments on commit 0b66e30

Please sign in to comment.