Wrong type signature for del command
See original GitHub issueWhen 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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
can you check 0.2.1 version
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.