what typescript type would an anonymous function be?

thanks i’m learning to declare functions in .d.ts files my javascript has function generate(romeo) { return function(juliet) { return romeo + juliet } } typescript declaration /** * Function that accepts strings and returns composed function. */ export function generate(romeo: string): (juliet: string) => string; object? found an object type about being non primitive didn’t… Read More what typescript type would an anonymous function be?