Unanswered questions in TypeSript

0 votes
0 answers

What is argument of type 'never[ ]' is not assignable to parameter of type 'string' in TypeScript

This is my code : export default class ...READ MORE

Apr 18, 2023 in TypeSript by anonymous

edited Mar 5 357 views
0 votes
0 answers

How to cast a json in typescript?

How to remove properties automatictly? READ MORE

Nov 10, 2022 in TypeSript by Alexandre

edited Mar 4 251 views
0 votes
0 answers

Javascript Arrays Opposite of Includes

What is the proper approach to remove ...READ MORE

Aug 8, 2022 in TypeSript by krishna
• 2,820 points
4,141 views
0 votes
0 answers

Optional property class in typescript

I'm new in typescript and I want ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points

edited Mar 4 255 views
0 votes
0 answers

npm installing old versions of (typescript compiler) package

On a windows environment, I have: node ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points

edited Mar 4 262 views
0 votes
0 answers

typescript - create type that denotes the set of even numbers

Can anyone know how to create this ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points

edited Mar 4 219 views
0 votes
0 answers

React Typescript: It looks like you're trying to use TypeScript but do not have typescript installed

I want to create a React application ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points

edited Mar 4 167 views
0 votes
0 answers

How to add Typescript definitions to Express req & res?

I have a set of controller functions ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 182 views
0 votes
0 answers

When to use Interface and Model in TypeScript / Angular

I recently watched a Tutorial on Angular ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 164 views
0 votes
0 answers

why we are using HTMLInputElement in typescript?

Why we are using: (document.getElementById("ipv") as HTMLInputElem ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 146 views
0 votes
0 answers

How to install and run Typescript locally in npm?

I want to install and run Typescript ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 165 views
0 votes
0 answers

What is the difference between var and let in Typescript?

I submitted a question on stack overflow ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 170 views
0 votes
0 answers

How to install all typescript definition file based on packages.json?

In my project, I have a package.json ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 153 views
0 votes
0 answers

Typescript how to create type with common properties of two types?

There are 2 types type A = { ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 131 views
0 votes
0 answers

Typescript & operator

I'm struggling to find the definition of ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 145 views
0 votes
0 answers

Define prototype function with typescript

When I try to define a prototype ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 154 views
0 votes
0 answers

Enforcing the type of the indexed members of a Typescript object?

I would like to store a mapping ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 163 views
0 votes
0 answers

Declare an array in TypeScript

I'm having trouble either declaring or using ...READ MORE

Aug 3, 2022 in TypeSript by Deepak
• 980 points

edited Mar 4 160 views
0 votes
0 answers

Use typescript to dynamically set class property in constructor

I am trying create a typescript class MyClass with ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 162 views
0 votes
0 answers

Ignore typescript definition error

I have a 3rd party typescript definition ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 177 views
0 votes
0 answers

Overriding interface property type defined in Typescript d.ts file

Is there a way to change the ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 145 views
0 votes
0 answers

Source has 2 element(s) but target allows only 1. Typescript spread operator

I'm trying to spread all values in ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 176 views
0 votes
0 answers

TypeScript A computed property name in a type literal must directly refer to a built-in symbol

I'm looking forward an object which contains ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 178 views
0 votes
0 answers

typescript interface require one of two properties to exist

I'm trying to create an interface that ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 184 views
0 votes
0 answers

Set types on useState React Hook with TypeScript

I'm migrating a React with TypeScript project ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 140 views
0 votes
0 answers

How can I define the type for a <video> reference in React using Typescript?

I'm trying to control the play/pause state ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 166 views
0 votes
0 answers

Property 'value' does not exist on type EventTarget in TypeScript

So the following code is in Angular ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 195 views
0 votes
0 answers

Typescript compiler can't find node with yarn - Cannot find type definition file for 'node'

I have @types/node installed. I'm using Yarn ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 178 views
0 votes
0 answers

Experimental decorators warning in TypeScript compilation

I receive the warning... Experimental support for decorators ...READ MORE

Aug 3, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 134 views
0 votes
0 answers

What is the way of declaring an array in JavaScript?

These are some of the way to ...READ MORE

Aug 3, 2022 in TypeSript by krishna
• 2,820 points
582 views
0 votes
0 answers

Importing Chai in Typescript

I'm trying to use chai in typescript. Chai's ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 152 views
0 votes
0 answers

Difference between Javascript object and Typescript object

I am trying to figure out if ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 156 views
0 votes
0 answers

What is TypeScript and why would I use it in place of JavaScript?

Could you please describe the TypeScript language? What ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 138 views
0 votes
0 answers

Angular & eslint - Definition for rule '@typescript-eslint/space-infix-ops' was not found

I recently removed the tslint from my ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points
1,473 views
0 votes
0 answers

Embed TypeScript code in an HTML document

Can TypeScript code be inserted into a ...READ MORE

Jul 29, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 147 views
0 votes
0 answers

vertical bar and null used for in TypeScript

Hello, I'm new to TypeScript and JavaScript. What ...READ MORE

Jul 29, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 150 views
0 votes
0 answers

How to combine object properties in typescript?

If I have two items, what is ...READ MORE

Jul 29, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 133 views
0 votes
0 answers

Typescript: TS7006: Parameter 'xxx' implicitly has an 'any' type

In testing my UserRouter, I am using ...READ MORE

Jul 29, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 148 views
0 votes
0 answers

What means "ambient" in TypeScript

I don't understand what means the word ambient in ...READ MORE

Jul 29, 2022 in TypeSript by Tejashwini
• 5,380 points

edited Mar 4 132 views
0 votes
0 answers

Square brackets around vs after expression in Typescript

The following two Typescript square bracket notations—are ...READ MORE

Jul 29, 2022 in TypeSript by Tejashwini
• 5,380 points

edited Mar 4 133 views
0 votes
0 answers

Cartesian product of multiple arrays in JavaScript

How can I find the cartesian product ...READ MORE

Jul 28, 2022 in TypeSript by krishna
• 2,820 points

edited Mar 4 145 views
0 votes
0 answers

Typescript open-api cilent generation and usage of `fetch`

I am trying to generate a typescript ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
1,887 views
0 votes
0 answers
0 votes
0 answers

What is TypeScript and why would I use it in place of JavaScript?

Can you please describe what the TypeScript ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
678 views
0 votes
0 answers

TypeScript types to restrict array values

Can I use TypeScript types to restrict ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
1,208 views
0 votes
0 answers

User-Defined Extended Enums in TypeScript

I am writing a TypeScript library that ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
844 views
0 votes
0 answers

TypeScript: Typing the result of an external module's non-mutating extension function

Let's say I'm using external package "foo". ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
719 views
0 votes
0 answers

Typescript: Changing the definition of some third party types d.ts

I am a little bit lost how ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
1,325 views
0 votes
0 answers

In TypeScript how can I declare class method synonym?

I want to define class method which ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points

edited Mar 4 141 views
0 votes
0 answers

TypeScript type cast & D3.js errors

Now, how should I solve this/typecast this? import ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
1,968 views