Skip to content

Add browser.d.ts and check for existence of Error.captureStackTrace()#2144

Merged
bcoe merged 7 commits intoyargs:mainfrom
codetheweb:feat-browser-typings
Apr 20, 2022
Merged

Add browser.d.ts and check for existence of Error.captureStackTrace()#2144
bcoe merged 7 commits intoyargs:mainfrom
codetheweb:feat-browser-typings

Conversation

@codetheweb
Copy link
Contributor

I'm attempting to use this in a browser environment and have run into a few issues.

@bcoe
Copy link
Member

bcoe commented Mar 19, 2022

Thanks for the patch 😄

@codetheweb in Chromium at least, Error.captureStackTrace is a method. I'm curious what environment is giving you trouble?

@codetheweb
Copy link
Contributor Author

It's not available in Firefox unfortunately.

@bcoe bcoe merged commit 6192990 into yargs:main Apr 20, 2022
@bcoe
Copy link
Member

bcoe commented Apr 20, 2022

@codetheweb thank you for the contribution.

@hongaar
Copy link
Contributor

hongaar commented May 12, 2022

The browser.d.ts is not available from NPM, added a commit to #2185 to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants