I am using Angular 13 and Ionic 6 to add Google Maps API V3. Here is a simple example provided by Google to add the map using TypeScript. When using Ionic, I am
Making an Observable <Hero[]> out of a collection works perfectly and gives me access to all its documents, but I am unable to assign individual documents
I want to render names that are in the State. But I get this error: Type '{ name: string; }' is not assignable to type 'ReactNode'. I understand that ReactNode
I have a list of routes : const N: any = "N"; // get const from non typed lib for example or typed as "string" const PREFIX = `Route_${N}` as const; const Route
In my NestJS application with postgres db I have these 3 entities: User, Writer, Book and a class named UserBaseEntity. export class UserBaseEntity { @Prim
I'm trying to compile my code as ES code (using "type": "module" inside package.json and "module": "esnext" inside tsconfig.json). I can't run it using any of t
I am using Jest in a Next.js 12 App with the Rust Compiler. Since I'm using WebWorkers I have a file in which I use import.meta.url. to construct the worker The
I have below class export class DocumentsSteps { @ApiProperty({type: ???}) [type: string]: DocumentStep; } How should I define ApiProperty type?
I'd like to write a function which gets a value from an object given an array of property keys. It would look something like this: function getValue<O, K ext
I'm trying to use the TypeORM CLI to create a migration. I followed their guide but when I run yarn run typeorm migration:generate I get the error: $ typeorm-ts
We are using a tool called checkmarx to scan code vulnerability. I am getting Angular_Improper_Type_Pipe_Usage warning for the below Angular code in checkmarx s
I am new to Typescript and node. I have this function sftp.connect(config) //CONNECT TO STFP .then(() => { sftp.list(remoteFilePath) //LIST THE FILES IN
Below is the piece of code I am using in angular <div class="root" [class.loaded]="loaded$ | async"> The styles applied to the class as follow div.root {
For as long as I can remember, Typescript didn't warn about unresolved/undefined types in .d.ts files. I could run tsc and it wouldn't have any errors. I alrea
i create a custom Angular material module, material.module.ts file and import the following Angular material UI components in this file like given below. import
I have a TypeScript project that is leveraging ESLint. I have a class that utilizes a Buffer as a class attribute. I want to be able to set the buffer as part
I'm developing this application with Next.js i'm using typescript as a language. I'm also using module css to style my components. I initialized my next applica
I need to redirect to a custom page in case if the entered URl does not exist or in case if I receive a 404 error from BE. To catch the BE error I do a navigati
If I run the tests with jest, I got always the error message TypeError: this.subQuery is not a function with a reference on the marked line in the testModelDb.t
Has anyone successfully upgraded to latest Jest version 28.0.0? I'm receiving an error: Error: Test environment jest-environment-jsdom cannot be found. Make sur