Skip to content

Commit

Permalink
Updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Nazario committed Dec 1, 2020
1 parent a091fdc commit a7e9079
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@ declare global {
readonly isMultipleOf: (number: number) => boolean;
readonly isZero: boolean;
}

// static properties (e.x. Number.zero)
interface NumberConstructor {
readonly zero: 0;
}
}
```

```typescript
declare global {
// static properties (e.x. Boolean.random())
interface BooleanConstructor {
readonly random: () => boolean;
}
}
```

Expand Down

0 comments on commit a7e9079

Please sign in to comment.