Skip to content

Commit 7f00560

Browse files
authored
docs: document example shape of PathComponent
1 parent 0b88799 commit 7f00560

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

intersect.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ export function parsePath(path: Path): PathComponent[];
8282
* ]
8383
*/
8484
declare type Path = string | PathComponent[];
85+
/**
86+
* A SVG path component, stored as an array with the operation, and parameters
87+
*
88+
* @example
89+
* ['M', 1, 2]
90+
*/
8591
declare type PathComponent = [ string, ...number[] ];
8692

8793
declare interface Intersection {

0 commit comments

Comments
 (0)