interface ObjectResolverInstance<TResult extends EmptyObject> {
    addResolver: (resolver: ObjectResolverInstance<TResult>) => this;
    priority: ObjectResolverPriority;
    removeResolver: (resolver: ObjectResolverInstance<TResult>) => this;
    resolve<T extends object = TResult>(): Promisable<undefined | T>;
    resolve<T extends object = TResult>(
        all: "*",
        options?: ObjectFilterOptions<T>,
    ): Promisable<T[]>;
    resolve<T extends object = TResult>(
        id: string,
        options?: ObjectFilterOptions<T>,
    ): Promisable<undefined | T>;
    resolve<T extends object = TResult>(
        filter: ObjectFilter<T>,
        options?: ObjectFilterOptions<T>,
    ): Promisable<T[]>;
    resolve<T extends object = TResult>(
        filter?: ObjectFilter<T>,
        options?: ObjectFilterOptions<T>,
    ): Promisable<T[]>;
    resolve<T extends object = TResult>(
        idOrFilter?: string | ObjectFilter<T>,
        options?: ObjectFilterOptions<T>,
    ): Promisable<undefined | T | T[]>;
    resolvePrivate<T extends object = TResult>(
        all: "*",
        options?: ObjectFilterOptions<T>,
    ): Promise<T[]>;
    resolvePrivate<T extends object = TResult>(
        id: string,
        options?: ObjectFilterOptions<T>,
    ): Promise<undefined | T>;
    resolvePrivate<T extends object = TResult>(
        id: string,
        options?: ObjectFilterOptions<T>,
    ): Promise<undefined | T | T[]>;
}

Type Parameters

Hierarchy (View Summary)

Properties

addResolver: (resolver: ObjectResolverInstance<TResult>) => this
removeResolver: (resolver: ObjectResolverInstance<TResult>) => this

Methods