Skip to content

Commit 973f5d5

Browse files
authored
Not much can be done
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
1 parent 0c5b040 commit 973f5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type Bit = 0 | 1
2-
export type Bits = Array<Bit>
3-
export type BooleanBits = Array<boolean>
2+
export type Bits = Bit[]
3+
export type BooleanBits = boolean[]
44
export type Byte = [Bit, Bit, Bit, Bit, Bit, Bit, Bit, Bit]
55
export type Nibble = [Bit, Bit, Bit, Bit]
66

0 commit comments

Comments
 (0)