Skip to content

Commit

Permalink
fix(FileItem): update trash import
Browse files Browse the repository at this point in the history
  • Loading branch information
sleistner committed May 29, 2019
1 parent b433f3b commit 850dfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Item.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs-extra';
import * as path from 'path';

import trash = require('trash');
import trash from 'trash';

export class FileItem {

Expand Down Expand Up @@ -44,7 +44,7 @@ export class FileItem {
}

public async remove(useTrash = false): Promise<FileItem> {
await useTrash ? trash([this.path]) : fs.remove(this.path);
await useTrash ? trash(this.path) : fs.remove(this.path);

return this;
}
Expand Down

0 comments on commit 850dfff

Please sign in to comment.