Category "typescript"

Wait until a certain value is true in RXJS

I am using angular and rxjs with an external service : I have the following method (simplified) getElevation(pos: Cesium.Cartographic): Observable<number&g

React useTable hook with typescript

So I have a JavaScript class with useTable. In Java script its been used like below import {useTable, useFilters,useAsyncDebounce,useSortBy,usePagination,} from

Firebase: Use converter in transaction with Firestore

I am trying to use a Firestore data converter inside a transaction where I am adding a record to a collection (entries) and updating a counter in another collec

What "flow" language is this?

https://transform.tools/typescript-to-flow I don't think it's https://flow.org/en/ though it converts from typescript or am I mistaken ? I searched on Google an

Skip --set-upstream doing git push

I'm really annoyed I have to do `git push --set-upstream origin <my_branch>` every time for new git branch. Is there any way I can skip it? I found this

Passing Angular component to another one

I know this has been asked before but I don't understand those answer to be honest. I want to make something simple: Basically I have this: <div class="carou

Conditional compilation using ifdef-loader with Angular 13 and Webpack?

I have an Ionic application that relies heavily on conditional compilation where I include or exclude blocks of code based on a set of config values similar to

Vue : Uncaught TypeError: _ctx.toPage is not a function

when I clicked the button: it shows Uncaught TypeError: _ctx.toPage is not a function how can I fix this bug? please help me error pic <li v-for="pageLi o

Vue : Uncaught TypeError: _ctx.toPage is not a function

when I clicked the button: it shows Uncaught TypeError: _ctx.toPage is not a function how can I fix this bug? please help me error pic <li v-for="pageLi o

Type 'React.ReactNode' is not assignable to type 'import(".../@types/react-transition-group/node_modules/@types/react/index").ReactNode'

I've worked with React project, integrated with Circle CI and after some minor changes, it started to fail all builds with Its instance type 'ReactApexChart' is

ERROR Error: NG0201: No provider for NgControl found in NodeInjector

i ran completly out of ideas. I want to user Reactive Forms Module, so i imported it in app.module.ts like import { ReactiveFormsModule } from '@angular/forms';

bazel rules_nodejs can't resolve modules using custom package.json location

Bazel rules_nodejs can't resolve modules using custom package.json location. Can someone help explain how to fix it? Ideally I'd like to use a single tsconfig.j

Standard way to add custom react-scripts in create-react-app

I have a project created from create-react-app and is in typescript, I want to add suport for custom react-scripts without eject so what would be the best way t

Getting error: The expression is not callable Mongoose NextJS

I trying to save data to a mongoose model on NextJS page. I get a typescript error on this line: await User.create(data) This expression is not callable. Each

Why are the args for my storybook component showing as optional instead of required?

I have a simple loader component import React from "react"; import { Backdrop, CircularProgress } from "@material-ui/core"; import { makeStyles } from "@mat

Property '$vuetify' does not exist on type - when using Nuxt.js with Vuetify

I have this error for a particular part in the code when accessing this.$vuetify in my Nuxt.js app. ERROR ERROR in components/equipment/QuickInfoCard.vue:21:

Property '$vuetify' does not exist on type - when using Nuxt.js with Vuetify

I have this error for a particular part in the code when accessing this.$vuetify in my Nuxt.js app. ERROR ERROR in components/equipment/QuickInfoCard.vue:21:

Importing JSON as a type

How do I define the type for imported json? For example { "things": "foo" } interface Data { things: String, another?: String } import data from './data

Angular testing async function generate error - 1 periodic timer(s) still in the queue

I'm trying to test that two async functions. The problem is that one of the functions is called every 10 seconds automatically. I tried to use tick() or flush()

Module parse failed: The keyword 'interface' is reserved (5:0) File was processed with these loaders

It is my first time publishing package to NPM. I have published simple React + TypeScript component to NPM, but when I installed and tested it, I am getting the