Skip to content

Commit

Permalink
Merge pull request #7127 from J-Michalek/fix/select-exposed-methods
Browse files Browse the repository at this point in the history
fix(select): add exposed methods to types
  • Loading branch information
tugcekucukoglu authored Jan 22, 2025
2 parents 5ccc07f + 69dfde2 commit 5c78108
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
36 changes: 24 additions & 12 deletions apps/showcase/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -55721,23 +55721,35 @@
},
"SelectMethods": {
"relatedProp": "",
"props": [
"props": [],
"methods": [
{
"name": "show",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
"parameters": [
{
"name": "isFocus",
"optional": true,
"type": "boolean",
"description": "Decides whether to focus on the component. Default value is false."
}
],
"returnType": "void",
"description": "Shows the overlay."
},
{
"name": "hide",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
"parameters": [
{
"name": "isFocus",
"optional": true,
"type": "boolean",
"description": "Decides whether to focus on the component. Default value is false."
}
],
"returnType": "void",
"description": "Hides the overlay."
}
],
"methods": []
]
}
}
},
Expand Down Expand Up @@ -100709,4 +100721,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions packages/primevue/src/multiselect/MultiSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -938,11 +938,11 @@ export interface MultiSelectMethods {
* @group Component
*
*/
declare const MultiSelect: DefineComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits, MultiSelectMethods>;
declare const MultiSelect: DefineComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits>;

declare module 'vue' {
export interface GlobalComponents {
MultiSelect: DefineComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits, MultiSelectMethods>;
MultiSelect: DefineComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits>;
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/primevue/src/select/Select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,11 @@ export interface SelectMethods {
* @group Component
*
*/
declare const Select: DefineComponent<SelectProps, SelectSlots, SelectEmits>;
declare const Select: DefineComponent<SelectProps, SelectSlots, SelectEmits, SelectMethods>;

declare module 'vue' {
export interface GlobalComponents {
Select: DefineComponent<SelectProps, SelectSlots, SelectEmits>;
Select: DefineComponent<SelectProps, SelectSlots, SelectEmits, SelectMethods>;
}
}

Expand Down

0 comments on commit 5c78108

Please sign in to comment.