diff --git a/site/docs/05-entity-component-system/05.3-systems.mdx b/site/docs/05-entity-component-system/05.3-systems.mdx index 78745cf9e..ebc173ee6 100644 --- a/site/docs/05-entity-component-system/05.3-systems.mdx +++ b/site/docs/05-entity-component-system/05.3-systems.mdx @@ -64,9 +64,7 @@ For custom component types it is recommended you prefix your types, like `type = In this example, we create a "search" type component, that searches for a target position. Notice how this component implementation is mostly data. -```ts twoslash -// @include: ex -// ---cut--- +```typescript class SearchComponent extends ex.Component<'search'> { public readonly type = 'search' constructor(public target: ex.Vector) {