首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何详细查看[...more]?

如何详细查看[...more]?
EN

Stack Overflow用户
提问于 2019-06-14 10:23:55
回答 1查看 76关注 0票数 1
代码语言:javascript
复制
import * as Joi from 'joi';
import 'joi-extract-type';

const schema = {
    aaaaaaa: Joi.number()
        .integer()
        .positive()
        .allow(null),
    bbbbbb: Joi.number()
        .integer()
        .positive()
        .allow(null),
    aaaaaaa3: Joi.number()
        .integer()
        .positive()
        .allow(null),
    aaaaaaa5: Joi.number()
        .integer()
        .positive()
        .allow(null),
    e: Joi.number()
        .integer()
        .positive()
        .allow(null),
    f: Joi.number()
        .integer()
        .positive()
        .allow(null),
    g: Joi.number()
        .integer()
        .positive()
        .allow(null),
    h: Joi.number()
        .integer()
        .positive()
        .allow(null),
    i: Joi.number()
        .integer()
        .positive()
        .allow(null),
    j: Joi.number()
        .integer()
        .positive()
        .allow(null),
    k: Joi.number()
        .integer()
        .positive()
        .allow(null),
    n: Joi.number()
        .integer()
        .positive()
        .allow(null),
    nnnnnnnnn: Joi.number()
        .integer()
        .positive()
        .allow(null),
};

type exampleType = Joi.extractType<typeof schema>;

如何查看...more的详细信息?

不管我怎么找,我都找不到。我想看看这个。因为我做了很多组合。然后有超过20个这样的人。很难检查类型,因为它是show ...more。

enter image description here

EN

回答 1

Stack Overflow用户

发布于 2019-06-17 23:54:50

VS代码的JavaScript和TypeScript IntelliSense截断了非常长的类型,因为它们通常是没有用的(事实上,它们通常会引入更多的混淆)。这就是为什么您会看到... more ...部分

从VS代码1.36开始,没有办法强制显示完整的类型。我们有一个关于interactive diagnostics的问题,它讨论了如何动态扩展诊断中的类型,对于IntelliSense也是如此。

如果您认为TypeScript可以更好地处理您的具体情况,请使用file an issue

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56590642

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档