diff --git a/scripts/main.js b/scripts/main.js index ef3a6ab..597ebe7 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -123,15 +123,8 @@ async function listAllFunctions() { message: "select function:", choices: [ "(go back)", - ...[...ctx.types.m.entries()] - .filter(([i, types]) => { - for (const type of types) { - if (isFunction(type)) - return true; - } - return false; - }) - .flatMap(toChoices), + ...ctx.functions.flatMap(({fn, type}) => toChoices([fn, [type]])), + ...ctx.genericFunctions.flatMap(({fn, genericType}) => toChoices([fn, [genericType]])), ], }); if (choice === "(go back)") {