标签[typescript]

TypeScript是Microsoft创建的JavaScript的静态类型超集,它添加了可选的类型,类,接口,枚举,泛型,异步/等待和许多其他功能,并编译为纯JavaScript。 该标签用于特定于TypeScript的问题。 它不用于一般的JavaScript问题。

0
1回复
12

无论我尝试什么,都无法在AngularTypescript模块中导入Node、JS或Electron库

I'm fairly new to stack overflow, so if I don't ask the question correctly feel free to help me out.我对堆栈溢出相当陌生,所以如果我没有正确提出问题,请随时帮助我。 I've scoured ever
-1
0回复
11

TypeScript编写的Babel插件参数的类型是什么?

I am writing a Babel plugin in TypeScript and have been struggling to find a lot of examples or documentation doing so.我正在用 TypeScript 编写 Babel 插件,并且一
0
1回复
37

为什么是1

I'm learning TypeScript, and in the getting started page, they talk about how unexpected javascript is.我正在学习 TypeScript,在入门页面中,他们谈到了 javascript 是多么出人意
0
0回复
16

ReactNative:如何将状态从一个组件导出到另一个组件?

So I have this:所以我有这个:class Selection extends React.Component {state = { role1: true, role2: false}... Which I want to export to file2 which loo
0
1回复
31

如何解构打字稿界面并在另一个界面中使用它?

I'm poking around with exploring a typescript pattern and I'm not sure if it can be done.我正在探索打字稿模式,但不确定是否可以完成。 essentially, in my React component I h
-2
1回复
27

为什么Angular要求我提供这些属性,我该如何解决?

/* Services: client-service.ts */import { Injectable } from '@angular/core'; import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreD
0
1回复
19

想要以8角显示加载微调器

I have one download button and table that store user data in user.component.html file and when user clicks on the download button then it exports all
0
0回复
10

使用打字稿在commonjs文件中导入模块

There must be a cleaner way to do this.必须有一种更清洁的方法来做到这一点。 If JS I can easily use await import to bring an ES6 module into a commonJS file but if I use
0
0回复
04

ReactPWA检测到iOS上的新内容未按预期工作

I use CRA PWA and add toast that's show when onupdatefound and onstatechange.我使用 CRA PWA 并添加在 onupdatefound 和 onstatechange 时显示的吐司。 it's working well
0
1回复
11

如何从包中自动克隆接口?

I'm using a package in my react-native app.我在我的 react-native 应用程序中使用了一个包。 I'm building my API and I want to use the same interface as the package does
0
0回复
19

时刻utc格式到持续时间

I am using as backend .NET Core with GraphQL hot chocolate and for frontend i have Angular 12. When i do a query from the frontend to fetch informatio
0
0回复
27

为什么即使使用绑定我也未定义?

interface LooseObject { [key: string]: any}class C{ protected x: number = 100 protected y : number = 200 public s: string = "my dear strin
0
2回复
20

当表格行的复选框值更改时检索对象

In the following table, when I change the status by clicking on the checkbox control, I need to console.log the Course Id which is denoted here as cId
1
1回复
48

TypeScript字典中的类型推断

Imagine a fictive example of modelling a vehicle store:想象一个对汽车商店建模的虚构示例:type Vehicle<TClass extends string, TSpecs> = { class: TClass, spe
0
0回复
25

如何使用JavaScript在png文件中存储任意数据?

I'm making a UserScript in TypeScript that allows someone to download a specific <canvas> as a .png file.我正在用 TypeScript 制作一个 UserScript,它允许某人将特
0
0回复
17

如何使用React、TypeScript和Express创建网站

Closed . 关闭。 This question needs to be more focused . 这个问题需要更加集中。 It is not currently accepting answers.
0
0回复
10

使用ReactLeafletV3创建自定义层

I want to create a custom helper div layer on the map on a button click or mouse-over over the button.我想通过单击按钮或将鼠标悬停在按钮上,在地图上创建自定义助手 div 层。 The button
0
0回复
10

Typeorm一对多关系和树

Hello I have Post entity:您好,我有Post实体:@Entity()export class Post extends BaseEntity { @PrimaryGeneratedColumn() id: number; @Column() title: string
0
0回复
37

为什么console.log和return的结果不一样[重复]

This question already has answers here : 这个问题在这里已经有了答案: How to return the response from an asynchronous
0
2回复
33

Typescript从它的泛型类型实例化一个类

I've got a generic hook, passing the type of the kind of object I want it to return to me, but I'me stucked cause I can't instantiate a class from it'

1 2 3 4 5 6 7 8 9 10 下一页