jmap-kit
    Preparing search index...

    Interface InvocationInterface<TArgs>

    The interface for Invocation instances.

    The invocation arguments interface for the {Object}/{method} invocation being created

    interface InvocationInterface<TArgs extends BaseInvocationArgs> {
        name: string;
        uri: keyof JMAPServerCapabilities;
        createReference(path: string): ResultReference;
        deleteArgument(name: keyof TArgs & string): boolean;
        getArgument(
            name: keyof TArgs & string,
        ): ResultReference | JSONValue | undefined;
        hasArgument(name: keyof TArgs & string): boolean;
        resolve(
            id: string,
            lookupId: (id: symbol) => string | undefined,
        ): JMAPRequestInvocation;
        setArgument<K extends string>(
            name: K,
            value: InvocationArgs<TArgs>[K],
        ): void;
        toJSON(): JMAPInvocationInternal;
    }

    Type Parameters

    Implemented by

    Index

    Properties

    name: string

    Methods