Skip to content

Commit b47eae7

Browse files
feat: #264 refactor popover type definitions
1 parent 2434acf commit b47eae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/jsx.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ type ElementAttributes<E extends HTMLElement> = {
99
class?: string;
1010
};
1111

12-
type PopoverHint = 'auto' | 'manual' | 'hint';
12+
type PopoverState = 'auto' | 'manual' | 'hint';
1313
type PopoverTargetAction = 'show' | 'hide' | 'toggle';
1414
type PopoverAttributes = {
1515
// have to manage this manually, can't seem to get this from TypeScript itself (not sure if just skill issue? :D)
1616
// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1790
1717
// it should be there per https://github.com/mdn/browser-compat-data/pull/21875
1818
// https://github.com/ProjectEvergreen/wcc/issues/236
1919
// per the spec, this should only apply to <button> and <input> elements.
20-
popover?: PopoverHint;
20+
popover?: PopoverState;
2121
popovertarget?: string;
2222
popovertargetaction?: PopoverTargetAction;
2323
};

0 commit comments

Comments
 (0)