Skip to content

Commit

Permalink
Add WorkerNavigator class on Main.fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Got17 committed Feb 24, 2025
1 parent 75a534f commit bcfc944
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion WebSharper.Permissions/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Definition =
"name" =? T<string>
"state" =? PermissionState.Type

"onchange" =@ T<unit> ^-> T<unit>
"onchange" =@ T<Dom.Event> ^-> T<unit>
]

let Permissions =
Expand All @@ -46,9 +46,16 @@ module Definition =
"permissions" =? Permissions
]

let WorkerNavigator =
Class "WorkerNavigator"
|+> Instance [
"permissions" =? Permissions
]

let Assembly =
Assembly [
Namespace "WebSharper.Permissions" [
WorkerNavigator
Navigator
Permissions
PermissionStatus
Expand Down

0 comments on commit bcfc944

Please # to comment.