-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
DocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScriptRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
Suggestion
π Search Terms
List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.
asserts, narrowing, property
β Viability Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
β Suggestion
Add asserts
examples in the handbook to be properly indexed in the Search box. If there is not any specific reason for the absence of this feature in the examples I could make a PR
π Motivating Example
Currently asserts
exists only in release notes of 3.7
and cannot find examples in handbook.
π» Use Cases
Have asserts
indexed in search box and exist in handbook, so we know that this functionality exists, without finding randomly through google searches.
zardoy, PhilippDehler, tonivj5 and kj
Metadata
Metadata
Assignees
Labels
DocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScriptRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone