apollographql / apollographql/apollo-tooling

Generate const and numeric enums for TypeScript

Open
#1,827 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

There are a lot of scenarios which requires [`const enum`](https://www.typescriptlang.org/docs/handbook/enums.html#const-enums) and [numeric enum](https://www.typescriptlang.org/docs/handbook/enums.html#numeric-enums) in addition to [`string enum`](https://www.typescriptlang.org/docs/handbook/enums.html#string-enums).

Would be great to be able to control the type of enum to be issued.

The similar requirements has been mentioned in #610 and #1044.

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files, tests, or entry points. Start by tracing the TypeScript enum-generation path and reviewing related issues #610 and #1044; done means providing control over const, numeric, or string enum output and verifying the generated results.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.