This commit is contained in:
AJ ONeal 2022-09-01 00:59:05 -06:00
parent 927576a006
commit 39384ea727
No known key found for this signature in database
GPG Key ID: 585419CA6DB0AA23
1 changed files with 4 additions and 4 deletions

View File

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