Category "typescript"

What is wrong with my reselect function ? I dont get an output

I want to use reselect. I want to get my shopping cart by the ids. reselect.ts import { createSelector } from "reselect"; import { RootState } from "../store";

Why I am getting this error: declares '<MODULE>' locally, but it is not exported

I have a typescript file which exports a function to send emails using aws ses //ses.tsx let sendEmail = (args: sendmailParamsType) => { let params = {

How to validate Slack API request?

I've a slack app that is sending to a service written in typescript that is forwarding the message to my python script where I'm trying to validate the request.

How to validate Slack API request?

I've a slack app that is sending to a service written in typescript that is forwarding the message to my python script where I'm trying to validate the request.

Remove Excel workbook onSelectionChange event

I am working on a Excel Web Add-In using Office.js. I added onSelectionChange event for a workbook and later trying to remove it, but this event still works. He

how could I draw a rectangle inside an image using Angular using canvas?

I need to draw a rectangle inside an image recording to x,y. I used a canvas tag and inside it I used an img tag but the image didn't appear because the canvas

React-native-reanimated not working in web

Currently i`m copied example from this post https://github.com/software-mansion/react-native-reanimated/issues/537 When trying in web Reanimated not working and

Select in form - Problem mapping through options, cannot read properties of undefined (reading 'map')

I am creating a SELECT inside a form in which I need to map through an object (I know mapping through an object instead of an array might be a problem). I am us

type conversion error while executing mongoDB find

I am following official MongoDB typescript tutorial to convert my javascript app to typescript one. After code conversion i am facing following error: routes/us

Angular - Typescript dynamic import module using variable

I'm building an Angular app that lazy loads modules without routing, simulating plugins. I have this function in a Service that loads a module (hardcoded right

React Navigation for React Native not navigating - anything missing?

This is my first try on using react navigation, and I did not get it to work out of the first time. I have create another screen called 'First', and declared it

Webpack-dev-server "Cannot GET /"

i'm trying to get my webpack-dev-server to run but i face always the error "Cannot Get /" at the browser. I know that there are serveral questions with the same

NestJS Middleware Not Executed

The NestJS class or functional middleware doesn't run when connected from a Module. It is also not working for a single path, controller or for every path. Conn

Json Schema which has at least one of any properties (or more) with ajv

I am trying to build a simple Json schema (at least that's what I thought) which contains two properties foo and bar. It should validate when: foo is in the jso

How to fix circular dependencies of slices with the RootState?

I recently started using redux-toolkit and started writing my reducers using the createSlice following their docs. One reducer, let's call it reducerA, imports

Execution flow in react native after navigation.navigate

Need suggestion and advice, I am using the below 2 lines of code in react native expo component, this.props.navigation.navigate("App"); patchUser(this.state.da

Angular - Cannot read properties of undefined (reading 'forEach') by trying to manipulate variable after an HTTP call

I'm trying to manipulate a variable after an HTTP call. I want to use functions such as .push() or .forEach(), but it doesn't allow me because data isn't assign

Make id in FormattedMessage from react-intl inherit from a custom TypeScript interface to enable VS IntelliSense and type checking

Given that react-localization does not have date and number format and is heavily dependent on one developer we decided to switch to react-intl because it seems

Typescript - Custom type assignment by value [duplicate]

In one of my procedures I need to periodically reset a custom type, but I noticed that in TypeScript (and I think in JavaScript too maybe), wh

Can I short-circuit type evaluation?

I'm trying to create a composable configuration framework wherein each node in the dependency graph can access all of its upstream nodes. Although I've managed