Skip to content

Commit

Permalink
Merge pull request #33 from creately/onkey-type-issue
Browse files Browse the repository at this point in the history
fix ownKey type issue
  • Loading branch information
chandika authored Oct 28, 2021
2 parents 0cc13b0 + 94860f0 commit 644e5df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2021-10-27 - v2.4.5

- Fix the ownKeys function type issue.

# 2021-05-14 - v2.4.4

- added `mergeChanges` and `unwrap` method to sakota
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@creately/sakota",
"version": "2.4.4",
"version": "2.4.5",
"description": "Proxies js objects and records all changes made on an object without modifying the object.",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class Sakota<T extends object> implements ProxyHandler<T> {
/**
* Proxy handler trap for `Reflect.ownKeys()`.
*/
public ownKeys(obj: any): (KeyType)[] {
public ownKeys(obj: any): (string | symbol)[] {
const keys = Reflect.ownKeys(obj);
if (this.diff) {
for (const key in this.diff.$set) {
Expand Down

0 comments on commit 644e5df

Please sign in to comment.