TypeScript copy pastes

Posted

Function with a return type of a given parameter’s function return type

function execute<T>(fn: () => T): ReturnType<typeof fn> {
  // ...  
  return fn()
}

Yay for IntelliSense

Bunyan Global Logger

 GitHub: featherbear/global.bunyan

Allow using logger.info(...) anywhere

Sucrase w/ Nodemon

 GitHub: featherbear/sucrase-nodemon

Use with sucrase-node on TypeScript files through nodemon

More posts

Inline Microphone Preamps

Boosting the gain of microphones with inline preamps

Posted

Eartec Dummy Battery

Externally powering some Eartec UltraLITE / UltraPAK units

Posted