Skip to content

Commit

Permalink
Merge pull request #1862 from Oblosys/fix-mixins-example
Browse files Browse the repository at this point in the history
Remove typeof in Spritable example
  • Loading branch information
Orta Therox committed Jun 8, 2021
2 parents a8bacd9 + 23d22fe commit b5a86f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/documentation/copy/en/reference/Mixins.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Sprite {
}
// ---cut---
type Positionable = GConstructor<{ setPos: (x: number, y: number) => void }>;
type Spritable = GConstructor<typeof Sprite>;
type Spritable = GConstructor<Sprite>;
type Loggable = GConstructor<{ print: () => void }>;
```

Expand All @@ -143,7 +143,7 @@ class Sprite {
}
}
type Positionable = GConstructor<{ setPos: (x: number, y: number) => void }>;
type Spritable = GConstructor<typeof Sprite>;
type Spritable = GConstructor<Sprite>;
type Loggable = GConstructor<{ print: () => void }>;
// ---cut---

Expand Down

0 comments on commit b5a86f4

Please sign in to comment.