Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Nov 1, 2023
1 parent 45ced85 commit cc25d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mobx/src/types/observableannotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ function decorate_20223_(
context: ClassAccessorDecoratorContext | ClassFieldDecoratorContext
) {
if (__DEV__) {
if (context.kind === "field")
if (context.kind === "field") {
throw die(
`Please use \`@observable accessor ${String(
context.name
)}\` instead of \`@observable ${String(context.name)}\``
)
}
assert20223DecoratorType(context, ["accessor"])
}

Expand Down

0 comments on commit cc25d4b

Please sign in to comment.