Skip to content

Commit

Permalink
docs: fix docs typo 'baed' -> 'based'. (#603)
Browse files Browse the repository at this point in the history
Co-authored-by: James Meyers <james.meyers@emberex.com>
  • Loading branch information
jmeyers91 and James Meyers committed Apr 30, 2022
1 parent 499c605 commit 396fddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/src/content/pages/advanced/typescript/en.md
Expand Up @@ -183,7 +183,7 @@ export type AppAbility = Ability<Abilities>;
export const AppAbility = Ability as AbilityClass<AppAbility>;
```

This simple pattern comes to TypeScript from Scala, and it's a way to pair together types and objects. In TypeScript, values and types live in a separate namespaces, this allows to use the same name for a type and a class. TypeScript understands which one to use baed on the context.
This simple pattern comes to TypeScript from Scala, and it's a way to pair together types and objects. In TypeScript, values and types live in a separate namespaces, this allows to use the same name for a type and a class. TypeScript understands which one to use based on the context.

## AbilityBuilder type inference

Expand Down

0 comments on commit 396fddc

Please sign in to comment.