Skip to content

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

PropertyModifierTypeDescription
namesreadonlyreadonly string[]Public names registered by this call.
sourcesreadonlyReadonly<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();