2
0
mirror of https://github.com/therootcompany/request.js synced 2025-02-22 13:58:05 +00:00
request.js/bin/localize-types

15 lines
250 B
Bash
Executable File

#!/bin/sh
my_typedefs="$(
grep typedef ./index.js | cut -d ' ' -f5
)"
rm -f ./types.js
{
echo '/**'
for my_type in $my_typedefs; do
echo " * @typedef {import('./').${my_type}} ${my_type}"
done
echo ' */'
} >> ./types.js