microsoft / microsoft/TypeScript

Document how (lazy) type checking works

Open
#38,737 0 comments 1 reaction 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

Before the whole compiler and its API is documented, could you add a few details about the type checker:

  • What normally forces the type checking and inference of a name?
  • How TSC forces all types to be checked?
  • What are the options for an application using the compiler API to control/force type checking?

Potentially relevant wiki pages for this information:

Search Terms

documentation, type check, laziness, architecture, compiler API

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 the TypeScript wiki pages Architectural Overview, Using the Compiler API, and Compiler Internals. Trace how lazy type checking is described there and document what normally triggers checking, how TSC forces checking, and how compiler API applications can control it; done means all three questions are answered in the relevant wiki documentation.

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.