Fix guidelines
This commit is contained in:
@ -127,7 +127,7 @@ Using `type` aliases in TypeScript offers several advantages over `interfaces`:
|
|||||||
|
|
||||||
Detailed discussion: https://stackoverflow.com/questions/37233735/typescript-interfaces-vs-types
|
Detailed discussion: https://stackoverflow.com/questions/37233735/typescript-interfaces-vs-types
|
||||||
|
|
||||||
**Do:**
|
**Do not:**
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
interface IRelationshipFileInfo {
|
interface IRelationshipFileInfo {
|
||||||
@ -136,7 +136,7 @@ interface IRelationshipFileInfo {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Do not:**
|
**Do:**
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
type RelationshipFileInfo = { id: number; target: string };
|
type RelationshipFileInfo = { id: number; target: string };
|
||||||
|
Reference in New Issue
Block a user