question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong type signature for del command

See original GitHub issue

When I use the del command with a string[], I get an error from the service.

ERR unsupported arg type: ["some-key"]

When I use the del command with a string, I get an error from the TypeScript compiler.

Argument of type 'string' is not assignable to parameter of type 'string[]'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ademiltercommented, Dec 8, 2021

can you check 0.2.1 version

0reactions
kay-iscommented, Dec 9, 2021

Ah, btw. I just noticed I can use the spread operator instead of applying, also I was building the arrays manually in the first place, so I could simply call the del function with multiple arguments as it was intended, haha.

I was so deep in, because of the wrong typing in the old version, that I didn’t even consider this.

Anyway, now my code is good, but it would be cool if the del method would either handle arrays correctly or tell people via TypeScript that you shouldn’t use an array in the first place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error: invalid signature" on Windows after attempting to delete ...
Press Win+R keys; Type diskmgmt.msc and press enter. Identify your linux partition from the disk management utility and delete that partition.
Read more >
wrong-type-argument stringp (package-delete . 3) #1613
Hi, with latest ivy/counsel/swiper from MELPA, if I do M-x package-delete RET, I get this: Debugger entered--Lisp error: ...
Read more >
How to resolve Invalid Signature Detected on a Windows PC?
1. Set Boot Priority or Disconnect External Drive. 2. Disable Secure Boot Control. 3. Enable CSM and Disable Fast Boot.
Read more >
How to fix ERROR: No signature of method - Stack Overflow
This problem is common in Flutter 2.8. Delete Folder with all sub Folder of C:\Users\ ...
Read more >
wrong-type-argument listp mu4e-sent-folder - Google Groups
gmail.com" ;; user-full-name "Str Str" ;; mu4e-compose-signature "Kind regards,\nStr" ... invoked with 'U' in main view mu4e-get-mail-command "offlineimap" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found