Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type definitions for postcss-resolve-nested-selector #64721

Conversation

remcohaszing
Copy link
Contributor

This has been extracted from
https://github.com/stylelint/stylelint/blob/main/types/postcss-resolve-nested-selector/index.d.ts.

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.

@ybiquitous I added you as a co-maintainer, because you wrote them originally in the Stylelint repository. If you don’t want this, please let me know and I’ll remove it.

@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 13, 2023

@remcohaszing Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

This PR adds a new definition, so it needs to be reviewed by a DT maintainer 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
  • ✅ Only a DT maintainer can approve changes when there are new packages added

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": 64721,
  "author": "remcohaszing",
  "headCommitOid": "40ff2f70b9366ef4d039532ab12595dda7ed9909",
  "mergeBaseOid": "559164afb72dfe6b648927e83cb394a1cb938ad9",
  "lastPushDate": "2023-03-13T15:07:59.000Z",
  "lastActivityDate": "2023-03-13T21:48:13.000Z",
  "mergeOfferDate": "2023-03-13T20:21:35.000Z",
  "mergeRequestDate": "2023-03-13T21:48:13.000Z",
  "mergeRequestUser": "remcohaszing",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "postcss-resolve-nested-selector",
      "kind": "add",
      "files": [
        {
          "path": "types/postcss-resolve-nested-selector/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/postcss-resolve-nested-selector/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/postcss-resolve-nested-selector/postcss-resolve-nested-selector-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/postcss-resolve-nested-selector/tsconfig.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) (check: `compilerOptions.lib.0`)"
        },
        {
          "path": "types/postcss-resolve-nested-selector/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [],
      "addedOwners": [
        "remcohaszing",
        "ybiquitous"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "jakebailey",
      "date": "2023-03-13T20:20:48.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1466332821,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added New Definition This PR creates a new definition package. Check Config Changes a module config files labels Mar 13, 2023
@typescript-bot
Copy link
Contributor

🔔 @remcohaszing — you're the only owner, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)

@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Mar 13, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Mar 13, 2023
"compilerOptions": {
"module": "commonjs",
"lib": [
"es2018"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has been altered, because postcss depends on it.

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Mar 13, 2023
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Mar 13, 2023
@typescript-bot
Copy link
Contributor

@remcohaszing: Everything looks good here. I am ready to merge this PR (at 40ff2f7) 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! ❤️

@remcohaszing
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Mar 13, 2023
@typescript-bot typescript-bot merged commit 6384e6e into DefinitelyTyped:master Mar 13, 2023
@remcohaszing remcohaszing deleted the postcss-resolve-nested-selector branch March 13, 2023 21:53
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check Config Changes a module config files Maintainer Approved New Definition This PR creates a new definition package. 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.

None yet

3 participants