docs(pt): translate handbook-v2/Narrowing#251
Open
guuszz wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Brazilian Portuguese translation of Narrowing from the TypeScript v2 Handbook, into
docs/documentation/pt/handbook-v2/.This continues the handbook-v2 PT-BR effort (#247 Understanding Errors, #248 The Handbook, #249 Basics, #250 Everyday Types).
Narrowingis page #4 in the reading order and one of the most important pages in the whole handbook — it coverstypeofguards, truthiness, equality, theinoperator,instanceof, type predicates, discriminated unions,neverand exhaustiveness checking.Translation choices
pt/frontmatter convention: translatedtitleandoneline, adaptedpermalinkto/pt/docs/handbook/2/narrowing.html.@errorsdirective lines (codes verified identical to EN), every// ---cut---(12 of them), and all 26 positional query markers (// ^?) byte-for-byte, so the interactive type-display examples still render.{class: "do-not-do-this"},<!-- prettier-ignore -->and<!-- TODO -->.// DON'T DO THIS! / KEEP READING→// NÃO FAÇA ISSO! / CONTINUE LENDO, keeping the!!!!alignment); identifiers, strings and sample values left unchanged.guarda de tipo (type guard),estreitamento (narrowing),união discriminada (discriminated union),predicado de tipo (type predicate)).Source
microsoft/TypeScript-Website@packages/documentation/copy/en/handbook-v2/Narrowing.mdTesting
Read side-by-side with the EN source; verified code fences (70),
---cut---count (12),^?marker count (26) and all@errorscodes are identical between EN and PT. Cross-checked terminology against the already-mergedpt/pages and my sibling PRs in this series (#247–#250).