Skip to content

Commit

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

/// <summary>
/// Strongly-typed bindings that update both ways
/// </summary>
module TwoWayT =

/// Elemental instance of a two-way binding.
let id<'a> : string -> Binding<'a, 'a, 'a> =
TwoWay.id
|> createBindingT

/// <summary>
/// Strongly-typed bindings that dispatch messages from the view.
/// </summary>
Expand Down

0 comments on commit 2b69464

Please sign in to comment.