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…
Reference in New Issue