Interface HookProvider

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

interface HookProvider {
    init: (props: HookConfig) => Promise<Hook>;
    type: string;
}

Properties

Properties

init: (props: HookConfig) => Promise<Hook>

Initialize a hook.

type: string

The name of the hook that this provider initializes.