isBinaryFixedPoint
Type guard that refines an unknown value to a BinaryFixedPoint.
Accepts the same partial-positional shape arguments as
assertIsBinaryFixedPoint and returns true if the assertion
would pass, false otherwise.
Type Parameters
| Type Parameter | Default type |
|---|---|
TSignedness extends Signedness | Signedness |
TTotalBits extends number | number |
TFractionalBits extends number | number |
Parameters
| Parameter | Type |
|---|---|
value | unknown |
signedness? | TSignedness |
totalBits? | TTotalBits |
fractionalBits? | TFractionalBits |
Returns
value is BinaryFixedPoint<TSignedness, TTotalBits, TFractionalBits>