Category "typescript"

No Typescript error for unresolved types in .d.ts files?

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

Error : Module '"@angular/material"' has no exported member "..."

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

Why is Buffer assignment triggering an unsafe assignment error?

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

Next.js server keeps runing but nothing is being displayed in the browser for about 20 minutes

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

Redirect to 404 page if url is incorrect or if a 404 error is got from BE

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

Error message TypeError: this.subQuery is not a function appears

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

Upgrading Jest to v28 - Error Test environment jest-environment-jsdom cannot be found

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

Defining Firebase Function Return Types in Firebase using TypeScript

Is there a way to define what a Firebase function's return type using TypeScript? For example: export const helloWorld = https.onCall(async (): Promise<strin

React + Gsap loop scroll

I just want to know wether someone knows how to create an loop vertical scroll using react and gsap. Thank you in advance!! i tried to use some links but didn't

cypress test asserting a filtering operation on array of objects expecting undefined

I have a cypress test over an API. When I do cy.getUnits(u.email) I'm expecting a 200 OK response similar to this in the body of the response {   &ld

How can I implement webview background audio play on Vimeo in react native?

Now I can play videos from vimeo in react-native. import WebView from 'react-native-autoheight-webview'; <WebView allowsFullscreenVideo scrollEnabled={false

How call flow function by TypeScript

Now I'm developing an open source framework https://github.com/babyfish-ct/graphql-ts-client/ .In 3.X, I want to integrate with relay(not fully finished). I nee

ANGULAR - HYBRID - Can't bind to 'ngClass' since it isn't a known property of 'a'

I'm working on a Angular Hybrid project which has several modules from Angular 12 and other from AngularJS. Recently I updated the libraries to Angular 13. Afte

How to add a SCSS stylesheet to a Lit web component?

I'm building a web component using lit.dev. For my component, I want to import an SCSS stylesheet and use it the following way: // example-component/example-com

Three react fiber OrbitControls ref object throws error in typescript at build phase (code does work)

I am currently stuck on a typescript error regarding the type of a ref object (as far as I know). I am quite new to typescript so i don't understand how to reso

TS Types for Google Calander API

So was experimenting with the Google Calendar API and working on it with TS. However, I can't seem to find a proper type for most of its functions. I do know th

Typescript: Changing the definition of some third party types d.ts

I am a little bit lost how to do the following. I am trying to change the definitions of some third party types by creating a new file thirdParty.d.ts. Let's su

Getting warning while running intall

Why am I getting this warning its not in the package.json file. But when I do a npm install I get this warning message. npm WARN deprecated [email protected]: Ple

How do dynamically and programmatically add a debug configuration in a vscode debugger extension?

We have a VSCode debugger extension. It allows debugging of things happening on a connected device (iOS/Android/...). We have a nodejs native addon capable of d

Expand & collapse angular material table with a button

I'm having a problem with angular material table, I want each row to be expanded with a button (details button as shown in picture), but it getting expanded at