feat: working through all the algos i'll need

This commit is contained in:
mpaulson 2022-07-18 21:54:39 -06:00
parent 7101b99c35
commit 6f41e5760d
5 changed files with 264 additions and 27 deletions

View file

@ -59,7 +59,8 @@ function create_class(name, item) {
}
function create_function(name, item) {
fs.writeFileSync(path.join(day_path, `${name}.ts`), `export default function ${item.fn}(${item.args}): ${item.return} {
const g = item.generic ? item.generic : "";
fs.writeFileSync(path.join(day_path, `${name}.ts`), `export default function ${item.fn}${g}(${item.args}): ${item.return} {
}`);
}