Research why the TypeScript team made a specific typing decision. Use when evaluating whether ts-reset should override a built-in type, or when triaging issues that propose type changes. Searches the microsoft/TypeScript repo for relevant issues, PRs, and team comments.
When evaluating whether ts-reset should override a TypeScript built-in type, research what the TypeScript team has said about it. Understanding their reasoning lets us make informed decisions — either agreeing with their trade-off or deliberately choosing a different one.
Ryan Cavanaugh (@RyanCavanaugh) is the TypeScript project lead and usually the one making final verdicts on typing decisions. His comments carry the most weight. Also look for comments from:
@DanielRosenwasser) — TS program manager@AHejlsberg) — original designer@sandersn)Use gh to search the microsoft/TypeScript repo. Try multiple queries — the issue might be about the specific method, the return type, or a broader pattern:
# Search issues by title/body
gh search issues --repo microsoft/TypeScript "Object.create return type" --limit 20
# Search with broader terms if the first query is too narrow
gh search issues --repo microsoft/TypeScript "Object.create" --limit 20
Once you have candidate issues, fetch comments and filter for TypeScript team members:
# Get Ryan's comments on a specific issue
gh api repos/microsoft/TypeScript/issues/{number}/comments \
--jq '.[] | select(.user.login == "RyanCavanaugh") | {html_url, body}'
# Check for team comments more broadly
gh api repos/microsoft/TypeScript/issues/{number}/comments \
--jq '.[] | select(.user.login == "RyanCavanaugh" or .user.login == "DanielRosenwasser" or .user.login == "sandersn" or .user.login == "ahejlsberg") | {user: .user.login, html_url, body}'
Many typing decisions were tried, broke things, and got reverted. This history is critical:
# Search for PRs related to the topic
gh search prs --repo microsoft/TypeScript "Object.create" --limit 20
# Check if a PR was later reverted
gh api repos/microsoft/TypeScript/pulls/{number} --jq '{title, state, merged_at, body}'
TypeScript team members often state general principles on tangentially related issues. If the specific method doesn't have much discussion, search for related patterns:
# Example: if researching Object.create, also check Object.getPrototypeOf,
# or broader topics like "prototype typing" or "returns any"
gh search issues --repo microsoft/TypeScript "Object.getPrototypeOf any" --limit 10
If GitHub search doesn't surface enough, use web search: