Files
DefinitelyTyped/types/rimraf/rimraf-tests.ts
Scott c1cd5c4292 types(rimraf): add the missing options types (#18740)
* feat(rimraf): add the missing options types

* feat(rimraf): add tslint.json

* refactor: format code
2017-08-08 11:31:39 -07:00

11 lines
259 B
TypeScript

import rimraf = require('rimraf');
rimraf('./xyz', (err: Error) => { });
rimraf.sync('./xyz');
rimraf('./xyz', { glob: { ignore: '' } }, (err: Error) => { });
rimraf.sync('./xyz', { glob: { ignore: '' } });
rimraf.EMFILE_MAX = 0;
rimraf.BUSYTRIES_MAX = 0;