docs(pt): translate handbook-v2/More on Functions#252
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 More on Functions from the TypeScript v2 Handbook, into
docs/documentation/pt/handbook-v2/.This continues the handbook-v2 PT-BR effort (#247–#251).
More on Functionsis page #5 in the reading order — it's a dense, central page covering function type expressions, call/construct signatures, generic functions (inference, constraints, guidelines), optional parameters, overloads,this, thevoid/object/unknown/never/Functiontypes, rest parameters/arguments and parameter destructuring.Translation choices
pt/frontmatter convention: translatedtitleandoneline, adaptedpermalinkto/pt/docs/handbook/2/functions.html.@errorsdirective lines (14 groups, verified identical to EN), every// ---cut---(13), both// ^?markers, the in-code// prettier-ignorepragma and both// @ts-expect-errordirectives (left untranslated — they're functional).<blockquote class='bg-reading'>background-reading boxes: translated the "Background Reading" label to "Leitura de apoio" and kept the MDN links unchanged.<!-- prettier-ignore -->and<!-- TODO -->HTML comments.assinatura de chamada (call signature),restrição (constraint),sobrecargas (overloads),parâmetros rest).Source
microsoft/TypeScript-Website@packages/documentation/copy/en/handbook-v2/More on Functions.mdTesting
Read side-by-side with the EN source; verified code fences (108),
---cut---(13),^?(2),@ts-expect-error(2) andbg-readingblockquotes (2) match, and adiffof all@errorscodes between EN and PT is empty. Cross-checked terminology against the already-mergedpt/pages and my sibling PRs (#247–#251).