腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
“
function
”
类型
上
不存在
属性
typescript
、
firebase
、
react-native
、
firebase-authentication
我尝试在使用typescript的函数中使用firebase.auth方法,但我得到一个
属性
'name‘在
类型
'
function
’
上
不存在
(TS2339)。= (email: String, password: String) => { return (firebase.auth as
Function
', error)); }; .createUserWithEmailAndPas
浏览 172
提问于2020-04-20
得票数 1
2
回答
当Y有索引签名时,为什么在'Y‘
类型
上
不存在
'X’
属性
?
typescript
type JSONValue = string | {[x:string]:string} console.log(p.aaaa);
属性
'aaaa‘在
类型
'JSONValue’
上
不存在
。
属性
'aaaa‘在
类型
’string‘..ts
上
不存在
(2339)type JSONValue = {[x:strin
浏览 8
提问于2022-01-08
得票数 2
回答已采纳
2
回答
属性
不存在
于
类型
'{ my_
function
():void;}‘
上
。
typescript
、
vue.js
目前,我正在考虑最合适的方法来设置最初应该为null的json键的
类型
。
浏览 5
提问于2021-01-15
得票数 0
回答已采纳
1
回答
如何使用服务工作者背景同步和
类型
记录
reactjs
、
typescript
、
service-worker
navigator.serviceWorker.register('/sw.js'); navigator.serviceWorker.ready.then(
function
{}); self.addEventListener('sync',
funct
浏览 0
提问于2021-10-31
得票数 0
回答已采纳
1
回答
通过泛型函数动态修改TypeScript类
javascript
、
class
、
typescript
、
factory
) { return new cls( ...args ); }} 在这种情况下,cls将推断T
类型
的值。‘在'new (...args:
浏览 8
提问于2017-05-18
得票数 1
1
回答
为什么这种
类型
的保护不能在这个三元表达式中工作?
typescript
我有这样的代码: return Array.isArray(v);} Object.keys(settings).forEachconsole.log(val)) )); 在setting
浏览 3
提问于2019-11-13
得票数 1
回答已采纳
2
回答
如何将
类型
缩小为对象而排除布尔
类型
?
typescript
我被困在简单的例子,尝试不同的技巧,缩小
类型
,但TS给我错误。interface IObject {} inner: IObject | boolean return smth[s].someField return '' 如何告诉TS smth‘is’是IObject
类型
,但不包括布尔
浏览 4
提问于2022-02-10
得票数 1
回答已采纳
2
回答
TS2339:在交替
类型
上
无法识别的
属性
typescript
: null | number if(options.text) { }
属性
'text‘在'NotifyOptions’
类型
上
不存在
。
属性
“text”
不存在
于
类
浏览 6
提问于2021-04-04
得票数 0
1
回答
普通快递代码
上
的打字错误TS2345
express
、
typescript
我已经安装了带有
类型
记录1.8.10的快捷
类型
,下面的代码是: if ( err.code !
类型
'(err: Request,req: Response,res: NextFunction,next: any) => any‘是不可分配的
类型
'(string \RegExp)[]。
属性
'Symbol.iterator‘在
类型
中缺失(err:
浏览 3
提问于2016-11-15
得票数 5
2
回答
在“窗口”
类型
上
不存在
角
属性
javascript
、
angular
、
typescript
我有一个函数要上传,但是我有以下错误: constructor( private uploa
浏览 7
提问于2019-10-21
得票数 4
回答已采纳
1
回答
TS2339:
属性
在
类型
上
不存在
typescript
、
webstorm
/typings/globals/node/index.d.ts" /> };TS2339:
属性
“abs_
浏览 7
提问于2016-10-16
得票数 4
回答已采纳
2
回答
快递服务器console.log问题:“string”
类型
上
不存在
“地址”
node.js
、
express
/app/route/data.route.js')(app);// Create a Server })
属性
'address‘在字符串'string \
浏览 11
提问于2020-09-09
得票数 0
回答已采纳
2
回答
如何根据另一种
类型
正确推断
类型
?
typescript
、
typescript-typings
: string}
类型
,当props.group为false时为{title: string}
类型
。: boolean; return props.tabsList.map((`${tab.leftText} ${tab.rightText}` return `${tab.title}`}
属性
'
浏览 3
提问于2021-04-15
得票数 0
回答已采纳
2
回答
角7-如何工作的HTML5全屏API?我有很多错误
angular
、
html
、
typescript
、
angular-cli
、
fullscreen
错误TS2339:在'HTMLElement‘
类型
上
不存在
属性
'mozRequestFullScreen’。错误TS2339:在'HTMLElement‘
类型
上
不存在
属性
'webkitRequestFullscreen’。错误TS2339:在'HTMLElement‘
类型
上
不存在
属性
'webkitRequestFullsc
浏览 4
提问于2019-01-17
得票数 6
回答已采纳
1
回答
反应本机错误:
属性
“历史记录”
不存在
reactjs
、
typescript
、
react-native
、
react-router
我正在使用mongodb创建注册登录模块,表示和反应,但在创建过程中遇到的
属性
历史记录
不存在
错误: import { login } from '.form in render
functio
浏览 4
提问于2019-07-09
得票数 1
回答已采纳
2
回答
类型
记录错误:
类型
'EventTarget‘
上
不存在
属性
'remove’
reactjs
、
typescript
我得到错误
类型
错误:
属性
'remove‘在'EventTarget’
类型
上
不存在
。<img onError={
function
(e) { }} src="..
浏览 0
提问于2019-01-20
得票数 0
回答已采纳
1
回答
函数返回数组或数字时不能使用“map”方法
typescript
、
typescript-typings
、
typescript2.0
当我在下面运行这段代码时,它有错误:"ts
属性
'map‘
不存在
于'number \ number[]’
类型
上
。
属性
'map‘在’number‘
类型
上
不存在
。: string) => number[] | number =
function
(data: number[], options?但事实
上
,没有人知道为什么'whichType‘不是'numbe
浏览 2
提问于2018-06-05
得票数 0
回答已采纳
4
回答
‘'play’在'HTMLElement‘
类型
中
不存在
,在'EventTarget’
类型
中
不存在
属性
'value‘
typescript
、
jsx
有没有办法去掉打字稿
上
的警告信息?谢谢 e.preventDefault() audioPlayer.play();(248,8
浏览 5
提问于2017-05-21
得票数 9
回答已采纳
1
回答
类型
“{}”
上
不存在
属性
“update”
angular
为此,我使用了来自的代码 (100,21):错误TS2339:
属性
‘配置’在
类型
'{}‘
上
不存在
。(109,21):错误TS2339:
属性
'isRendered‘在
类型
'{}’
上
不存在
。on (161,21):错误TS2339:
属性
‘呈现’
类型
'{}‘
不存在
。(173,21):错误
浏览 41
提问于2018-08-28
得票数 1
回答已采纳
1
回答
属性
不存在
于数组元素
上
。
typescript
但是,我得到了以下错误: [k: string]: string const foo: IObj = {} fields.forEach((x) =
浏览 0
提问于2019-04-01
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
php学习之类与对象的魔术方法的使用
php中的魔术方法
浏览器数据库 IndexedDB 学习笔记
PHP中的面向对象总结
好程序员分享JavaScript之-文档对象模型
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券