Skip to content

Commit

Permalink
prefer primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
JonataB committed Dec 4, 2024
1 parent dc6c1c3 commit e1ddfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-indexed-db/src/lib/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { finalize } from 'rxjs/operators';
import { closeDatabase, openedDatabases } from './ngx-indexed-db';

export function CloseDbConnection(): MethodDecorator {
return function (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor {
return function (_target: object, _propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor {
const originalMethod = descriptor.value;
descriptor.value = function (...args: unknown[]) {
const result = originalMethod.apply(this, args);
Expand Down

0 comments on commit e1ddfbe

Please sign in to comment.