* Convert fully to protobuf (was partially JSON) * Handle all floating promises * Remove stringified proto from trace logging It wasn't proving to be very useful.
13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
import * as trash from "trash";
|
|
import { TrashModuleProxy } from "../../node/modules/trash";
|
|
|
|
// tslint:disable completed-docs
|
|
|
|
export class TrashModule {
|
|
public constructor(private readonly proxy: TrashModuleProxy) {}
|
|
|
|
public trash = (path: string, options?: trash.Options): Promise<void> => {
|
|
return this.proxy.trash(path, options);
|
|
}
|
|
}
|