Skip to content

Instantly share code, notes, and snippets.

@jabranr
Created October 27, 2023 07:48
Show Gist options
  • Save jabranr/ec2ca2ffb520b25299a02aa9ddc256b9 to your computer and use it in GitHub Desktop.
Save jabranr/ec2ca2ffb520b25299a02aa9ddc256b9 to your computer and use it in GitHub Desktop.
Create a typescript declaration file
npx -p typescript tsc {file_name.js} --declaration --allowJs --emitDeclarationOnly --outDir {output_dir_name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment