glideapps/quicktype
View on GitHubEmit type aliases (with using) for top-level non-object types
Open
#915 opened on Jun 21, 2018
0 comments (0 comments)0 reactions (0 reactions)0 assignees (0 assignees)TypeScript10,867 stars (10,867 stars)968 forks (968 forks)batch import
C#good first issue
Description
Contributor guide
- Tech stack
- typescriptcsharp
- Domain
- tooling
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- half day
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- None
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 20
- Research direction
- Explore the quicktype codebase, focusing on the C# language target files (likely src/quicktype core/language/CSharp.ts). The issue requests emitting type aliases (using directives) for top level non object types (e.g., primitives, enums). Currently, quicktype may only emit aliases for object types. Study how using directives are generated for objects and extend that logic to other types. The StackOverflow link in the issue (https://stackoverflow.com/a/9258120/80410) illustrates the desired behavior. Check existing tests in the C# test suite to understand current output, then implement the new feature and add tests.