Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non-new constructors for Number, String, Date, Boolean & RegExp #2394

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

bobrippling
Copy link
Contributor

@bobrippling bobrippling commented Jul 21, 2023

This allows typescript code such as:

var n = Number("123.45");

and similarly for String(...), Date(...), etc

This allows typescript code such as:

```typescript
var n = Number("123.45");
```

and similarly for `String(...)` and `Date(...)`
@bobrippling bobrippling changed the title Add non-new constructors for Number, String & Date Add non-new constructors for Number, String, Date, Boolean & RegExp Jul 22, 2023
@gfwilliams
Copy link
Member

Thanks!

@gfwilliams gfwilliams merged commit b701deb into espruino:master Jul 24, 2023
15 checks passed
@bobrippling bobrippling deleted the ts-constructors branch July 24, 2023 19:36
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.

2 participants