Welcome to OStack Knowledge Sharing 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.4k views
1 answer
    I have several utility functions. What is the best way to package these up, and then import them? This is what ... does not exist on type util. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
837 views
1 answer
    I created a service SocketService, basically it initializes the socket to let the app listen on the port. This ... I do it correctly? Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
837 views
1 answer
    If I don't add private before foo, loadBar, andtext, I believe they are public by default. export class ... private text: string; } Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    Typescript code: import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; ... json file with Angular version: See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I got an error of node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. after the ... ): error TS1109: Expression expected. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
746 views
1 answer
    so originally to enforce a constraint, i'd just apply an interface like this // this is the constraint ... a different approach? thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
939 views
1 answer
    import { Market } from '@ionic-native/market/ngx'; constructor(public platform: Platform, public statusBar: StatusBar ... working. Please help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
782 views
1 answer
    I am working a spring boot server with an angular front page. I have a service to download a .xlsx file from ... .js:3240:31) at Object` See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
811 views
1 answer
    As you may know, in strict mode only undefined is assignable to type void. So if you try: declare let _void: void ... this a bug or a feature? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
836 views
1 answer
    I am working in an angular 4 project ,In this I have a mega menu .What I want to do is when I clicked on a ... can anyone help me to fix it . See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
760 views
1 answer
    I need to redirect into different user page depends on the userRole value received from the header. angular. ... recieve he header value. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
799 views
1 answer
    I've been trying to make a generic function which receives and object T and receives a string property name ... type 'string'. Playground link See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    I am new to angular 5 ,Here I am trying to validate user password based on some conditions . Minimum six ... the pattern directly in HTML). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
947 views
1 answer
    i have issue with my custom provider in Angular 2.0.1. I create a custom provider for my http request to add ... }) export class AppModule { } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I've created a new Electron-Project with Angular. I build my app with the Angular CLI. Now, I want to communicate ... and hope, you can help me. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
871 views
1 answer
    Let's imagine that I have an A decorator that is being applied on a method that returns a string. The decorator ... fact returns B, not string? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Does anybody know how to make compiler to infer tuple type automatically ? // Now: (string | number)[] // Wanted: [string, ... 2], ["b", 2] ]; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
813 views
1 answer
    Consider next simplified example: type Ref<T extends {id: string}> = T['id'] This type represents ref to object ... compile check for it in TS? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
853 views
1 answer
    I have this typescript code (typescript playground): const enum Something { None = 0, Email = 10, All = 20 } ... enum, so shouldn't it throw? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
870 views
1 answer
    I have defined a service like this : angular.module('myApp').service('myService', [ '$rootScope', ... ... I want ... if the user is an old one. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    So when importing an external module like so import GameObjects = module("GameObjects") the outputed JS has this at ... I get by this error? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
877 views
1 answer
    Today I stumbled upon something that I didn't think would cause me trouble. In Java and Spring, I can declare ... out to an alternative design? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
650 views
1 answer
    In TypeScript, what exactly is type '{}' and how does it relate to other built-in types? For example, ... : number = call(get_the_answer); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
805 views
1 answer
    I am trying to check the active child route in a parent component, but I am having difficulties with it. I ... a parent component. Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
851 views
1 answer
    Q1. Is it possible to have one Control ie: ValidNumber = new Control('', CustomValidators.number({min:1, ... want from ngControl is Validation. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
805 views
1 answer
    Since this works: const f = <T extends string>(x: T) => x; f(""); interface Dictionary<T> { [key ... string which is required by indexed type). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
849 views
1 answer
    I am very new to the topic of Angular, Javascript etc. I try to write a (TypeScript) Angular2-Electron application which ... > <!-- endbuild --> See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
910 views
1 answer
    angular: 2.0.0-beta.9 Is it possible to inject a non @Injectable class into a component ? For example, this ... come from a Third party library. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...