microsoft / microsoft/TypeScript-Website
Docs: type 'unknown' missing from 'Everydad Types'
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.6k
- Forks
- 1.5k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 7
Description
Can someone please add the definition of the 'unknown' type and clearly describe the purpose of it, and how is differs from the type 'any'.
Sample coding show proper use of 'unknown' as well as the context to use it over 'any' would also be benificial.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the TypeScript website page named “Everydad Types” in the issue title and review its existing type definitions. Add the missing “unknown” definition, explain how it differs from “any,” and include usage examples showing when to prefer it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100