Skip to content

Commit 0959c44

Browse files
author
Tyson Williams
committed
removed internal
1 parent e0f8713 commit 0959c44

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/Elmish.WPF/Binding.fs

+15-16
Original file line numberDiff line numberDiff line change
@@ -33,60 +33,60 @@ module WindowState =
3333
| ValueNone -> WindowState.Closed
3434

3535

36-
type internal OneWayData<'model, 'a> = {
36+
type OneWayData<'model, 'a> = {
3737
Get: 'model -> 'a
3838
}
3939

40-
type internal OneWayLazyData<'model, 'a, 'b> = {
40+
type OneWayLazyData<'model, 'a, 'b> = {
4141
Get: 'model -> 'a
4242
Map: 'a -> 'b
4343
Equals: 'a -> 'a -> bool
4444
}
4545

46-
type internal OneWaySeqLazyData<'model, 'a, 'b, 'id> = {
46+
type OneWaySeqLazyData<'model, 'a, 'b, 'id> = {
4747
Get: 'model -> 'a
4848
Map: 'a -> 'b seq
4949
Equals: 'a -> 'a -> bool
5050
GetId: 'b -> 'id
5151
ItemEquals: 'b -> 'b -> bool
5252
}
5353

54-
type internal TwoWayData<'model, 'msg, 'a> = {
54+
type TwoWayData<'model, 'msg, 'a> = {
5555
Get: 'model -> 'a
5656
Set: 'a -> 'model -> 'msg
5757
}
5858

59-
type internal TwoWayValidateData<'model, 'msg, 'a> = {
59+
type TwoWayValidateData<'model, 'msg, 'a> = {
6060
Get: 'model -> 'a
6161
Set: 'a -> 'model -> 'msg
6262
Validate: 'model -> string voption
6363
}
6464

65-
type internal CmdData<'model, 'msg> = {
65+
type CmdData<'model, 'msg> = {
6666
Exec: 'model -> 'msg voption
6767
CanExec: 'model -> bool
6868
}
6969

70-
type internal CmdParamData<'model, 'msg> = {
70+
type CmdParamData<'model, 'msg> = {
7171
Exec: obj -> 'model -> 'msg voption
7272
CanExec: obj -> 'model -> bool
7373
AutoRequery: bool
7474
}
7575

76-
type internal SubModelSelectedItemData<'model, 'msg, 'id> = {
76+
type SubModelSelectedItemData<'model, 'msg, 'id> = {
7777
Get: 'model -> 'id voption
7878
Set: 'id voption -> 'model -> 'msg
7979
SubModelSeqBindingName: string
8080
}
8181

82-
type internal SubModelData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
82+
type SubModelData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
8383
GetModel: 'model -> 'bindingModel voption
8484
GetBindings: unit -> Binding<'bindingModel, 'bindingMsg> list
8585
ToMsg: 'model -> 'bindingMsg -> 'msg
8686
Sticky: bool
8787
}
8888

89-
and internal SubModelWinData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
89+
and SubModelWinData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
9090
GetState: 'model -> WindowState<'bindingModel>
9191
GetBindings: unit -> Binding<'bindingModel, 'bindingMsg> list
9292
ToMsg: 'model -> 'bindingMsg -> 'msg
@@ -95,7 +95,7 @@ and internal SubModelWinData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
9595
OnCloseRequested: 'model -> 'msg voption
9696
}
9797

98-
and internal SubModelSeqData<'model, 'msg, 'bindingModel, 'bindingMsg, 'id> = {
98+
and SubModelSeqData<'model, 'msg, 'bindingModel, 'bindingMsg, 'id> = {
9999
GetModels: 'model -> 'bindingModel seq
100100
GetId: 'bindingModel -> 'id
101101
GetBindings: unit -> Binding<'bindingModel, 'bindingMsg> list
@@ -104,7 +104,7 @@ and internal SubModelSeqData<'model, 'msg, 'bindingModel, 'bindingMsg, 'id> = {
104104

105105

106106
/// Represents all necessary data used to create the different binding types.
107-
and internal BindingData<'model, 'msg> =
107+
and BindingData<'model, 'msg> =
108108
| OneWayData of OneWayData<'model, obj>
109109
| OneWayLazyData of OneWayLazyData<'model, obj, obj>
110110
| OneWaySeqLazyData of OneWaySeqLazyData<'model, obj, obj, obj>
@@ -120,12 +120,11 @@ and internal BindingData<'model, 'msg> =
120120

121121
/// Represents all necessary data used to create a binding.
122122
and Binding<'model, 'msg> =
123-
internal
124123
{ Name: string
125124
Data: BindingData<'model, 'msg> }
126125

127126

128-
module internal BindingData =
127+
module BindingData =
129128

130129
let subModelSelectedItemLast a b =
131130
match a, b with
@@ -247,7 +246,7 @@ module internal BindingData =
247246
let mapMsg f = mapMsgWithModel (fun _ -> f)
248247

249248

250-
module internal Binding =
249+
module Binding =
251250

252251
let mapData f binding =
253252
{ Name = binding.Name
@@ -261,7 +260,7 @@ module internal Binding =
261260
BindingData.subModelSelectedItemLast a.Data b.Data
262261

263262

264-
module internal Bindings =
263+
module Bindings =
265264

266265
let mapModel f bindings = bindings |> List.map (Binding.mapModel f)
267266
let mapMsgWithModel f bindings = bindings |> List.map (Binding.mapMsgWithModel f)

0 commit comments

Comments
 (0)