Skip to content

Docs Meeting Notes, the v2 Handbook #38919

@orta

Description

@orta
  • Date: June 3rd, 2020
  • Agenda
    1. Current handbook for v2 site 5-10min
    2. State of 'new handbook' repo vs v2 site 10min
    3. Long term goals 10min
    4. Open discussion: ~

Current Handbook

Link to the Prod handbook - v2 Site handbook index

  • For v2 Handbook is split into three sections:

    • "Get started" - setting priors before teaching "e.g. learn JS"
    • "Handbook" - A-Z of being productive
    • "Reference" - topical deep-dives
  • Sits along with:

    • "tutorials" - how do I use ts with x
    • "definition files" - example DTS and syntax overview
    • "config for TS" - it says on the box
    • "what's new" - release notes

New Handbook vs Current

Goal: when you finish reading the handbook, you shouldn't be surprised by syntax

Missing from New Handbook + Advanced Types:

A page on JS Language Extensions

Popular extensions to JS which you are likely to see, but won't be in all apps

For example, covering: decorators, JSX, Enum

Dusty Corners
  • Appendix: Dusty corners

Things which is possible to see in some codebases: Symbol, namespaces?

Extend classes page with TS additions

Highlight TS-specific class extensions separated from the main 'classes' docs

  • Parameter Properties
  • private /public / protected keywords
  • abstract keyword
  • etc
Where could @ts-ignore / @ts-expect-error live?

Could be how do I test my types? Or maybe as a part of showing 'ts always transpiles to JS'.

Import/Export

Could we have a doc around modules import/exporting, 'what is the common case'

  • I installed x, how do I get to import it
  • Bundlers
  • esmodules coming
Misc Missing
  • Polymorphic this (aka fluid interfaces)
  • Global types shipped with TS Exclude, Extract etc (in Types from Extraction )
  • tuple
  • promise / async functions
  • assertion functions
  • Mapped types
  • optional chaining

Goals once Site is Shipped

Metadata

Metadata

Assignees

No one assigned

    Labels

    Docs Meeting NotesWrite-ups on the meeting every two weeks on docs topics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions