I tried using mat-icon in Angular in dropdown. But the text is shown first and after clicking dropdown it is showing the icons. I already tried importing in ind
Given a simple Record<string, Record<string, any>> defined as a constant record of possible named configurations, I want a type which dynamically re
I'm bit confused in how to use OOP in typescript. I'm used to do it with PHP. 1 - Can I use a class as a type without having to fill all attributes values? 2 -
I need to show the menus with submenus dynamically. What I did is, I have loaded the menus list from json and displaying that menus using ngFor in angular. Like
I am trying to configure react-persist in my typescript react application. The persistReducer function is giving a type error to my reducer that Argument of typ
I have @OnChange decorator which receives a callback after the value of the property is triggered. export interface SimpleChange<T> { firstChange: boo
I've been trying to make a type whose indexer has a return type which is based upon a string literal for the key. export enum Units { Enum = 'enum', Str
I have been working on a react-native-web project without issue and recently added the react-native-gifted-charts module which is when I began receiving this er
PS D:\WEB DESIGN INFO\Type Script\project 2> tsc is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fw
I would like to get the node.argument properties Typescript types name, and check if it's Foo. Let's say the Foo type is defined like this: type Foo = {}; This
Im building api in my next app, this api will send message using firebase fcm admin. This is my code import type { NextApiRequest, NextApiResponse } from "next"
Problem Right after my TypeScript project initialization in VSCode using firebase tools for composing Firebase Cloud Functions following the official documentat
Problem One of the primary reasons I like using TypeScript is to check that I am passing correctly typed params to given function calls. However, when using Nex
Having troubles with providing Authorization header for requests: const response = await fetch(url, { method: 'GET', }); This works properly, and r
how can I have the return of the variable "this.qdDias" assigned a value to it. I don't know why when I use subscribe I can't get the value at the end of the me
I am trying to use react-router-dom inside my react app and also I am using typescript instead of javascript. The issue here is that I can't import Route inside
I am trying to check an object coming in a back-end response to see if error.isCritical is true or false and setting the ngClass accordingly, i've tried many di
I have an angular application, using typescript 1.8.10 and working fine. I like to try and upgrade typescript from 1.8.10 to 2.9.2. Once I change this setting
Here's my minimal reproduction: const br: Record<string, number> = {"b": 0}; const ar: {a: string} = {a: ""}; const brar: Record<string, string> = {
I have a standalone sveltekit endpoint, and I'm not getting typescript typings for the endpoint. // src/routes/login.ts export async function post(request) {