fix(components): setX should take rest parameters (#7461)

This commit is contained in:
muchnameless
2022-02-15 18:31:08 +01:00
committed by GitHub
parent 003439671d
commit 36173590a7
3 changed files with 5 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ export class UnsafeSelectMenuComponent extends Component<
* Sets the options on this select menu
* @param options The options to set on this select menu
*/
public setOptions(options: UnsafeSelectMenuOption[]) {
public setOptions(...options: UnsafeSelectMenuOption[]) {
this.options.splice(0, this.options.length, ...options);
return this;
}