This commit is contained in:
parent
927576a006
commit
39384ea727
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
my_typedefs="$(
|
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 '/**'
|
echo '/**'
|
||||||
for my_type in $my_typedefs; do
|
for my_type in $my_typedefs; do
|
||||||
echo " * @typedef {import('./types.js').${my_type}} ${my_type}"
|
echo " * @typedef {import('./').${my_type}} ${my_type}"
|
||||||
done
|
done
|
||||||
echo ' */'
|
echo ' */'
|
||||||
} >> ./local-types.js
|
} >> ./types.js
|
||||||
|
|
Loading…
Reference in New Issue