Decrement
Type Aliases
Section titled “Type Aliases”Decrement
Section titled “Decrement”Decrement<
N> =Arr<N> extends [unknown,...(infer U)] ?U["length"] :never
Defined in: packages/isaacscript-common/src/types/Decrement.ts:6
Helper type to subtract one from a number type.
From: https://stackoverflow.com/questions/54243431/typescript-increment-number-type
Type Parameters
Section titled “Type Parameters”N extends number
