Interface ResolverProvider

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

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

Properties

Properties

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

Initialize a resolver.

name: string | (() => string)

The name of the resolver that this provider initializes.

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

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