mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-25 06:24:27 +08:00
- Compile JavaScript instance fields with native undefined initialization and ordered resets. - Support prefix and postfix updates to numeric static fields through exact class bindings.
8 lines
138 B
TypeScript
8 lines
138 B
TypeScript
export class Counter {
|
|
static value = 10;
|
|
static #private = 20;
|
|
static nextPrivate(): number {
|
|
return Counter.#private++;
|
|
}
|
|
}
|