Skip to content

Commit

Permalink
Not much can be done
Browse files Browse the repository at this point in the history
So generally speaking other than using the slightly shorter array on the Bits and BinaryBits types

Not much can be done regarding the unsigned int types.
Your salvation may come with this proposal should the day come microsoft/TypeScript#15480

But Typescript will probably not support base uintx types as this discussion ended 
microsoft/TypeScript#4639
essentially JS is expecting BigInt and other types may be added someday and so no extra primitives will be added until T39 adds them

on a side note this regex proposal should it get implemented would be interesting 
microsoft/TypeScript#6579
  • Loading branch information
amrdraz committed Oct 3, 2018
1 parent 0c5b040 commit 973f5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type Bit = 0 | 1
export type Bits = Array<Bit>
export type BooleanBits = Array<boolean>
export type Bits = Bit[]
export type BooleanBits = boolean[]
export type Byte = [Bit, Bit, Bit, Bit, Bit, Bit, Bit, Bit]
export type Nibble = [Bit, Bit, Bit, Bit]

Expand Down

0 comments on commit 973f5d5

Please sign in to comment.