Trending questions in TypeSript

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, 2025 323 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, 2025 316 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, 2025 312 views
0 votes
1 answer

How to use useState hook in React with TypeScript correctly?

Without any initial argument, the type of email and setEmail will ...READ MORE

Jun 10, 2022 in TypeSript by Nina
• 3,060 points
2,599 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, 2025 308 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, 2025 303 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, 2025 299 views
0 votes
1 answer

TypeScript Object assign gives me an error property assign does not exist on type ObjectConstructor

For TypeScript 2.1 and higher, you can ...READ MORE

May 31, 2022 in TypeSript by Nina
• 3,060 points
3,022 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, 2025 332 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, 2025 297 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
899 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

Jun 22, 2022 in TypeSript by Logan
• 2,140 points
2,018 views
0 votes
0 answers

Alternative to decorate function in TypeScript

Since TypeScript allows decorate only class, method, ...READ MORE

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

How to watch typescript files in the background continuously without blocking the terminal?

Is there a way to run tsc ...READ MORE

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

How to add and declare new property to class using decorator in typescript (angular)

I'm trying to add new property to ...READ MORE

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

Create a react app react 18 with typescript

I am trying to create react 18 ...READ MORE

Jul 5, 2022 in TypeSript by Logan
• 2,140 points
1,386 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, 2025 320 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, 2025 308 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, 2025 299 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, 2025 298 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, 2025 295 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, 2025 292 views
0 votes
0 answers

What is a type in Typescript for the Component class in Angular 2+?

I have a small problem, but big ...READ MORE

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

Applying pdf watermark at typescript side

I am trying to add a watermark ...READ MORE

Jul 14, 2022 in TypeSript by Logan
• 2,140 points
938 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, 2025 320 views
0 votes
0 answers

In typescript, why do the | and & operators flip their meaning when used on function types?

In this code, example1 and example2 are confusing me: type F1 = ...READ MORE

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

Is there any official Typescript definition for fabric.js?

At the moment, I am able to ...READ MORE

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

Typescript hierarchical inheritance

Consider the following: class A { commonString: ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points

edited Dec 6, 2023 by Soumya 1,085 views
0 votes
1 answer

How to use moment.js library in angular 2 typescript app?

REFERENCE: https://momentjs.com/docs/#/use-it/typescript/ You can install this by using: npm install ...READ MORE

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

What does the @ (at sign) sign do in TypeScript?

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

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

Why I can't create Face3 in ThreeJS Typescript project

I am trying to create Mesh by ...READ MORE

Jul 5, 2022 in TypeSript by Logan
• 2,140 points
1,034 views
0 votes
1 answer

How to define props in TypeScript where a parent component injects props in its children?

Typescript doesn't remove this special rule "!text" ...READ MORE

Jun 16, 2022 in TypeSript by Nina
• 3,060 points
1,825 views
0 votes
0 answers

What should the return type of Promise.race be? (Typescript)

For example in the code below, what ...READ MORE

Jul 5, 2022 in TypeSript by Logan
• 2,140 points
1,018 views
0 votes
1 answer

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

I managed to resolve this by forcing ...READ MORE

Jun 16, 2022 in TypeSript by Nina
• 3,060 points
1,813 views
0 votes
0 answers

Function definition syntax confuse in Typescript

I figure that out: One post in ...READ MORE

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

Karma, Typescript definition file not loading

I am working on setting up development ...READ MORE

Jun 22, 2022 in TypeSript by Logan
• 2,140 points
1,482 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, 2025 289 views
0 votes
1 answer

Typescript: how to define message type for broker consumer

Our main goal - is to make ...READ MORE

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

Wildcard module declaration not work in TypeScript 2, why?

I managed to resolve this by forcing ...READ MORE

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

How to create enum type in TypeScript?

TypeScript 0.9+ has a specification for enums: enum ...READ MORE

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

Chutzpah configuration for running TypeScript tests in both Visual Studio and Visual Studio Team Services build

I'm not sure if this response is ...READ MORE

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

Angular ForEach in Typescript?

Try this: selectChildren(data, $event) { ...READ MORE

Jun 7, 2022 in TypeSript by Nina
• 3,060 points
1,847 views
0 votes
0 answers

I don't know about return type in typescript

TYPESCRIPT 3.4.3 I want to make function like ...READ MORE

Jul 5, 2022 in TypeSript by Logan
• 2,140 points
588 views
0 votes
1 answer

Mixing JavaScript and TypeScript in Node.js

Combine the following TypeScript compiler options --allowJs Explicitly supports ...READ MORE

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

What's the difference between class and interface in TypeScript? When do you use them?

A class is a blueprint of how ...READ MORE

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

Tinymce editor type in Typescript

Eslint gives me the error Unexpected any. Specify ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points

edited Mar 4, 2025 370 views
0 votes
1 answer

Destructure a function parameter in Typescript

You can use the object de-structuring syntax: createUser(parent: ...READ MORE

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

Make vuex store globally available with Vue 3 and typescript (project built with the cli) +solved

How do I make my store globally ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points

edited Mar 4, 2025 334 views
0 votes
0 answers

Chutzpah & TypeScript

I'm using typescript 9.1.1 as the company ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points

edited Mar 4, 2025 317 views
0 votes
1 answer

What does the ! (exclamation mark) do in TypeScript?

The exclamation mark is called the non-null ...READ MORE

Jun 1, 2022 in TypeSript by Nina
• 3,060 points
1,761 views