Extract the interface itself even it is referenced in a property.
Reason: We just extract an empty interface when it is referenced in a property at the moment. This may lead to wrong result because we cannot determine which types this type is referenced by.
Improve the way of changing name to the already extracted's when types imported implicitly depends on same types
Improve the way of handling duplicate imports/exports
Improve the way of finding types
Fix infinite loop when the type references itself (see caveats in README.md)
Do not remove import when extracting enum types referenced from SFC, closes #20
Fix noisy warnings
Other changes
Add comment /* enum */ and /* empty-enum */ when extracting enum types
Use process.env.VITEST instead of import.meta.vitest
Description
Bug fixes
README.md
)Other changes
/* enum */
and/* empty-enum */
when extracting enum typesprocess.env.VITEST
instead ofimport.meta.vitest