Interface ResolverProvider

An interface to be implemented by objects that initialize Resolver objects.

interface ResolverProvider {
    init: ((config) => Promise<Resolver>);
    name: string | (() => string);
    schema?: ((props) => ObjectSchema<any>);
}

Properties

Properties

init: ((config) => Promise<Resolver>)

Initialize a resolver.

Type declaration

name: string | (() => string)

The name of the resolver that this provider initializes.

Type declaration

    • (): string
    • Returns string

schema?: ((props) => ObjectSchema<any>)

Create a schema used to validate properties used to initialize a new resolver.

Type declaration

    • (props): ObjectSchema<any>
    • Create a schema used to validate properties used to initialize a new resolver.

      Returns ObjectSchema<any>

Generated using TypeDoc