腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
参数
'
req
‘
隐
式
具有
'
any
’
类型
脚本
node.js
、
typescript
参数
'
req
‘
隐
式
具有
'
any
’
类型
。 19 app.get('/api', (
req
, res) => { ~~~
参数
'res‘
隐
式
具有
'
any
’
类型
。19 app.get('/api', (<em
浏览 126
提问于2020-12-19
得票数 1
1
回答
绑定元素'
req
‘
隐
式
具有
'
any
’
类型
typescript
、
typegraphql
在
类型
-graphql中实现autchChecker时,我遇到了一个问题const schema = await buildSchema({ }我得到的错误是这篇文章的确切标题。}:
any
) }) => { 如果它可能对您有所帮助,这
浏览 0
提问于2021-01-18
得票数 0
3
回答
TypeScript快速错误函数
typescript
、
express
、
typescript-typings
在Typescript中编码时,错误处理函数的四个
参数
类型
是什么?错误显示“
参数
隐
式
具有
'
any
‘
类型
”。实际上,我对这条消息感到困惑。如果它将其视为
any
类型
,那么这不是一个有效的选择吗?
浏览 1
提问于2018-05-08
得票数 15
回答已采纳
1
回答
类型
记录无法检测索引签名中泛型方法上的
参数
类型
。
generics
、
interface
、
typescript
methodName: string]: (id: number, text: string) => boolean | void;这里的一切都很好,我添加到这样一个对象的任何方法都会正确地识别它们的
参数
类型
methodA: (id, text) => { // text: string} 现在,我需要在这些函数中添加一个
类型
参数
'text‘
隐
式
浏览 4
提问于2016-03-04
得票数 4
回答已采纳
2
回答
“‘
req
”是声明的,但它的值永远不存在。
参数
“
req
”
隐
式
具有
“任意”
类型
。
node.js
、
typescript
这是我的代码const port = 8080; res.end('Hello, world.');server.listen(port); “‘
req
”是声明的,但它的值永远不存在。
参数
“
req
”
隐
式
具有
“任意”
类型
。
浏览 4
提问于2019-10-21
得票数 1
回答已采纳
1
回答
为typescript导入节点请求
类型
node.js
、
typescript
、
definitelytyped
、
type-definition
listen(config.port); console.log('serve: ' + local_
req
.url); const url = config.forward_url + local_
req
.urlANd typescript抱怨
参数
'local_
req
浏览 11
提问于2019-06-07
得票数 2
2
回答
如何使用/声明外部模块,在角11中不会通过严格的noImplicitReturns TypeScript设置?
angular
、
typescript
、
typescript-typings
、
type-hinting
、
leaflet-geoman
它在compilerOptions配置中
具有
tsconfig.json中的这些值"noImplicitReturns": true,import * as L from 'leaflet';不幸的是,它包括
隐
式
any
类型
以及
隐
式<
浏览 3
提问于2021-03-26
得票数 3
回答已采纳
2
回答
参数
“dispatch”
隐
式
具有
“
any
”
类型
reactjs
、
typescript
、
react-redux
我得到了以下皮棉问题,我不知道是什么
类型
的dispatch。我想知道这是什么?我知道我可以告诉tslint忽略"noImplicitAny": false在tsconfig文件中的检查。
浏览 0
提问于2018-04-13
得票数 13
回答已采纳
3
回答
类型
'
any
‘的
参数
不能分配给“从不”
类型
的
参数
吗?
angular
参数
'post‘
隐
式
具有
’任意‘
类型
。
类型
'
any
‘的
参数
不能分配给“从不”
类型
的
参数
OnPostAdded(post){ }
浏览 4
提问于2021-03-11
得票数 1
回答已采纳
1
回答
作为警告的
类型
记录错误
typescript
、
ecmascript-6
例如,由于没有到处声明
类型
,我得到了以下错误: src\app\component.ts(44,18):error TS7006:
参数
'a‘
隐
式
具有
'
any
’
类型
。src\app\component.ts(44,21):error TS7006:
参数
'b‘
隐
式
具有
'
any
’
类型
。src\app\component.ts(4
浏览 2
提问于2016-04-01
得票数 6
回答已采纳
1
回答
类型
'string‘的表达式不能用于索引
类型
'Request<ParamsDictionary,
any
,
any
,Query>’
node.js
、
typescript
、
express
export function validator(schema: Joi.ObjectSchema, key: string) {元素
隐
式
具有
“任意”
类型
,因为“string”
类型
的表达式不能用于索引
类型
'Request‘。在“请求”
类型
上没有发现
具有
“string”
类型
参数
的索引签名。 我发现的其他类似问题
浏览 10
提问于2020-05-13
得票数 0
1
回答
如何从接口中增强对象的
类型
typescript
string; source: string;}const commandRequest: CommandRequest =
req
.body;const notepad = {}; 但是我得到了以下错误: TS7053: Element
隐
式
具有
'
any<
浏览 7
提问于2022-01-06
得票数 0
回答已采纳
1
回答
参数
'res‘
隐
式
具有
'
any
’
类型
[重复]
angular
这个问题在这里已经有答案了 : Typescript: TS7006:
参数
'xxx‘
隐
式
具有
'
any
’
类型
(7个答案) 9小时前就关门了。所以我使用了subscribe方法,但它显示了这个错误-
参数
'res‘
隐
式
具有
'
any
’
类型
。
浏览 563
提问于2021-03-02
得票数 0
回答已采纳
5
回答
Typescript -
参数
'u‘
隐
式
具有
'
any
’
类型
typescript
、
angular
app/auth/auth.service.ts(30,40): error TS7006: Parameter 'u' implicitly has an '
any
' type. constructor( public password: string) { } var users:
any
_router.navigate(['Login']
浏览 0
提问于2016-07-05
得票数 10
1
回答
在JavaScript (TypeScript风味)中使用静态方法实现列表
typescript
、
list
function(item){ }); } public forEach(callback: (n:
any
list-ops.ts(34,17):error TS7053: Element
隐
式
具有
'
any
‘
类型
,因为
类型
'number’的表达式不能用于索引
类型
'List‘。在“List”
类型
上没有发现<e
浏览 8
提问于2022-02-25
得票数 0
回答已采纳
2
回答
如何在
类型
记录中修复此
类型
推断
typescript
b": "222" console.log(data[key]); // TypeScript error here 元素
隐
式
具有
'
any
‘
类型
,因为
类型
'string’的表达式不能用于索引
类型
{ "a":string;"b":string;}‘。在
类型
'{
浏览 2
提问于2019-08-08
得票数 0
回答已采纳
1
回答
Nuxt2 + ts如何修复bug?
typescript
、
nuxt.js
$emit('input', value) }TS7017:元素
隐
式
具有
'
any
‘
类型
,因为’TS7017 no‘
类型
没有索引签名。TS7017:元素
隐
式
具有
'
any
‘
类型
,因为’TS7017 no‘
类型
没有索引签名。
浏览 3
提问于2022-09-15
得票数 0
1
回答
为typescript中的对象指定
类型
时出现问题
typescript
、
types
我有一组数据,我需要在typescript中指定
类型
(不推荐使用
类型
any
)。'xyzzy': (2) [Array(4), 1], 当我将它的
类型
指定为object时,我得到了错误。元素
隐
式
具有
“”
any
“”
类型
,因为“”string“”
类型
的表达式不能用于索引
类型
“”{}“”。“”在
类型
'{}‘上找不到
参数
类型
浏览 17
提问于2021-09-30
得票数 0
1
回答
变量'a‘
隐
式
具有
'
any
[]’
类型
angular
、
typescript
lite-server" @Injectable() var a:
any
[] = [] for (var key
浏览 7
提问于2016-08-31
得票数 8
回答已采纳
2
回答
为什么
参数
'props‘
隐
式
具有
'
any
’
类型
?
javascript
、
typescript
、
redux
、
create-react-app
我试着用
类型
记录创建一个商店。一切都在进行fine.....however,然后这个错误发生了"Parameter“
隐
式
有'
any
‘
类型
,我在internet...it中找到了一个解决方案,建议为道具创建一个接口。
浏览 1
提问于2018-10-10
得票数 8
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
在 vim 编辑中使用 perl 单行命令
Scala 隐式转换和隐式参数
PHP 8:类型系统改进
Shell编程规范-关于函数
Javascript中=与=有什么区别
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券