Skip to content

Commit a9a08b9

Browse files
committed
Make part of ViewModelArgs public
1 parent cb10cc5 commit a9a08b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Elmish.WPF/ViewModelArgs.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ module internal LoggingViewModelArgs =
2727
nameChain = "" }
2828

2929

30-
type internal ViewModelArgs<'model, 'msg> =
31-
{ initialModel: 'model
32-
dispatch: 'msg -> unit
33-
loggingArgs: LoggingViewModelArgs }
30+
type ViewModelArgs<'model, 'msg> =
31+
internal { initialModel: 'model; dispatch: 'msg -> unit; loggingArgs: LoggingViewModelArgs }
3432

35-
module internal ViewModelArgs =
36-
let create initialModel dispatch nameChain loggingArgs =
33+
module ViewModelArgs =
34+
let internal create initialModel dispatch nameChain loggingArgs =
3735
{ initialModel = initialModel
3836
dispatch = dispatch
3937
loggingArgs = LoggingViewModelArgs.map nameChain loggingArgs }
@@ -42,8 +40,10 @@ module internal ViewModelArgs =
4240
{ initialModel = v.initialModel |> mapModel
4341
dispatch = mapMsg >> v.dispatch
4442
loggingArgs = v.loggingArgs }
45-
46-
let simple initialModel =
43+
44+
let createWithoutLogging initialModel dispatch =
4745
{ initialModel = initialModel
48-
dispatch = ignore
46+
dispatch = dispatch
4947
loggingArgs = LoggingViewModelArgs.none }
48+
49+
let simple initialModel = createWithoutLogging initialModel ignore

0 commit comments

Comments
 (0)