Skip to content

Commit

Permalink
fix(cogify): correct documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tawera-manaena committed Dec 19, 2024
1 parent 6b3b67f commit 1bbde99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/cogify/src/cogify/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { fsa } from '@basemaps/shared';
import { Type } from 'cmd-ts';

/**
* Parse a input parameter as a URL.
* Parse an input RGBA hexstring as an RGBA object.
*
* If it looks like a file path, it will be converted using `pathToFileURL`.
* Throws an error if the RGBA hexstring is invalid.
**/
export const Rgba: Type<string, RGBA> = {
from(str) {
Expand All @@ -16,7 +16,7 @@ export const Rgba: Type<string, RGBA> = {
};

/**
* Parse a input parameter as a URL.
* Parse an input parameter as a URL.
*
* If it looks like a file path, it will be converted using `pathToFileURL`.
**/
Expand All @@ -31,7 +31,7 @@ export const Url: Type<string, URL> = {
};

/**
* Parse a input parameter as a URL which represents a folder.
* Parse an input parameter as a URL which represents a folder.
*
* If it looks like a file path, it will be converted using `pathToFileURL`.
* Any search parameters or hash will be removed, and a trailing slash added
Expand Down

0 comments on commit 1bbde99

Please sign in to comment.