Make implicit conversion more flexible

Open
#109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
compilers

Research direction

The payload names no files or functions, so first find where implicit conversion between two types is currently decided as a true/false check in the typir sources. Read how that result is consumed by callers before changing its shape. Done means the conversion result can express the three states from the issue (no, with data loss, without data loss) while existing boolean callers keep working, and the test suite still passes. Agree the API shape with the maintainers first, since the issue sets no design.

Written by the indexing model from the issue text.

Description

Infrastructure

At the moment, implicit conversion between two types is possible or not (true | false). Sometimes it is necessary to support implicit conversion with e.g. data loss as well (no | with_data_loss | without_data_loss).

Dominant language
TypeScript
Stars
52
Forks
5
Avg merge
1h 31m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TypeFox/typir

All issues in TypeFox/typir

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.