Skip to content

Commit 28746fd

Browse files
committed
docs: update changelog
1 parent b754aad commit 28746fd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ const MyEnum = Enum({
3333

3434
This addition is ideal for rapid prototyping and integration with legacy systems that don't support contemporary module resolution. The UMD builds are accessible in the `umd` directory of the npm package or can be directly downloaded from [Github Releases](https://github.com/shijistar/enum-plus/releases).
3535

36+
- The way of extending enums has been changed.
37+
38+
```diff
39+
-declare global {
40+
+declare module 'enum-plus-extend' {
41+
interface EnumExtension<T, K, V> {
42+
isWeekend(value: number): boolean;
43+
}
44+
}
45+
```
46+
3647
### Breaking Changes
3748

3849
- 💣 the following deprecated methods are removed:

0 commit comments

Comments
 (0)