Reputation: 455
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>;
How do I look at [...more] in detail?
No matter how hard I look, I can't find it. I want to see of that. Cause I do a lot of the combinations. Then there's more than 20 of them. It's hard to check the type because it's show [...more].
Upvotes: 1
Views: 113
Reputation: 65303
VS Code's JavaScript and TypeScript IntelliSense truncates very long types as they are usually not useful (and in fact often introduce more confusion). That's why you see the ... more ...
section
As of VS Code 1.36, there is no way to force the full type to be shown. We have an issue about interactive diagnostics that talks about how types in diagnostics could be expanded dynamically, and the same would also make sense for IntelliSense.
If you think that your specific case could be handled by TypeScript better, please file an issue
Upvotes: 1