Category "typescript"

Access raw body of Stripe webhook in Nest.js

I need to access the raw body of the webhook request from Stripe in my Nest.js application. Following this example, I added the below to the module which has a

React Native render error Value is undefined expected a object

So I dont know why I am getting this weird error and I am unable to find any solution for it so plz help with me Error Code import React, { useRef, useState

Appending .js extension on relative import statements during Typescript compilation (ES6 modules)

This seems to be a trivial problem, but it is not very obvious what settings/configurations need to be used to solve this issue. Here are the Hello World progra

Angular 6: simple confirmation on page leaving

I need to make a simple confirm window and I saw a lot of examples of how to do it with extra actions (like waiting until file uploading of form is not field).

Typescript error "Cannot write file ... because it would overwrite input file."

In my Typescript 2.2.1 project in Visual Studio 2015 Update 3, I am getting hundreds of errors in the error list like: Cannot write file 'C:/{{my-project}}/

Typescript module not found error after compilation

This has been driving me crazy. How can I get typescript to compile the imported module correctly? My main.ts has import { AddListeners } from './listeners'; wh

Is it possible to create tables within Angular ts files?

So I have an array which holds different categories to compare different companies. Depending on the user selection there may be 3 categories or 10 to display.

Angular2 Typescript Customized Alert

I am totally new to Angular2, And I am stuck on how to create an customized alert like this: check this alert box here Since I am new to Angular2 concepts , I

ts-node-dev not restarting when changes made

Here are my files : package.json : "scripts": { "generate-interfaces": "ts-node src/cli/generate-interfaces.ts", "dist": "npm run generate-interfaces &&

pass an array of objects to a dropdown (select) using typescript

I'm trying to pass this array of objects options = [ {label:'React', value: 'react'}, {label:'ReactNative', value: 'react-native'},

Ion-datetime min/max for hours doesn’t works

I'm trying to implement a min and max attributes for datepickers. So i have two datepickers, one for start and another for the end, both just pick hours and min

Type 'string | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'

interface modal { name: string; check: boolean; } type Key = "name" | "check"; const obj: modal = fn(); function fn():any { return { name

fa-icon is not a known element in a Reusable Module

Not sure why this is happening on a reusable Module (or what Iv'e got wrong). ERROR Error: Uncaught (in promise): Error: Template parse errors:'fa-icon' i

Getting ReactJS/TypeScript to work with new clean MVC5 project

I've already tried nearly all available tutorials to get a simple MVC5 project to run using TypeScript and ReactJS. Note: I've created the projects from scratch

Primeng expandable column headers don't show

I have an expandable row in Angular2 using Primeng2 but the column headers for the expandable columns aren't showing. This is my table with the expandable rows

Compare value inside of use-deep-compare-effect

This is a part of use-deep-compare-effect source code export function useDeepCompareMemoize<T>(value: T) { const ref = React.useRef<T>(value) co

Testing private method using spyOn and Jest

My functions in Calculator class is private and I can't test in this way, describe('calculate', function() { it('add', function() { let result = Calculat

Angular 2 and browser autofill

I'm implementing login page with Angular reactive forms. Button "login" is disabled if form is invalid. import { Component, OnInit } from '@angular/core'; impo

trying to run an generate art configuration in metaplex and it keeps returning this. I have tried changing up just about everything

desktop % ts-node ./metaplex/js/packages/cli/src/candy-machine-v2-cli.ts generate_art_configuration traits /usr/local/lib/node_modules/ts-node/src/index.ts:820

Angular click debounce

In my template I have a field and two buttons: <div class="btn-plus" (click)="add(1)"> - </div> <div class="txt"> {{ myValue }} </div>