clean-code-typescript
clean-code-typescript copied to clipboard
Clean Code concepts adapted for TypeScript
Hi! Thank you for this repo, it is really useful :) I would like to add a complete example of the use of clean code and clean architecture concepts (by...
`type MenuConfig = { title?: string, body?: string, buttonText?: string, cancellable?: boolean }; function createMenu({ title = 'Foo', body = 'Bar', buttonText = 'Baz', cancellable = true }: MenuConfig) {...
Function arguments (2 or fewer ideally) - Talks about destructing but I don't see destructing used
In the example of "Function arguments (2 or fewer ideally)" There is a talk about destrcuting, which to what I know is: ``` const object = {a: 1, b: 2};...
Add more samples and description to `Objects and Data Structures` about builtin types in TypeScript, like the `Partial`, `ReadonlyArray` etc.
Should we cover [generics](https://www.typescriptlang.org/docs/handbook/generics.html)?