Skip to content

Commit

Permalink
fix: resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kubabutkiewicz committed Oct 21, 2024
1 parent b45d55a commit 44f08d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contributingGuides/STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ report ? report.reportID : '-1';

### Extract complex types

All complex types, such as objects and callbacks in function parameters, should be extracted into separate type definitions.
Complex types, such as objects in function parameters, should be extracted into separate type definitions. Callbacks in function parameters should be extracted if they have possibility to be reused somewhere else.

``` ts
```ts
// BAD
function foo(param1: string, param2: {id: string}) {...};

Expand Down

0 comments on commit 44f08d7

Please sign in to comment.