Skip to content

Commit

Permalink
[FIX] type: Fix the Alias type
Browse files Browse the repository at this point in the history
The Alias introduced to prevent Intellisense to resolve simple aliases
was broken. As a reminder, it allows us for example to type specific
string as `UID` and prevent the variables to be noted as `string`later
on in the code.

Part-of: #2300
  • Loading branch information
rrahir committed Apr 4, 2023
1 parent 4678863 commit 4289c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Range } from "./range";
* Intellisense from resolving it.
* See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
*/
export type Alias = {};
export type Alias = {} & {};

// Col/row Index
export type HeaderIndex = number & Alias;
Expand Down

0 comments on commit 4289c2a

Please sign in to comment.