@tempots/dom
Version:
Fully-typed frontend framework alternative to React and Angular
15 lines (14 loc) • 603 B
TypeScript
import { DOMContext } from '../dom/dom-context';
import { Provider as BaseProvider, ProviderOptions as BaseProviderOptions } from '@tempots/render';
export { WithProvider, Provide, Use, UseMany, UseOptional } from './shared';
/**
* Represents a provider for a specific type `T`, specialized for DOMContext.
* @public
*/
export type Provider<T, O = any> = BaseProvider<T, O, DOMContext>;
/**
* Represents an object with provider options, specialized for DOMContext.
* @public
*/
export type ProviderOptions = BaseProviderOptions<DOMContext>;
export type { ToProviderTypes } from '@tempots/render';