Skip to content

Commit ca45c59

Browse files
Build fix: CreateFilterOptionsOptions needs explicit type level parameter so the property is generic.
1 parent a70075a commit ca45c59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Feliz.MaterialUI/Autocomplete.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ open Fable.Core.JsInterop
88
module AutocompleteHelpers =
99

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

1414
type Autocomplete =
@@ -21,7 +21,7 @@ type Autocomplete =
2121
?trim: bool
2222
) : 'option [] -> AutocompleteFilterOptionsState -> 'option []
2323
=
24-
let opts = jsOptions<CreateFilterOptionsOptions>(fun o ->
24+
let opts = jsOptions<CreateFilterOptionsOptions<_>>(fun o ->
2525
if ignoreAccents.IsSome then o.ignoreAccents <- ignoreAccents.Value
2626
if ignoreCase.IsSome then o.ignoreCase <- ignoreCase.Value
2727
if matchFrom.IsSome then o.matchFrom <- matchFrom.Value

src/Feliz.MaterialUI/Bindings.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ type AutocompleteOnChangeReason =
455455
| Clear
456456

457457

458-
type CreateFilterOptionsOptions =
458+
type CreateFilterOptionsOptions<'option> =
459459
abstract ignoreAccents: bool with get, set
460460
abstract ignoreCase: bool with get, set
461461
abstract matchFrom: AutocompleteMatchFrom with get, set

0 commit comments

Comments
 (0)