Tags: nickna/SharpTS
Tags
Implement strict mode support across the interpreter and runtime - Added support for "use strict" directive parsing at both file and function levels. - Enhanced property and array manipulation methods to enforce strict mode behavior, throwing TypeErrors for illegal operations on frozen or sealed objects and arrays. - Introduced new methods in SharpTSObject, SharpTSInstance, and SharpTSArray to handle strict mode checks. - Updated the interpreter to wrap environments with strict mode when applicable. - Created tests to validate strict mode functionality, including frozen and sealed objects, function-level strict mode, and directive parsing. - Modified the parser to recognize string literals as directive statements when they appear at the start of a file or function body.
Add docs for using .NET types from TypeScript via @DotNetType - Introduce docs/dotnet-types.md: comprehensive guide to inbound .NET interop, including usage of @DotNetType, type mapping, overloads, and examples for BCL types. - Update README with .NET interop overview and quickstart for using .NET types in TypeScript. - Cross-reference inbound/outbound interop in dotnet-integration.md. - Improve documentation navigation and links to new guides.