Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Emiyaaaaa committed Apr 22, 2024
1 parent c099652 commit 4fcf59b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/is-float.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ Use-case:
```
type Float = IsFloat<1.5>;
//=> true
type IntegerWithDecimal = IsInteger<1.0>;
//=> false
type NegativeFloat = IsInteger<-1.5>;
//=> true
type Infinity_ = IsInteger<Infinity>;
//=> false
```
Expand Down
7 changes: 6 additions & 1 deletion source/is-integer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ Use-case:
```
type Integer = IsInteger<1>;
//=> true
type IntegerWithDecimal = IsInteger<1.0>;
//=> true
type NegativeInteger = IsInteger<-1>;
//=> true
type Float = IsInteger<1.5>;
//=> false
//=> supported non-decimal numbers
// Supported non-decimal numbers
type OctalInteger: IsInteger<0o10>;
//=> true
type BinaryInteger: IsInteger<0b10>;
//=> true
type HexadecimalInteger: IsInteger<0x10>;
//=> true
```
Expand Down

0 comments on commit 4fcf59b

Please sign in to comment.