Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 18, 2023
1 parent 5b9a6e3 commit d1ec894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
"p-event": "^5.0.1",
"tempy": "^3.0.0",
"ts-node": "^10.9.1",
"tsd": "^0.25.0",
"typescript": "^4.9.4",
"xo": "^0.53.1"
"tsd": "^0.28.1",
"typescript": "^5.1.6",
"xo": "^0.54.0"
},
"sideEffects": false,
"ava": {
Expand Down
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default class Conf<T extends Record<string, any> = Record<string, unknown
delete(key: string): void {
const {store} = this;
if (this.#options.accessPropertiesByDotNotation) {
deleteProperty(store, key as string);
deleteProperty(store, key);
} else {
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
delete store[key];
Expand Down

0 comments on commit d1ec894

Please sign in to comment.