Skip to content

Commit

Permalink
Add type constraint for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
marner2 committed Aug 30, 2022
1 parent 9ee0424 commit ec21987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Elmish.WPF/BindingData.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Elmish.WPF

open System.Collections.ObjectModel
open System.Windows
open System.Windows.Input

open Elmish

Expand Down Expand Up @@ -549,7 +550,7 @@ module internal BindingData =

module Cmd =

let createWithParam exec canExec autoRequery =
let createWithParam exec canExec autoRequery : BindingData<'model, 'msg, ICommand> =
{ Exec = exec
CanExec = canExec
AutoRequery = autoRequery }
Expand Down

0 comments on commit ec21987

Please sign in to comment.