I have an existing TypeScript React project that was created before Hooks existed in React, and I'm trying to rewrite all the classes using Hooks. Thus in my pa
I am developing an angular cli v6 project in visual studio 2017 and noticing that unwanted .js and .js.map`files are being generated for some of my typescript f
I am using apexchart but cannot know how to use updateseries I have tried directly sending the values HTML <apx-chart [chart]="{ ty
I'm trying to write a lib in Typescript that I want to use in various other typescript or JS projects. All of the those other projects run in browsers. My Type
The problem is after I've installed the Angular extension in Visual Studio Code, I constantly get across all files (.ts, .html, and .css) auto new-line after ty
I'm using angular 6 and I have a button which opens a dialog. in my dialog, I have a form that gets user's data and then I have two buttons to submit and cancel
I have a function that should only accept JS File objects. How do I create that type in TypeScript? edit: sharing my tsconfig.json { "compilerOptions": {
When I try to compile this Typescript code interface Foo { [foo: "hello" | "world"]: string; } I get this error message An index signature parameter type
How to return the correct type associated function argument as a tuple? I would like a function to return its value based on its argument's tuple type. The exam
I'm writing a TypeScript Interface for Tables: interface Column { id: string; label: string; } interface Data { [key: string]: string; } interfac
TypeScript 3.0 introduces unknown type, according to their wiki: unknown is now a reserved type name, as it is now a built-in type. Depending on your inte
I want to pass object to NbDialogComponent and how to get object from NbDialogComponent. Anyone say, Is way correct? I try this way for pass object, Component f
i have a problem with import statements in my website project. try to use nodejs - typescript and jquery my project folder looks like that: Project node_modu
This is how _app.tsx looks: function MyApp({ Component, pageProps }: AppProps) { return <Component {...pageProps} /> } and I am getting this error whil
check this snippet: interface Foo { id: string; } const fooFunc = (arr: Foo[]): Foo[] => arr .map((item: Foo): Foo | null => { const so
The usual examples of how to break a computation and release using setTimeout() seem to rely on having a shallow (1-deep) call stack. But what about when you ar
I am working on an express app(in typescript) and a react app bootstrapped with create-react-app(in js). The directory structure is here. The server directory c
I'm trying to make a request in Angular and I know that the HTTP response will not be in JSON but in text. However, Angular seems to be expecting a JSON respons
why I get this error: Type 'ListRenderItem<IPhotos>' is not assignable to type 'ListRenderItem<unknown> Code: import { Dimensions, Image, ListRend
I’m trying to add a property to express request object from a middleware using typescript. However I can’t figure out how to add extra properties to