Skip to content

Commit

Permalink
fix(types): Constrain Modifier Options to same type as Options in Mod…
Browse files Browse the repository at this point in the history
…ifierArguments (floating-ui#1598)
  • Loading branch information
eps1lon committed Apr 5, 2022
1 parent 50b3a43 commit 593aefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export type ModifierArguments<Options: Obj> = {
options: $Shape<Options>,
name: string,
};
export type Modifier<Name, Options> = {|
export type Modifier<Name, Options: Obj> = {|
name: Name,
enabled: boolean,
phase: ModifierPhases,
Expand Down

0 comments on commit 593aefe

Please sign in to comment.