bio-dts 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,9 +204,9 @@ export default function transform(src) {
204
204
  params: variation.slice().reverse(),
205
205
  id: node.id,
206
206
  declare: node.declare || false,
207
- returnType: b.tsTypeAnnotation.from({
207
+ returnType: returnType ? b.tsTypeAnnotation.from({
208
208
  ...returnType
209
- }),
209
+ }) : null,
210
210
  comments: hostPath === nodePath ? variationComments : []
211
211
  });
212
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bio-dts",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Generate sane and clean types from JavaScript sources",
5
5
  "type": "module",
6
6
  "main": "index.js",