Skip to content

Conversation

@YoniKiriaty
Copy link
Contributor

No description provided.

@YoniKiriaty YoniKiriaty self-assigned this Dec 31, 2025
@YoniKiriaty YoniKiriaty added the feature A new Feature! label Dec 31, 2025
Copy link

@yoavs8 yoavs8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yoni stop being an egg and fix!

tbaRouter.post(
"/matches",
verifyBody(matchesProps),
(req: Request<any, any, TBAMatchesProps>, res) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider switch to specific types instead of any


export type TBAMatchesProps = t.TypeOf<typeof matchesProps>;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheater!!!!

headers: { "X-TBA-Auth-Key": TBA_KEY },
...config,
})
.then((value) => value.data as T);

Check warning

Code scanning / ESLint

Disallow type assertions that narrow a type Warning

Unsafe assertion from any detected: consider using type guards or a safer assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new Feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants