You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
After validator.validate<GetValidatorsByStakeRequest>(getValidatorsByStakeRequestSchema, ctx.params) type of ctx.params should be inferred correctly according to the schema/type provided.
Actual behavior
The type is incorrectly inferred as {} and linter complains. Invalid type "{}" of template literal expression. Argument of type '{}' is not assignable to parameter of type 'number'
Casting is needed. ctx.params.limit as number | undefined
Steps to reproduce
L224 in framework/modules/pos/endpoint.ts
Which version(s) does this affect? (Environment, OS, etc...)
development
The text was updated successfully, but these errors were encountered:
Expected behavior
After
validator.validate<GetValidatorsByStakeRequest>(getValidatorsByStakeRequestSchema, ctx.params)
type ofctx.params
should be inferred correctly according to the schema/type provided.Actual behavior
The type is incorrectly inferred as
{}
and linter complains.Invalid type "{}" of template literal expression.
Argument of type '{}' is not assignable to parameter of type 'number'
Casting is needed.
ctx.params.limit as number | undefined
Steps to reproduce
L224 in
framework/modules/pos/endpoint.ts
Which version(s) does this affect? (Environment, OS, etc...)
development
The text was updated successfully, but these errors were encountered: