-
Notifications
You must be signed in to change notification settings - Fork 43
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
Should add more fields? #50
Comments
I'm not quite sure what you're asking for |
const options: GitlogOptions<("subject" | "authorName" | "authorDate")[]> = {
repo: "foo",
fields: ["subject", "authorName", "authorDate"],
};
const commits = gitlog(options); |
Can be entered directly without the need for generics |
the only problem is that in typescript we can't ensure commits has the right fields without the generic. How do you like const options = {
repo: "foo",
fields: ["subject", "authorName", "authorDate"] as const,
};
gitlog(options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: