Update typescript.md
Without <{}> TypeScript compiler shows this error: Generic type 'NavigationContainerRef' requires 1 type argument(s).ts(2314)
READ ME PLEASE
TL;DR: Make sure to add your changes to versioned docs
Thanks for opening a PR!
The docs cover several versions of react-navigation, and in some cases there are several files (for version 1, version 2 and etc.) that all describe a single page of the docs (eg. "Getting Started").
Please make sure that the edit you're making in docs/file-you-edited.md is also included in the file for the correct version, eg. /versioned_docs/version-3.x/file-you-edited.md for version 3. If such file doesn't exist, please create it. :+1:
Deploy Preview for react-navigation-docs failed.
| Name | Link |
|---|---|
| Latest commit | 3c079587e8dde847c0f7063e1377f00fb5cb3937 |
| Latest deploy log | https://app.netlify.com/sites/react-navigation-docs/deploys/66e2d8df56db530008bf2908 |
Thanks for the PR. This page is for 5.x where NavigationContainerRef didn't accept any parameter, so this is not correct. The documentation for 6.x and onwards already includes the parameter.