Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

It seems like TypeScript isn't treating an expression where every node is const as const:

const a = 1; // a: 1
const b = 2; // b: 2
const c = a + b; // c: number

This caused DiagonalDirections type to be a number instead of a union of consts.

Test plan

Check the inferred type of DiagonalDirections

@j-piasecki j-piasecki merged commit 83110b2 into next Nov 3, 2025
1 check passed
@j-piasecki j-piasecki deleted the @jpiasecki/fix-diagonal-gesture-type branch November 3, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants