Typescript uninspect arg in confim() function
See original GitHub issueVersion
2.0.0
Reproduction link
https://play.nativescript.org/?template=play-vue&id=55NFPr
Platform and OS info
android
Steps to reproduce
Is just an error that the typescript expects a string but receive an object, don’t trigger an error in the app just appoint a syntax error.
confirm({
title: ''"
})
### What is expected?
Dont't show syntax errors in vscode
### What is actually happening?
Show syntax errors in vscode and in console too.
---
Check in a local setup
<!-- generated by nativescript-vue-issue-helper. DO NOT REMOVE -->
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Interface type check with Typescript - javascript - Stack Overflow
The arg is MyInterfaced bit tells the compiler: "If a branch calls this function and the result is true, accept all further use...
Read more >Functions - TypeScript: Handbook
A function's type has the same two parts: the type of the arguments and the return type. When writing out the whole function...
Read more >Two ways to confirm the ending of a String in JavaScript
Check if a string (first argument, str ) ends with the given target string (second argument, target ). This challenge can be solved...
Read more >colinhacks/zod: TypeScript-first schema validation ... - GitHub
Immutable: methods (e.g. .optional() ) return a new instance; Concise, chainable interface; Functional approach: parse, don't validate; Works with plain ...
Read more >setInterval() - Web APIs - MDN Web Docs
The setInterval() method, offered on the Window and Worker interfaces, repeatedly calls a function or executes a code snippet, with a fixed ...
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 Free
Top 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
Well i used the cli to make the project and i also choose the typescript option, but i don’t see in this project for a while so i will check again and see if the error is still happening.
@zzhenryquezz I will close this issue but let me see if there is a problem using the
vue-cli-template
and TS.