Skip to content

Commit 0b66e30

Browse files
committed
feat: 💪 (type) TecackStrokes
1 parent b3d507c commit 0b66e30

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/shared/src/stroke.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
export type TecackDataset = [TargetChar, TargetCharStrokeLength, Array<TecackStroke>];
1+
/**
2+
* The TecackDataset.
3+
*
4+
* @example ["字", 6, [..]]
5+
*/
6+
export type TecackDataset = [TargetChar, TargetCharStrokeLength, TecackStrokes];
27

38
export type TargetChar = string;
49

510
export type TargetCharStrokeLength = number;
611

12+
/** Stroke information for any single character. */
13+
export type TecackStrokes = Array<TecackStroke>;
14+
15+
/** Information on a single stroke of any single character. */
716
export type TecackStroke = Array<Position>;
817

918
export type Position = [X, Y];

0 commit comments

Comments
 (0)