-
Notifications
You must be signed in to change notification settings - Fork 978
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
feat: add types, allow bullets for description #35
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding types is going to cause a lot of problems for people who just want to fork the project and use it. some users may not have a project, websiteurl or don't want to put out location links etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see how adding types would be a problem. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { StaticImageData } from "next/image"; | ||
export type ResumeData = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. having that adds pretty much no value but adds a lot of overhead In maintaining the type. using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I added types is because exporting as const won't allow as much customization. For Example: if I remove the field from the config, we get this error The app still works fine, but Vercel doesn't allow this. and for possibility of making the desc both array or string, exporting as const won't allow it unless there's atleast one array and one string in the whole config, or it'll have the type never, and the deployment fails. |
||
name: string; | ||
initials: string; | ||
location: string; | ||
locationLink: string; | ||
about: string; | ||
summary: string; | ||
avatarUrl: string; | ||
personalWebsiteUrl: string; | ||
contact: { | ||
email: string; | ||
tel: string; | ||
social: { | ||
name: string; | ||
url: string; | ||
icon: React.ComponentType; | ||
}[]; | ||
}; | ||
education: { | ||
school: string; | ||
degree: string; | ||
grade?: string; | ||
start: string; | ||
end: string; | ||
}[]; | ||
work: { | ||
company: string; | ||
link: string; | ||
badges: string[]; | ||
title: string; | ||
logo: React.ComponentType<{}> | StaticImageData; | ||
start: string; | ||
end: string; | ||
description: string | string[]; | ||
customBullet?: string; | ||
}[]; | ||
skills: string[]; | ||
projects: { | ||
title: string; | ||
techStack: string[]; | ||
description: string; | ||
logo: React.ComponentType<{}> | StaticImageData; | ||
link?: { | ||
label: string; | ||
href: string; | ||
}; | ||
}[]; | ||
certification?: { | ||
name: string; | ||
providerName: string; | ||
link: string; | ||
issueDate: string; | ||
expirationDate: string; | ||
certificateId: string; | ||
}[]; | ||
publication?: { | ||
name: string; | ||
providerName: string; | ||
link: string; | ||
issueDate: string; | ||
description: string; | ||
}[]; | ||
}; |
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.
what's the reason for this change? what was the error?
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 is only if we're adding types.
I'll remove this if types aren't necessary.