manages browsing session history jsr.io/@mary/history
typescript jsr

chore: fmt

mary.my.id 465d7208 14a029be

verified
Changed files
+7 -7
lib
+7 -7
lib/mod.ts
··· 18 18 * components of a URL path. 19 19 */ 20 20 export interface Path { 21 - /** A URL pathname, beginning with a /. */ 21 + /** a URL pathname, beginning with a /. */ 22 22 pathname: string; 23 - /** A URL search string, beginning with a ?. */ 23 + /** a URL search string, beginning with a ?. */ 24 24 search: string; 25 - /** A URL fragment identifier, beginning with a #. */ 25 + /** a URL fragment identifier, beginning with a #. */ 26 26 hash: string; 27 27 } 28 28 ··· 30 30 * location entry stored by the history, including position, state and key. 31 31 */ 32 32 export interface Location extends Path { 33 - /** Position of this history */ 33 + /** position of this history */ 34 34 index: number; 35 - /** A value of arbitrary data associated with this location. */ 35 + /** a value of arbitrary data associated with this location. */ 36 36 state: unknown; 37 - /** A unique identifier for the specific history entry */ 37 + /** a unique identifier for the specific history entry */ 38 38 id: string; 39 - /** A unique identifier for the history entry's slot in the entries list */ 39 + /** a unique identifier for the history entry's slot in the entries list */ 40 40 key: string; 41 41 } 42 42