AddSubtract
Type Aliases
Add
Ƭ Add<A
, B
>: Length
<[...BuildTuple<A>, ...BuildTuple<B>]>
From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468
Type parameters
Name | Type |
---|---|
A | extends number |
B | extends number |
Defined in
packages/isaacscript-common/src/types/AddSubtract.ts:2
Subtract
Ƭ Subtract<A
, B
>: A
extends A
? BuildTuple
<A
> extends [...(infer U), ...BuildTuple<B>] ? Length
<U
> : never
: never
From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468
Type parameters
Name | Type |
---|---|
A | extends number |
B | extends number |