Environment TypeScript's version is 3.2.1 and "tsconfig.json" is like below. { "compilerOptions": { "target": "es5", "module": "commonjs", "stri
Story I'm developing the AWS Lambda functions and compile the code using webpack. I've read some of the articles and it seems that the process.env variables a
I'm setting the the value of an input calculating two other ngModels, and that seems to be working fine. But if I inspect my ngModel, it doesn't change at all.
Environment TypeScript's version is 3.2.1 and "tsconfig.json" is like below. { "compilerOptions": { "target": "es5", "module": "commonjs", "stri
I have a component with a method that receives values from a form. I would like to describe the form data with an interface. However, at runtime (ng serve), th
When I finish configuring the project, the wdio.conf.ts and tsconfig.json files are saved in a folder called tests and the wdio.conf.ts file gives me the follow
I am parsing a file like this using ts-morph const a = {property1: 20, property2: 30} I can't seem to figure out how to get an ObjectLiteralExpression mention
Auto import by VS Code: import deepEqual = require('deep-equal'); Doesn't work: error TS1202: Import assignment cannot be used when targeting ECMAScrip
I'd like to build a TreeView based on a JSON file / REST Call and have an icon for each type of my objects. I have only three types of objects: Server, Host and
I have created a sample application to save data for a user. I wanted to know how to validate it before saving and showing the response in JSON. I have got a re
There is the example: interface A { method: (itself: this) => string; } interface B extends A { additionalProperty: boolean; } type Extend<T ext
I have a class that is just like Node's EventEmitter (it could even be the same class). How do I type it in such a way that I can specify what the callback typ
I keep getting this error and I'm not sure what to do?[1] [1]: https://i.stack.imgur.com/mQ3Xo.png
I read how TypeScript module resolution works. I have the following repository: @ts-stack/di. After compiling the directory structure is as follows: ├
I have found some project on Angular 1.x where user can move focus to next control by pressing Enter key. 'use strict'; app.directive('setTabEnter', function
I have a function inside ondissmiss callback options.modal.ondismiss = () => { console.log("its working"); this.detectChanges(); this.isPaying = false
Hello this is the first time I qm putting question on stackoverflow. I am developing an application in angular2: v2.1.0 (typescript- v2.0.10). I am using "ng2-
app.component.ts @ViewChild('calendar') calendarComponent: FullCalendarComponent = <FullCalendarComponent>{}; calendarOptions: CalendarOptions = {
I'm trying to scrape different websites using puppeteer. As I'm using puppeteer-extra for that (for their stealth-plugin), I've decided to use their anonymize-u
I'm going to test typescript(inversify) code using jest. Below mentioned the code that use to test a controller method. describe('Test UserController',() =>{