Skip to content

[@type/node] options.filter of fs.cp() can return a Promise - #61042

Merged
typescript-bot merged 10 commits into
DefinitelyTyped:masterfrom
FuuuOverclocking:master
Jul 28, 2022
Merged

typescript-bot merged 10 commits into
DefinitelyTyped:masterfrom
FuuuOverclocking:master

Conversation

@FuuuOverclocking

@FuuuOverclocking FuuuOverclocking commented Jul 1, 2022 •

Copy link
Copy Markdown
Contributor

Please fill in this template.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tslint.json should contain { "extends": "@definitelytyped/dtslint/dt.json" }, and no additional rules.
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

options.filter of fs.cp(src, dest[, options], callback) and fsPromises.cp(src, dest[, options]) can return a Promise that resolves to true or false, according to documents.

Also change the arguments' names to match the ones in jsdoc.

@typescript-bot

typescript-bot commented Jul 1, 2022 •

Copy link
Copy Markdown
Contributor

@FuuuOverclocking Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 61042,
  "author": "FuuuOverclocking",
  "headCommitOid": "93903f7c1180c83eafc3547f56e77201dd1d5359",
  "mergeBaseOid": "9b4c4f691ac0cf6dac65d6be2067bf0523e6180b",
  "lastPushDate": "2022-07-27T06:27:35.000Z",
  "lastActivityDate": "2022-07-28T02:28:15.000Z",
  "mergeOfferDate": "2022-07-27T18:03:27.000Z",
  "mergeRequestDate": "2022-07-28T02:28:15.000Z",
  "mergeRequestUser": "FuuuOverclocking",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/fs.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/fs.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v16/fs.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/test/fs.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Microsoft",
        "DefinitelyTyped",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "n-e",
        "galkin",
        "parambirs",
        "eps1lon",
        "SimonSchick",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "ZYSzys",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "gabritto",
      "date": "2022-07-27T18:02:44.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "mcollina",
      "date": "2022-07-27T08:58:51.000Z",
      "isMaintainer": false
    },
    {
      "type": "stale",
      "reviewer": "peterblazejewicz",
      "date": "2022-07-19T18:48:47.000Z",
      "abbrOid": "0c8b400"
    },
    {
      "type": "stale",
      "reviewer": "yoursunny",
      "date": "2022-07-01T13:37:08.000Z",
      "abbrOid": "89db37b"
    }
  ],
  "mainBotCommentID": 1171903578,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Jul 1, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Jul 1, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@FuuuOverclocking The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed The CI failed When GH Actions fails Untested Change This PR does not touch tests labels Jul 1, 2022

@mcollina mcollina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jul 1, 2022
Comment thread types/node/fs.d.ts Outdated
* @default false
*/
recursive?: boolean;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing verbatimSymlinks.

Comment thread types/node/fs.d.ts Outdated
*/
recursive?: boolean;
}
export interface CopySyncOptions {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe extract the common options to CopyOptionsCommon to reduce duplication?

@typescript-bot typescript-bot removed the Owner Approved A listed owner of this package signed off on the pull request. label Jul 1, 2022
@FuuuOverclocking

Copy link
Copy Markdown
Contributor Author

@yoursunny Thanks for your correction. Now interface CopyOptionsBase includes verbatimSymlinks, while CopyOptions and CopySyncOptions extends it.

@typescript-bot

Copy link
Copy Markdown
Contributor

@yoursunny, @mcollina Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jul 1, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@mcollina Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Jul 3, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@FuuuOverclocking Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot typescript-bot removed Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. Owner Approved A listed owner of this package signed off on the pull request. labels Jul 3, 2022
@FuuuOverclocking

Copy link
Copy Markdown
Contributor Author

Hello, is anyone here? Please let me know if there is any problem with PR or merge.

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Jul 18, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Jul 19, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@FuuuOverclocking The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Jul 19, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@FuuuOverclocking The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@FuuuOverclocking

Copy link
Copy Markdown
Contributor Author

@peterblazejewicz

Now the changes have also been applied to v16.

The failure of CI seems to be caused by the new version 4.8 of TypeScript. It has nothing to do with this PR.

@mcollina mcollina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jul 19, 2022
peterblazejewicz added a commit to peterblazejewicz/DefinitelyTyped that referenced this pull request Jul 19, 2022
@peterblazejewicz peterblazejewicz mentioned this pull request Jul 19, 2022
2 tasks done
@typescript-bot typescript-bot removed Owner Approved A listed owner of this package signed off on the pull request. Maintainer Approved The CI failed When GH Actions fails labels Jul 27, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@peterblazejewicz, @mcollina, @yoursunny Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@mcollina mcollina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@typescript-bot

Copy link
Copy Markdown
Contributor

@peterblazejewicz, @yoursunny Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jul 27, 2022
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Jul 27, 2022
@typescript-bot

Copy link
Copy Markdown
Contributor

@FuuuOverclocking: Everything looks good here. I am ready to merge this PR (at 93903f7) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@microsoft, @DefinitelyTyped, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @SimonSchick, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina: you can do this too.)

@FuuuOverclocking

Copy link
Copy Markdown
Contributor Author

Ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants