Is it possible to combine the esbuild-loader and ts-loader? I am looking for a solution where all files with a .ts extension are processed by esbuild, unless they contain decorators - in which case they should be compiled with tsc.
Is it possible to combine the esbuild-loader and ts-loader? I am looking for a solution where all files with a .ts extension are processed by esbuild, unless they contain decorators - in which case they should be compiled with tsc.
The individual who posed the question ultimately developed an esbuild plugin to accomplish this task: https://github.com/thomaschaaf/esbuild-plugin-tsc. Additional insights on implementation considerations can be found in this discussion thread: https://github.com/evanw/esbuild/issues/915.
In my C# backend, I have enumerated settings with unique numbers assigned to each. public enum Settings { Setting1 = 1, Setting2 = 2, //... } To send these settings to the client through WebAPI, I use a dictionary structure. public MyModel ...
Currently, I am utilizing angular2 and have the following HTML code: <div *ngFor="let val of channelForTabs; let i=index"> <label for="isCheckBox" style="margin-left:15px;">Draw</label> <input id="checkBox{{i}} ...
Within my current project, I've implemented the following: slideInOut.ts module import { trigger, state, animate, transition, style } from '@angular/animations'; export const slideInOut = trigger('slideInOut', [ state('*& ...
If the email field is not left empty, then the re-email field must be marked as 'required'. In order to achieve this functionality, I have implemented conditional validators for the re-email field using the code snippet below: HTML <div cla ...
I have been utilizing the jspdf library to print div elements in my current project. But I recently discovered an issue where dynamic content within a div is not being printed correctly. Specifically, when incorporating simple Angular if statements, jspdf ...
Consider the following directory structure: src/ ├── foo.ts ├── bar.ts ├── baz.ts ├── index.ts If foo.ts, bar.ts, and baz.ts each export a default class or object, for example in foo.ts: export default class Foo { x = 2; } I ...
A module for lazy loading was created by me. This particular module is called SettingsRoutingModule- const routes: Routes = [ { path: '', component: SettingsStandaloneComponent, children: [ ...
After extensive research, I'm still struggling to understand the distinction between pipe and map in Angular 7. Should we always include a pipe in Service.ts file in Angular 7? Appreciate any clarification on this matter. ...
My Angular app is connected to Cloud Firestore, and I've created a function in a service to retrieve a user's rating from the 'ratings' collection. Each rating is stored in this collection with the document ID being a combination of the ...
My current project involves developing add-ins for Excel using TypeScript and React. However, I have encountered numerous challenges along the way. Unlike a typical CRA React boilerplate web application, the Office add-in behaves differently. To illustrate ...
I have a specific scenario in my mat-table where I need to display three rows with different placeholder text in each row's column. For example, test1, test2, and test3. What would be the most efficient way to achieve this? Code Example: <div form ...
Currently in the process of developing an SDK for a Rest API that includes an embed request parameter to fetch additional resources and add them to the response. I am exploring if there is a way, using Typescript, to extract these embed parameters while de ...
I am currently working on converting a function to TypeScript that involves an Array of mixed type tuples, similar to Promise.all. I am struggling to set up the definitions for this particular function. export type Type<T> = [T, boolean]; function f ...
Here is a sample request: interface IGetFullnameRequest extends IAuthenticatedRequest { readonly body: Readonly<{ fullname: string; }>; } This is the controller function to get the fullname: const getFullname = async (req: IGetFullna ...
My goal is to assign either a boolean value or a boolean array value to the object attribute depending on certain props. However, an error occurs when the key value is received as a variable rather than a literal string value. I'm struggling to unde ...
I am facing an issue with reordering the columns in my table using the ant design library. I am trying to implement a feature where users can rearrange the columns of the table as needed. You can see an example of the problem here: In the provided exampl ...
I am in the process of exporting some Next.js components to a shared "commons" project that will be utilized by multiple Next.js applications. To achieve this, I updated my package.json as follows: "commons-project": "../commons-project&quo ...
I am attempting to construct an object where the keys are derived from a string union type and the values are functions. The challenge lies in wanting the function typings to be determined dynamically from each function's implementation instead of bei ...
I'm struggling to find a solution to stop the "opacity" effect of the parent container from affecting the child containers. In my code, I want the opacity not to impact the buttons within the elements. I have tried using "radial-gradient" for multipl ...
Since updating to the latest version of react query, I've been encountering an issue where the 'isLoading' state is returning undefined when using useMutation. Here's the code snippet in question: const useAddUserNote = (owner: string) ...