Category "typescript"

Why Intro js disableInteraction doesn't work

I have created a tour and I want the items highlighted to be clickable so I added attribute disable interaction to the tour but the items are still not clickabl

Dynamically Change colour/css styling of Disabled text boxes based on boolean value

<label [invalid]="false" invalidText="" placeholder="Placeholder text"> Middle names (optional) <input ibmText [attr.disabled]="isApplicationLo

TypeScript: Why is that my filter method cannot narrow the type and eliminate the undefined and false from the array

I have this type from the d.ts file of an API type EventConfigurations = { Event1: { Enabled?: boolean; }; Event2: { Enabled?: boolean; }; E

How to share content via deep link in a Teams app?

I am developing a small Teams app also using the Teams-SDK. I am currently looking for a way to share contents from within my app in Teams (either via a chat or

Argument of type 'HTMLElement | null' is not assignable to parameter of type 'Element'. Type 'null' is not assignable to type 'Element'.ts(2345)

I have index.html <body> <div id="portal"></div> <div id="root"></div> </body> and want to use the component below

How to define types for Cypress task return type?

My objective is to define types for my cypress task, written in typescript. I currently have this when I consume the custom task: cy.task('customTask').then(v =

Why is Graphql data object only available outside the call function

I am new to graphql and react so I can't figure out why the loaded data return object is only available outside the mutation post which produced the data. Could

How to hide background contents of window.open while printing in Angular

I have running Angular 12 application and I am integrating the behavior to print report. I am able to achieve the print on button click which opens a new window

Hiding a mat data table column in angular 4

<ng-container matColumnDef="jan"> <mat-header-cell [hidden]="true" *matHeaderCellDef style="font-size: 65%" class="white-text" fxHide [fxShow.gt-md]=

How to strongly type jest mocks

I would like to strongly type my jest mocks. To a certain extent, I can make it work but when a class has private properties I'm stuck. An additional question,

Unicode characters in Angular binding

There are some answers on how to display Unicode character codes in Angular bindings, but I'm trying to display one dynamically and everything seems to fail. I

How use UseRef to show popover just above the pressed element in React Native?

I am using the Flyerchat library for the chat application. <Popover isVisible={open} onRequestClose={() => setOpen(false)} from={t

ANSI escape codes not moving cursor horizontally

I am trying to make a text editor in the terminal with node and typescript but the ansi escape codes aren't moving the cursor horizontally. THe cursor moves ver

How use UseRef to show popover just above the pressed element in React Native?

I am using the Flyerchat library for the chat application. <Popover isVisible={open} onRequestClose={() => setOpen(false)} from={t

React Native TypeScript Error: Module '"react-native"' has no exported member 'Appearance'

I've recently implemented dark mode into my app, but having an issue with an error when building the npm package with npm build. The code works, but is there a

Beautify Xml with Angular

I'm trying to beautify a xml throught the package avaible in npm repositories (vkbeautify and xml-beautifier) to display into the html but is not working (I tri

nest.js build throwing a lot of errors

I have this Nest.js app running and setup for a while and, out of a sudden, it started reporting this when I run npm run build. node_modules/@nestjs/config/dist

Dynamically update doughnut chart with NG2Charts

I am working on a project where I am making a calculator of macronutrients. I have a form to enter the values and it displays a doughnut chart, with its initial

Type '{ author: Author; }' is not assignable to type 'IntrinsicAttributes & Author'

I am totally new to TS and react and I ran into a problem. I tried searching many places and can't seem to fix it. The whole error message is: Type '{ author: A

js/ts translate internal commands

I am currently trying to translate some text-based console-log processing into JSON format. Console.log commands: give ENTITY.name = "entitytest"; give entity.u