mirror of
https://github.com/therootcompany/request.js
synced 2025-03-14 12:20:38 +00:00
f
This commit is contained in:
parent
927576a006
commit
39384ea727
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user