I'm a self-taught dev, tech lover, I totally love this world of creating things and tools that helps people, that makes things easier, faster or prettier!
interface GregsNeedsAndMotivations {
salary: SalaryTypes;
insurance: InsuranceTypes;
workEnvironment: WorkEnvironmentTypes;
techStack: Techs[];
}
interface GregsValue {
efficiency: EfficiencyTypes;
productivity: ProductivityTypes;
reliability: ReliabilityTypes;
autonomy: AutonomyTypes;
techSkills: string[];
softSkills: string[];
}
function greg(hiringIncentives: GregsNeedsAndMotivations): GregsValue {
const {salary, insurance, workEnvironment, techStack} = hiringIncentives;
if (salary !== SalaryTypes.ADEQUATE || insurance !== InsuranceTypes.COMPETITIVE || workEnvironment !== WorkEnvironmentsTypes.ENGAGING) {
return HeadHunterResponses.REFUSE;
}
return {
efficiency: EfficiencyTypes.VERY,
productivity: ProductivityTypes.VERY_PRODUCTIVE,
reliability: ReliabilityTypes.VERY_RELIABLE,
autonomy: AutonomyTypes.AUTONOMOUS,
techSkills: [
'TypeScript', 'JavaScript', 'Python', 'GitHub', 'ReactJS', 'NextJS'
],
softSkills: [
'self-taught', 'mature', 'detail-oriented'
]
}
}
const answer = greg({...WhatYouAsACompanyHaveToOffer});
console.log(answer);
}
Thanks Jp for this 😂