Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove invalid usages of RequireQualifiedAccess #450

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type StateHookError =
" This usually means a component key should have changed, but it didn't."
]

[<RequireQualifiedAccess; Struct; IsReadOnly>]
[<Struct; IsReadOnly>]
type StateHookValueResolver =
| Const of constant: IAnyReadable
| Lazy of factory: (unit -> IAnyReadable)
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.FuncUI/Components/State/State.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open Avalonia.FuncUI


/// Used to create a dependency graph of state values for debugging / visualization.
[<Struct; RequireQualifiedAccess>]
[<Struct>]
type InstanceType =
| Source
| Adapter of sources: Map<string, IAnyReadable>
Expand Down
2 changes: 0 additions & 2 deletions src/Avalonia.FuncUI/DSL/Panels/Grid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module ColumnDefinition =
open Avalonia.Controls

[<Struct>]
[<RequireQualifiedAccess>]
type ColumnWidth =
/// Column is auto-sized to fit it's contents
| Auto
Expand Down Expand Up @@ -37,7 +36,6 @@ module RowDefinition =
open Avalonia.Controls

[<Struct>]
[<RequireQualifiedAccess>]
type RowHeight =
/// Row is auto-sized to fit it's contents
| Auto
Expand Down