Skip to content

Commit

Permalink
use spread instead of Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
GooseOb committed Dec 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 29ee077 commit bb78c5c
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yt-defaulter",
"author": "GooseOb",
"version": "1.11.0",
"version": "1.11.1",
"repository": {
"type": "git",
"url": "git+https://github.com/GooseOb/YT-Defaulter.git"
3 changes: 1 addition & 2 deletions src/menu/get-controls-creators.ts
Original file line number Diff line number Diff line change
@@ -16,8 +16,7 @@ type GetControlCreator = <

export const getControlCreators = (getCreator: GetControlCreator) => ({
numericInput: getCreator(
(props?: Props<HTMLInputElement>) =>
input(Object.assign({ type: 'number' }, props)),
(props?: Props<HTMLInputElement>) => input({ type: 'number', ...props }),
(elem) => ({
get: () => elem.value,
set: (value) => {

0 comments on commit bb78c5c

Please sign in to comment.