Skip to content

Commit

Permalink
Argument for MvuComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Nov 24, 2023
1 parent 622fa83 commit a5a74a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Fabulous.MauiControls/Component.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ module ComponentBuilders =
type Fabulous.Maui.View with
static member inline Component<'marker>() = ComponentBuilder()

static member MvuComponent(program) = MvuComponentBuilder(program)
static member inline MvuComponent(program: Program<unit, 'model, 'msg>) = MvuComponentBuilder(program, ())

static member inline MvuComponent(program: Program<'arg, 'model, 'msg>, arg: 'arg) = MvuComponentBuilder(program, arg)

0 comments on commit a5a74a1

Please sign in to comment.