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

Marshalling TimeSpan, Guid, BigInt #224

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Marshalling TimeSpan, Guid, BigInt #224

merged 2 commits into from
Mar 12, 2024

Conversation

jasongin
Copy link
Member

Fixes: #66
Fixes: #106

  • Marshal .NET Guid and TimeSpan to/from JS string.
    • The Guid string format is compatible with the popular JS uuid package, but there is no dependency on that package, and it mostly operates on string values anyway.
    • A runtime exception with descriptive error message is thrown if the string cannot be parsed when marshalling from JS string to a .NET value.
  • Marshal .NET BigInteger to/from JS bigint.
  • Update the type-definitions generator accordingly.

@jasongin jasongin requested a review from vmoroz March 12, 2024 03:46
@jasongin jasongin merged commit 80e94eb into main Mar 12, 2024
21 checks passed
@jasongin jasongin deleted the dev/jasongin/guid-bigint branch March 12, 2024 18:32
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.

Marshalling: Guid / uuid Marshalling: BigInt
2 participants