mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- Keep cached native class instances callable, including inherited methods and JavaScript arguments. - Support plain-object Proxy traps with live receivers, enumeration, and data-property invariants. - Compile untyped addition, computed environment keys, and text-codec startup storage natively.
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
export class Base {
|
|
onLifecyclePass: (() => void) | null;
|
|
runLifecycle(): void;
|
|
resetLifecycle(): void;
|
|
getSelectedText(): string;
|
|
selected(): string;
|
|
}
|
|
export class View extends Base {
|
|
constructor(value: string);
|
|
parent: View | null;
|
|
onLifecyclePass: () => void;
|
|
getSelectedText(): string;
|
|
label(): string;
|
|
label(value: string): View;
|
|
}
|
|
export class Metrics {
|
|
constructor(count: number, active: boolean);
|
|
count(): number;
|
|
active(): boolean;
|
|
}
|
|
export class Input {
|
|
private parser;
|
|
push(value: string): void;
|
|
read(): string;
|
|
save(): { read(): string; describe(): string } | null;
|
|
clear(): void;
|
|
close(): void;
|
|
open(): void;
|
|
}
|
|
export class FactoryInput {
|
|
private parser;
|
|
open(value: string): void;
|
|
close(): void;
|
|
read(): string;
|
|
save(): { describe(): string } | null;
|
|
}
|
|
export function describeOptions(config: { name: string; required?: boolean; default?: number; type?: string }): string;
|
|
export function exerciseCachedStore(): string;
|
|
export function exerciseEnvironmentProxy(): string;
|