Extract types in a separate function
Add data for typedefs to info.json
Include typedefs in externs