2 posts tagged with "function declaration"

    typescript: typing functions

    2022-11-28

     | 

    ~2 min read

     | 

    303 words

    In Javascript, we can write functions as declarations or expressions. And while I typically write my functions as expressions, I normally…

    exporting a named function as default

    2022-11-28

     | 

    ~1 min read

     | 

    198 words

    Back in February I wrote a primer on exports and require. While the primer was helpful, one piece that never quite clicked, was how to…

Return to all tags