-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add types #33
Add types #33
Conversation
I'll discard VFileCompatible in unified after it is released.
Nice! 👍 As the previous two type additions ( |
Absolutely! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but:
- I’d first like
unist-util-stringify-position
to receive types as well - And maybe we need to change some other things in a major as well?
What do you have in mind @wooorm? |
@ChristianMurphy Nothing really? I think VFile works pretty well. We could look at adding a “base” instead of a “cwd“, similar to Gulp (vfile/ideas#4), tho? I do know that adding types to an API surfaces some weirdness, so if @Rokt33r finds things that are weird or hard to handle, we could change them now. |
I don't' have any critical issues. But I sometimes thought it would be nice to have |
This comment has been minimized.
This comment has been minimized.
This PR is good to go but |
Released! I’d like to add types to the rest of the vfile packages next, before we move on to unified and other things. Here’s my proposed order (taking dependencies into account, for the needed major bumps): zero deep:
one deep:
two deep:
|
I think
type VFileCompatible = VFile | VFileOptions | VFileContents
should be in here. So after this pr is merged, I'll make another pr to discard it fromunified
.