Created
November 3, 2022 08:18
-
-
Save hades2510/733ad8c26ea4a9831401f4b8401ad11e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PartialByteNot<T extends Bit[]> = T extends [ | |
infer U extends Bit, | |
...infer R extends Bit[] | |
] | |
? [BitNot<U>, ...PartialByteNot<R>] | |
: []; | |
type ByteNot<T extends Byte> = T extends [ | |
infer U extends Bit, | |
...infer R extends Bit[] | |
] | |
? [BitNot<U>, ...PartialByteNot<R>] | |
: []; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment