Skip to content

Commit f07fc5e

Browse files
committedMar 13, 2025
feat(types): Add new SelectOption type
1 parent 41ab76a commit f07fc5e

File tree

1 file changed

+9
-0
lines changed
  • packages/browser-utils/src/types/html

1 file changed

+9
-0
lines changed
 

‎packages/browser-utils/src/types/html/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ export const InputType = {
3131
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types}
3232
*/
3333
export type InputType = (typeof InputType)[keyof typeof InputType];
34+
35+
/**
36+
* Represents an `option` element's data. May be used for `select`, `datalist` and similar
37+
* elements.
38+
*/
39+
export interface SelectOption {
40+
value: string;
41+
label: string;
42+
}

0 commit comments

Comments
 (0)