Docs (4.0.0)
class ViewComposite type

type WithPreset

Type definition for an extended view composite class, result of ViewComposite.withPreset().

static

type WithPreset<TPreset, TContent extends any[], TBodyView extends View, TObject> = {
    new (preset?: TPreset & {
        variant?: ViewCompositeVariant<TPreset, TObject>;
    }, ...content: TContent): ViewComposite<TBodyView> & TObject;
    preset(preset?: TPreset & {
        variant?: ViewCompositeVariant<TPreset, TObject>;
    }, ...content: TContent): {
        new (): ViewComposite<TBodyView> & TObject;
    };
}

Related