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.

Typescript uninspect arg in confim() function

See original GitHub issue

Version

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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
zzhenryquezzcommented, Sep 3, 2019

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.

1reaction
msaelicescommented, Sep 2, 2019

@zzhenryquezz I will close this issue but let me see if there is a problem using the vue-cli-template and TS.

Read more comments on GitHub >

github_iconTop 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 >

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