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 authored and TysonMN committed Sep 16, 2022
1 parent c496eaa commit 5a6a5b3
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 @@ -3,6 +3,7 @@ module internal Elmish.WPF.BindingData

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

open Elmish

Expand Down Expand Up @@ -552,7 +553,7 @@ module BindingData =

module Cmd =

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

0 comments on commit 5a6a5b3

Please sign in to comment.