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: odoo/o-spreadsheet#2300
  • Loading branch information
Topdev97 committed Apr 4, 2023
1 parent 8d85f13 commit 9ab5e66
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 9ab5e66

Please sign in to comment.