Skip to content

Commit

Permalink
Add a typed version of OneWaySeq
Browse files Browse the repository at this point in the history
  • Loading branch information
marner2 committed Apr 22, 2024
1 parent ae9a0b0 commit d5caf95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Elmish.WPF/Binding.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ module Binding =
OneWayToSource.id
|> createBindingT


module OneWaySeqT =

let id itemEquals (getId: 'a -> 'id) : string -> Binding<_, 'msg, _> =
OneWaySeq.create itemEquals getId
|> createBindingT

/// <summary>
/// Strongly-typed bindings that update both ways
/// </summary>
Expand Down

0 comments on commit d5caf95

Please sign in to comment.