Skip to content

Commit c7f4e8e

Browse files
committed
Add type constraint for commands
1 parent 5fc7dd6 commit c7f4e8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elmish.WPF/BindingData.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module internal Elmish.WPF.BindingData
33

44
open System.Collections.ObjectModel
55
open System.Windows
6+
open System.Windows.Input
67

78
open Elmish
89

@@ -552,7 +553,7 @@ module BindingData =
552553

553554
module Cmd =
554555

555-
let createWithParam exec canExec autoRequery : BindingData<'model, 'msg, 't> =
556+
let createWithParam exec canExec autoRequery : BindingData<'model, 'msg, ICommand> =
556557
{ Exec = exec
557558
CanExec = canExec
558559
AutoRequery = autoRequery }

0 commit comments

Comments
 (0)