textmode.synth.js / ExtensionRegistration
Interface: ExtensionRegistration
Handle returned by a successful registration.
dispose() restores the previous binding (method, source function, and global property) and is idempotent. Disposing an older shadowed handle does not remove a newer registration.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
names | readonly | readonly string[] | Public names registered by this call. |
sources | readonly | Readonly<Record<string, SourceFunction>> | Standalone source functions for src-type definitions. |
Methods
dispose()
ts
dispose(): void;Revert this registration, restoring any previous bindings.
Returns
void
Example
js
const registration = setFunction(definition);
registration.dispose();