microsoft / microsoft/TypeScript

The Symbol interface of the compiler is undocumented

Open
#31,712 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Docs
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

TypeScript Version: master

Search Terms: Symbol interface compiler

Code

https://github.com/microsoft/TypeScript/blob/15daf42b2c0bc4f06970c9e4688f1a93bff0f7a0/src/services/types.ts#L31

The "Using the Compiler API" docs have examples which use Symbols, but they don't say what they are and neither do the API docs in the source.

It'd be incredibly helpful if the core compiler types were at least minimally documented, along with a few of the TypeChecker methods.

Context:
I'm trying to use the compiler API for linting and want to verify that an identifier references a particular declaration.

Contributor guide

Open the contributing guide

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.

Research direction

Start with src/services/types.ts at the linked Symbol interface, then compare it with the Using the Compiler API wiki examples and the API docs in the source. Identify the core compiler types and a few TypeChecker methods that need minimal explanations. Done means the Symbol interface and selected methods are documented clearly enough for compiler API users to understand identifier-to-declaration checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers, documentation
Issue type
Documentation
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.