Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged typescript

0 votes
1.1k views
0 answers
    Hello, how can I updated nested child value in Object -> example Variable is 2 & Item VariableGroup is 2 so new value will be 999 instead of 160. It should also work for ... ) { console.log(v); break; } } } } }; helperFx(2,2,999);...
asked May 17, 2022 in Technique[技术] by khmub (100 points)
0 votes
1.3k views
1 answer
    I have some Angular services that have identical methods for parsing the json response, handling errors etc (eg. trapping if it's a 422 error for example) ... helperA(){} export function helperB(){} } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have an Angular application that is hosted in a .net core 3.1 application. I upgraded from 8 to 9 following the official guide and now my application won't build. I get ... .0.0", "ts-node": "8.6.2" } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    My angular 6 project loads in chrome but it does not load in IE11. I used the following question: Angular 2 / 4 / 5 not working in IE11 to try and ... I may be missing since this is an Angular 6 project? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm having problem getting download url in firebase function after saving image to cloud storage. Below is my firebase http function in typescript ... ; export const testsomething = simpletest.helloWorld; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
928 views
1 answer
    I would like to know if there is a solution for the following problem : I have two functions that accept different input parameters, I have an object ... all possibilities in a switch or if/else ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm playing with some code, which resolve generic type of property value and doesn't allow provide wrong value. But when I change from TValue to ... in example with function as in example without function See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    As example, I'll use a function that receive a argument and returns a function that always returns a number. I'll have two possible results: if I ... Why does the type of a redefined parameter get lost? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have the following type declarations: type Root = { r: string }; type A = { a: string }; type B = { b: string }; type Main = Root & (A | B ... to Main, right? Is it a bug, or am I missing something? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.1k views
1 answer
    I am getting this error with my component not sure what to do? here is the component: import { Component, OnInit } from '@angular/core'; import { HttpClient ... results; console.log(this.results); }); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I would like to be able to construct a type dynamically ... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Pretty new to Angular and doing a small pilot project using Angular 5 and Visual Code. I am trying to use ng-include and the template doesn't get ... do not even see device.html file in source list. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Following the example below: How can I use/create dynamic template to compile dynamic Component with Angular 2.0? I developed my own template generator ... : self.context.printSomething is not a function See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
863 views
1 answer
    I have a function that returns any value of an object by a list of keys. Example: Given this interface interface Test { test1: string; test2: { ... even possible? Please check this snippet for an example See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm converting a js file to ts in WebStorm 2016.2.2. I had the following snippet: ///<reference path="./typings/globals/node/index.d.ts" /> ... how can I fix it? Any help will be profoundly appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I want to to set custom font sizes in quill editor with Prime NG. I am using Angular 9.1. I upgraded my application from Angular 5 to Angular 9.In ... on selection. Can any body please help me on this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    In my app, I have a model defined as Class with a constructor. Like this: export class Movie { title: string; posterURL: string; description: string; ... an interface or what? Thanks for the help :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Typescript playground I'm having some trouble while trying to wrap my head around the fact that the type never is meaningless and can be discarded when it ... about this so I can understand it better? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am using method inside a template to call the function, that returns boolean value. The issue is that the function is called more than 6 times. After ... why I am calling this method from the template. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm using Webpack with angular 1.6.x and Typescript and I quit using angular DI in favor of ES6 imports. When I need some ng functions like ... (performance, bad practice and such) using this approach? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm in the process of implementing refresh tokens and I use passportjs. What I don't completely understand is where and how I should check access ... 'Unauthorized', HttpStatus.UNAUTHORIZED); } } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am trying to use camanjs with angular 6. How to add js lib and use it with angular when there are no types for it on npm. I follow many ... error link to code: https://stackblitz.com/edit/angular-d5g941 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am performing an instanceof check in *ngIf. <span *ngFor="let element of elements"> <app-text *ngIf="element instanceof BlueElement"></app- ... How should I rewrite the generic instanceOf() function? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This is the minimal code example. I have an interface named Foo which has property one which accepts an array of the object type. interface Foo { one: { ... [el.key] = "anything" // contrived example }) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    In TypeScript, excess property checks are applied to object literals, but not beyond that. (This is intentional documented behavior.) So given: interface ... the type definition, that would be useful. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    How can I add a second sidemenu? I have the normal sidemenu on the left side which works great. Now I want to add a second sidemenu with filter options. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to transform some fields of my object by providing field names, currently I wrote something like follows: interface Foo { a: number[], b: string ... ] and Parameters<Bar[T]> should be the same? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How do I prevent TypeScript from allowing assigning similar but different types to a declared variable? Consider following classes: class Person { private ... to variables declared for another type? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...