basarat / basarat/typescript-book

Crazy interface exmaple does not compile

Open
#317 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Hi Basarat,
I notice that on the interfaces.md file the interface crazy could not be implemented in a class (please check here: https://github.com/Microsoft/TypeScript/issues/8917) and I made a fix with some text to explain better the pattern.
I also fixed the constructor to not return any value as it seems not to be possible. Please check here: https://github.com/Microsoft/TypeScript/issues/11588

I tried to make a pull request but it seems I got no permissions.

Contributor guide

Open the contributing guide

Research direction

Start with the crazy interface and constructor examples in interfaces.md, then review the linked TypeScript issues for the reported constraints. Done means the examples can be implemented or compiled as described and the accompanying explanation accurately reflects the limitations.

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
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.