Trending questions in TypeSript

0 votes
1 answer

Customise Ngx-toastr in angular 6 with TypeScript

After Override this CSS in your Style.css File. I ...READ MORE

Jun 9, 2022 in TypeSript by Nina
• 3,060 points
3,523 views
0 votes
1 answer

What does the @ (at sign) mean in the latest TypeScript (presumably v1.5) example?

The big news this week is the ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points
1,104 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,760 views
0 votes
1 answer

Is TypeScript really a superset of JavaScript?

The purpose of TypeScript is to have ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points
1,038 views
0 votes
0 answers
0 votes
1 answer

Get typescript definition files via bower?

It is possible with bower. First install bower ...READ MORE

Aug 3, 2022 in TypeSript by Abhinaya
• 1,160 points
1,014 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,653 views
0 votes
1 answer

TypeScript: Class Constructor type

class Zoo<T extends Animal> { ...READ MORE

Jun 8, 2022 in TypeSript by Nina
• 3,060 points
3,266 views
0 votes
1 answer

Error TS1005: ';' expected. TypeScript for First Build error rxjs inside node_modules

 I investigated that rxjs released a new version: 6.4.0. And ...READ MORE

Jun 10, 2022 in TypeSript by Nina
• 3,060 points
3,113 views
0 votes
1 answer

Angular4 - routerLink with typescript

In code, you use .navigate instead: this.router.navigate(['/products']); You pass ...READ MORE

Jun 22, 2022 in TypeSript by Nina
• 3,060 points
2,614 views
0 votes
1 answer

How do I extend a TypeScript class definition in a separate definition file?

If you don't have control over the ...READ MORE

Jun 10, 2022 in TypeSript by Nina
• 3,060 points
2,960 views
0 votes
0 answers
0 votes
0 answers

Typescript error (2345) when pushing element to array of elements(React js)?

I'm pretty new to Typescript and I ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points
1,760 views
0 votes
1 answer

How to read local csv file in JavaScript/TypeScript?

Here is how to use the readAsBinaryString() from the FileReader API ...READ MORE

Jun 9, 2022 in TypeSript by Nina
• 3,060 points
2,857 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
453 views
0 votes
1 answer

Cast a JSON Object to a TypeScript class

I had the same issue and this ...READ MORE

May 31, 2022 in TypeSript by Nina
• 3,060 points
3,186 views
0 votes
1 answer

Where to find TypeScript version in Visual Studio?

If you only have TypeScript installed for ...READ MORE

Jun 7, 2022 in TypeSript by Nina
• 3,060 points
2,951 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,123 views
0 votes
0 answers

Jest + Typescript cannot mock AWS transcribe function

I've been trying to figure out how ...READ MORE

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

ngx-image-cropper imageloaded() not passing any image data to typescript file event method

I'm using ngx-image-cropper to load and crop images. According ...READ MORE

Jul 5, 2022 in TypeSript by Logan
• 2,140 points
1,645 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,054 views
0 votes
0 answers

Stepper Material : using stepper.reset() inside TypeScript

Is it possible to use stepper.reset() inside ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points
1,499 views
0 votes
0 answers

TypeScript -- new Image() from global scope

I have a class MYMODULE.Image{}, but I ...READ MORE

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

Error when calling theme Props in component using ReactJs and Typescript

I need to pass the color of ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points
1,391 views
0 votes
1 answer

How to pass HTML to JPG/PNG? In Javascript/Typescript

You can use the package: https://www.npmjs.com/package/dom-to-image In your page: import ...READ MORE

Jun 22, 2022 in TypeSript by Nina
• 3,060 points
2,027 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 102 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 98 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 92 views
0 votes
0 answers

Typescript: Clicking 'X' doesn't successfully close my popup banner

I've created a popup banner with the ...READ MORE

Jul 14, 2022 in TypeSript by Logan
• 2,140 points
916 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
716 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 17 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 16 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 16 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 16 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 16 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 15 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 15 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 15 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 15 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 15 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 15 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 15 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 16 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 15 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 7 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 7 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 6 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 6 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 6 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 6 views