-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Person type is too abstract #155
Comments
Hi @slavafomin, you are probably talking about the types for I didn't write them manually, but they are generated from SchemaStore's package.json. So you should probably open an issue at schemastore. Maybe you can team up with @G-Rath, who also worked on this schema before (see #88). |
I'm happy to help, but am right now pretty busy converting I've still actually got to finish off implementing the flag for generating "strict" typings for you as well 😬 (it's done, but I need to write tests & make a PR).
It's b/c of this bug |
@G-Rath thank you very much for the investigation! Let's hope the bug gets resolved soon. |
@G-Rath in the meantime, the bug was closed as completed 🥳 Today, I re-generated a lot of schemas and the @slavafomin the new /**
* A person who has been involved in creating or maintaining this package.
*/
export type Person = {
name: string;
url?: string;
email?: string;
[k: string]: unknown;
} & Person1;
export type Person1 =
| {
name: string;
url?: string;
email?: string;
[k: string]: unknown;
}
| string; You can try it out by using |
@ffflorian awesome, though the types are invalid for another reason - I've opened #680 :) |
Hello!
Thank you for this great library!
However, the
Person
type is pretty abstract:It would be nice, to specify the fields, like
name
,email
,website
etc.Here's my implementation from our private project:
Thanks!
The text was updated successfully, but these errors were encountered: