Libraries
    Preparing search index...

    Type Alias ExtensionDescriptor<T>

    A branded descriptor returned by defineExtension.

    The descriptor captures the extension's method signatures at the type level so that withExtensions can produce correctly-typed factory functions. At runtime it holds the (possibly wrapped) configuration object.

    Extension descriptors are intentionally opaque — consumers should not access config directly. Instead, pass descriptors to withExtensions to obtain augmented builder factories.

    // The type is inferred — no need to annotate
    const myExt: ExtensionDescriptor<{ string: { slug: ... } }> = defineExtension({ ... });
    type ExtensionDescriptor<T extends ExtensionConfig = ExtensionConfig> = {
        __brand: unique symbol;
        config: T;
    }

    Type Parameters

    Index

    Properties

    Properties

    __brand: unique symbol
    config: T