diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-22 13:59:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 13:59:08 +0900 |
commit | edf6282d2e6211b2fdb4043c382366e5bbeb161e (patch) | |
tree | 6213156f74076febddd63521a6393630c36244df /src/shared/SettingData.ts | |
parent | 65cfdf60eb931ae98f83d66c8adea6b190e27f48 (diff) | |
parent | d555c64e5ce12d716925786d914510415c19a0db (diff) |
Merge pull request #835 from ueokande/dependabot/npm_and_yarn/typescript-4.0.3
Bump typescript from 3.9.7 to 4.0.3
Diffstat (limited to 'src/shared/SettingData.ts')
-rw-r--r-- | src/shared/SettingData.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/SettingData.ts b/src/shared/SettingData.ts index a7bdf80..0d72874 100644 --- a/src/shared/SettingData.ts +++ b/src/shared/SettingData.ts @@ -51,10 +51,9 @@ export class FormKeymaps { const data: { [op: string]: string } = {}; for (const key of Object.keys(json)) { const op = json[key]; - const args = { ...op }; - delete args.type; + const { type, ...args } = op; - let name = op.type; + let name = type; if (Object.keys(args).length > 0) { name += "?" + JSON.stringify(args); } |