Specification overview
ZenTS is the JavaScript/TypeScript port of ZLua. CLR types, binding, overloads, marshaling, lifetime, and build configuration follow ZLua unless the JS language or host requires an explicit adaptation.
Host API
1. JsAppDomain
Type system
This specification defines CLR type access, members, construction, and views for Mono/IL2CPP and V8/HostJs. Recommended csharp: imports and the authoritative CSharpassembly route resolve to the same type object. See member lookup and marshaling.
ZLua alignment and implementation status
ZenTS follows ZLua's CLR interop design, with explicit adaptations for JavaScript semantics and host capabilities.
Method overloads
1. Binding domains
zents standard library
zents is engine-independent. Internal hooks/SDK values are not business APIs. CSharp/csharp: expose CLR types/members; zents supplies type factories, generic closing, marshaling utilities, and array tools.
Lifetime, GC, and exceptions
1. Ownership
Versions, installation, and builds
1. Support policy
Migration and compatibility adapters
Adapters may change business syntax, not overloads, views, lifetimes, or XML scope. Retired APIs have no second compatibility semantics.
C# extension methods
extension methods
TypeScript workflow
1. Scope and layout
Settings
ZenTS.Settings persists in ProjectSettings/ZenTS.asset. The table lists source defaults; existing serialized user values may differ and are not all reset by migration.
Unity API optimizations
Settings.enableUnityOptimizations defaults to true. The implemented optimization follows ZLua and is covered by interop tests.
Member dispatch
5 items
Marshal
11 items
Build integration
7 items