I am trying to learn how to use class models in nodejs and I will give you an example of what I am trying to achieve. For example I have user.ts model : expo
I have found this Q&A. I have tried to get the version from the package.json using: import { version } from './package.json'; but it results in: packag
I am still quite new with react and solidity and don't know where to start. I can update a String and want to print it out after I changed it. But I want the St
I have an image url fetched from an API and I want to display it as a background image. Is there any way I can implement this with tailwindcss or should I use s
I'm trying to understand how TypeScript projects resolve the import of modules installed via npm and their type definition files. As far as I know (and followi
I've run into a bit of a snag when adding in the AngularFireFunctionsModule. For some reason, despite having successfully included AngularFireModule, AngularFir
I have an error message from VSCode when using the "foreign key" property for storing an object. I've implemented the exact example from their documentation: ht
I want to use mocha to test my TypeScript/Angular2 project. I tried to use ts-node as described here: npm install -g ts-node but when running mocha --r
I have 2 typescript interfaces that have a member that is of the type of the other interface (circular reference). My linter complains that I cannot use an inte
Im getting this compilation error in my Angular 2 app: TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'. The piec
I'm implementing "Sign in with Google" using the Google "GSI" library. My application uses Next.js and TypeScript, so I'm looking for: An npm package including
I have an Expo project with AWS Amplify. I'm currently using EAS from Expo to deploy on mobile. Pretty often I run on this error: ❌ Metro encountered an
I'm trying to create a stateless React component with optional props and defaultProps in Typescript (for a React Native project). This is trivial with vanilla J
I'm trying to test a simple angular 8 service that gets user location using GeoLocation Service from Web APIs for Angular public enableGPS() { if (!this.lo
I am using react-router-dom and am facing an issue with using <Routes>: Here is my index.tsx file: import React from 'react'; import ReactDOM from 'react-
On PowerShell, I got the error message when executing tsc. This never happened before. I am not sure should I mingle with the PowerShell security settings to r
Before I knew any better I used to have my directive defined like this: ... inputs: [ 'onOutside' ] ... export class ClickOutsideDirective { @Output() on
My component has styles that depend on current datetime. In my component I've got the following function. private fontColor( dto : Dto ) : string { // da
I am curious about .d.ts declaration files because I am new to the TypeScript programming language. I was told by someone that .d.ts files are are similar to .h
In this endpoint handler, is there a way to restrict req.query in NextJS NextApiRequest to just string types rather than string | string[]. Fo