impero-com / impero-com/typebinder
Add support for type imports
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 22
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
When using Svelte, type imports are required. So, the generated output:
```ts
import { MyType } from "path/to/type";
```
should be:
```ts
import type { MyType } from "path/to/type";
```
I figure there should probably be some way to configure this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the code that generates TypeScript import statements and the existing configuration entry points. Trace how imported types are identified, then define how the requested `import type` output should be selected and verify the generated output for both configured and existing cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100