Interface ContextAdapter<TFrameworkOpts>

Base interface for framework-specific context adapters.

Implement this interface to create adapters for React, Vue, Express, or any other framework. The adapter wraps a SynapseContext and provides framework-idiomatic access patterns.

1.2.0

interface ContextAdapter<TFrameworkOpts> {
    context: SynapseContext;
    name: string;
    destroy(): void | Promise<void>;
    init(opts?: TFrameworkOpts): void;
}

Type Parameters

  • TFrameworkOpts = unknown

    Framework-specific options.

Properties

Methods

Properties

The underlying context.

name: string

Adapter name (e.g. 'react', 'express', 'vue').

Methods