Skip to content

Commit

Permalink
Update Node types to allow usage of structuredClone without type-er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
rafaellehmkuhl committed Nov 27, 2023
1 parent 168164f commit e32773c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/file-saver": "^2.0.5",
"@types/jsdom": "^16.2.14",
"@types/leaflet": "^1.9.0",
"@types/node": "^16.11.27",
"@types/node": "^17.0.29",
"@types/uuid": "^8.3.4",
"@types/webfontloader": "^1.0.0",
"@vitejs/plugin-vue": "3.1.0",
Expand Down
1 change: 0 additions & 1 deletion src/stores/widgetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ export const useWidgetManagerStore = defineStore('widget-manager', () => {
if (savedProfiles.value.isEmpty()) {
importProfilesFromVehicle()
widgetProfiles.forEach((profile) => {
// @ts-ignore: structuredClone is a thing since a long time ago
const userProfile = structuredClone(profile)
userProfile.name = userProfile.name.replace('Default', 'User')
userProfile.hash = uuid4()
Expand Down

0 comments on commit e32773c

Please sign in to comment.