Skip to content

Commit

Permalink
Build fix: CreateFilterOptionsOptions needs explicit type level param…
Browse files Browse the repository at this point in the history
…eter so the property is generic.
  • Loading branch information
smoothdeveloper committed Jul 18, 2024
1 parent a70075a commit 83960fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Feliz.MaterialUI/Autocomplete.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Fable.Core.JsInterop
module AutocompleteHelpers =

[<EditorBrowsable(EditorBrowsableState.Never)>]
let createFilterOptions (config: CreateFilterOptionsOptions) : Func<'option [], AutocompleteFilterOptionsState, 'option []> =
let createFilterOptions (config: CreateFilterOptionsOptions<_>) : Func<'option [], AutocompleteFilterOptionsState, 'option []> =
import "createFilterOptions" "@material-ui/lab/Autocomplete"

type Autocomplete =
Expand All @@ -21,7 +21,7 @@ type Autocomplete =
?trim: bool
) : 'option [] -> AutocompleteFilterOptionsState -> 'option []
=
let opts = jsOptions<CreateFilterOptionsOptions>(fun o ->
let opts = jsOptions<CreateFilterOptionsOptions<_>>(fun o ->
if ignoreAccents.IsSome then o.ignoreAccents <- ignoreAccents.Value
if ignoreCase.IsSome then o.ignoreCase <- ignoreCase.Value
if matchFrom.IsSome then o.matchFrom <- matchFrom.Value
Expand Down
2 changes: 1 addition & 1 deletion src/Feliz.MaterialUI/Bindings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ type AutocompleteOnChangeReason =
| Clear


type CreateFilterOptionsOptions =
type CreateFilterOptionsOptions<'option> =
abstract ignoreAccents: bool with get, set
abstract ignoreCase: bool with get, set
abstract matchFrom: AutocompleteMatchFrom with get, set
Expand Down

0 comments on commit 83960fc

Please sign in to comment.