Repository navigation
Add copyFile to node - #20185
Add copyFile to node#20185 1 commit merged into
Conversation
|
types/backoff/index.d.ts to author (@BendingBender). Could you review this PR? Checklist
types/commander/index.d.ts to authors (@alan-agius4 @mdezem @vvakame). Could you review this PR? Checklist
types/execa/index.d.ts to authors (@douglasduteil @BendingBender). Could you review this PR? Checklist
types/node/index.d.ts to authors (@DefinitelyTyped/DefinitelyTyped @parambirs @robdesideri @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @Tyriar @DeividasBakanas @kjin Microsoft TypeScript (account can't be detected)). Could you review this PR? Checklist
|
| * @param src A path to the source file. | ||
| * @param dest A path to the destination file. | ||
| */ | ||
| export function copyFile(src: PathLike, dest: PathLike, callback: (err: NodeJS.ErrnoException) => void): void; |
There was a problem hiding this comment.
I think it should be NodeJS.ErrnoException | null.
| * @param dest A path to the destination file. | ||
| * @param flags An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. | ||
| */ | ||
| export function copyFile(src: PathLike, dest: PathLike, flags: number, callback: (err: NodeJS.ErrnoException) => void): void; |
There was a problem hiding this comment.
I think it should be NodeJS.ErrnoException | null.
There was a problem hiding this comment.
I think you are right, but all the other callbacks are declared this way so I kept the same style
There was a problem hiding this comment.
ok fine with me. Maybe it's better to change them all via a separated PR.
|
LGTM for changes in node. |
|
@Loghorn Please fix the failures indicated in the Travis CI log. |
e547aec to
0f4d5d7
Compare
|
@Loghorn Could you remove unrelated changes? If there are test failures in other packages they should be changed in other PRs. |
|
@Andy-MS Done |
|
Thanks! |
Please fill in this template.
npm run lint package-name(ortscif notslint.jsonis present).If changing an existing definition:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }.