Category "typescript"

force folder structure and names in a repository using eslint

I'm looking to force a structure of names in a specific path for a folder and it's sub folders not only the styling of the names (kebab, camel) but the actual n

NestJs e2e returns 201 created response though required form data is missing, expected 400 bad request

I'm trying to write a test that checks if request body does not have proper data, it should return an error, and the status code should be 400. Which I think is

How to generate safe RSA keys deterministically using a seed?

How do we use a mnemonic list of words as a seed (like we have been become accustomed using cryptocurrency wallets) to be able to recover a private key in case

How to make Chain multiple RxJS observables subscribe angular 8?

I work on angular 8 i have multiple subscribe i need to make Chain multiple RxJS for getactivesession and after that subscribe PostUpload . What I have tried:

Angular not grabbing elements by class name when page is loaded

I am trying to get the document.getElementsByClassName('side-nav-link-ref'); elements in my angular html view and It keeps returning empty. I’ve narrowed

React Context State Not Updating

My Context: type Props = { children: React.ReactNode; }; interface Context { postIsDraft: boolean; setPostIsDraft: Dispatch<SetStateAction<boolean&

Property 'accessToken' does not exist on type 'User' && firebase is not defined

I am using TypeScript in my React application and I have an error "Property 'accessToken' does not exist on type 'User'" when getting an accessToken of user My

Test Typescript Service : Multiple Subscription on one Observable

I am having a problem performing a test on a typescript service. I have a function that returns an observable. I use .subscribe() to look at the result and veri

How to create a GraphQL typed SDK from a Typescript schema object?

I have a code-first GraphQL API in which the GraphQLSchema is created like so: import { GraphQLSchema } from 'graphql'; import { mutationType } from './mutation

checking array of objects

I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic

React 18 Fragment complaining of too many children

A few days ago I tried to add Storybook to my React app, and basically everything imploded. I restored from a backup, but it didn't include the node_modules fol

setRateLimitPerUser does not exist

I'm creating a slow mode command for my discord bot. I create the bot with typescript and I wonder why setRateLimitPerUser does not exist. What can I use instea

How to use MUI to stack components on top of eachother?

I want a div that looks like this on Desktop: ------------------------------------------------------------------ | (icon) | (content)

bundle.js TypeError: Cannot read propertied of undefined (reading PriceIndexationDataControlStandard)

I am developing a React component via Microsoft PCF Framework and I have encountered a very strange error out of nowhere. I was changing only typescript, not ev

How can I assign a value to a variable of a callable type?

How can I assign a variable of a callable type (type with call signature)? interface CallableType<T> { (isSomething: boolean): T description: string

How to use maps and enumerations for property names in typescript?

The object pulsarAlert is returning with type [x: string] : string Ideally it should be able to detect that if channel = "SMS" then notificationType = "phone",

Wait for the reading of a csv file

I'm trying to read a csv file in Typescript with "csv-parse" library by creating an observable; the following code use fs.createReadStream to read the file; I w

Is there a way to debug Serverless Framework Typescript functions deployed to AWS Lambda, without using serverless-offline?

What is the best way to debug Typescript Serverless framework functions deployed to AWS Lambda without using serverless-offline package? My project is quite rel

How to build a TypeScript shell command that installs portably and globally?

I would like to build a command-line tool written in TypeScript that becomes available in the $PATH when installed. My requirements: I can run and test it from

React Native TypeScript WebSocket onerror Value of "this" must be of type Event

I'm trying to implement WebSocket support into my app by following React Native's own tutorial at https://reactnative.dev/docs/network#websocket-support. Here i