maltejur / directus-extension-generate-types

Create types for your directus project in your favourite language.
Other
199 stars 24 forks source link

Folders get exported as empty objects #15

Closed badrange closed 1 year ago

badrange commented 1 year ago

In our project we have a folder called "Content" that gets exported as a type which causes a warning from our eslint:

export type Content = {};

Don't use {} as a type. {} actually means "any non-nullish value".

I think it would be great if the extension skips these folders too?

Related to #11

maltejur commented 1 year ago

Fixed in https://github.com/maltejur/directus-extension-generate-types/commit/236f82a32ecca6174c7742a39b3deee8a61dca36

badrange commented 1 year ago

Great, thank you!