Skip to content

Commit

Permalink
Added parse to API
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmaster committed Oct 16, 2024
1 parent 9430b91 commit caaeec2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sitemapper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ declare class Sitemapper {
* @param url URL to the sitemap.xml file
*/
fetch(url?: string): Promise<SitemapperResponse>;

/**
* Requests the URL and uses parseStringPromise to parse through and find the data
*
* @param url URL to the sitemap.xml file
*/
parse(url?: string): Promise<ParseData>;

Check failure on line 43 in sitemapper.d.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'ParseData'.

Check failure on line 43 in sitemapper.d.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'ParseData'.

Check failure on line 43 in sitemapper.d.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'ParseData'.
}

export default Sitemapper;

0 comments on commit caaeec2

Please sign in to comment.