Skip to content

Conversation

@sandersn
Copy link
Contributor

These types now only work in 3.9 and above -- in 3.8 and before, the existing types are fine and don't need to be changed; for 3.9 and above, CSS is now a namespace, so this package's CSS needs to be a namespace too.

These types are so little used that I don't want to spend the effort to maintain pre-3.9 versions as well, although it would be possible to maintain them in a v3.8 directory if needed.

@typescript-bot typescript-bot added the New Definition This PR creates a new definition package. label May 26, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented May 26, 2020

@sandersn Thank you for submitting 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.

Status

  • ✅ No merge conflicts
  • ❌ Continuous integration tests have finished
  • ✅ Only a DT maintainer can merge changes when there are new packages added

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 45076,
  "author": "sandersn",
  "owners": [],
  "dangerLevel": "ScopedAndConfiguration",
  "headCommitAbbrOid": "7fd2367",
  "headCommitOid": "7fd236736e7452cb201de5e4ad897879ff6fbdc2",
  "mergeIsRequested": false,
  "stalenessInDays": 0,
  "lastCommitDate": "2020-06-03T00:57:47.000Z",
  "lastCommentDate": "2020-05-27T23:06:07.000Z",
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/45076/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "anyPackageIsNew": true,
  "packages": [
    "w3c-css-typed-object-model-level-1"
  ],
  "files": [
    {
      "filePath": "types/w3c-css-typed-object-model-level-1/index.d.ts",
      "kind": "definition",
      "package": "w3c-css-typed-object-model-level-1"
    },
    {
      "filePath": "types/w3c-css-typed-object-model-level-1/tsconfig.json",
      "kind": "package-meta",
      "package": "w3c-css-typed-object-model-level-1"
    },
    {
      "filePath": "types/w3c-css-typed-object-model-level-1/tslint.json",
      "kind": "package-meta",
      "package": "w3c-css-typed-object-model-level-1"
    },
    {
      "filePath": "types/w3c-css-typed-object-model-level-1/w3c-css-typed-object-model-level-1-tests.ts",
      "kind": "test",
      "package": "w3c-css-typed-object-model-level-1"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "unknown",
  "lastReviewDate": "2020-06-03T00:57:50.000Z",
  "reviewersWithStaleReviews": [
    {
      "reviewedAbbrOid": "e73eea2",
      "reviewer": "peterblazejewicz",
      "date": "2020-05-27T23:06:08Z"
    }
  ],
  "approvalFlags": 4,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to w3c-css-typed-object-model-level-1 with its source on master.

Comparison details 📊
Batch compilation
Type count 10600
Assignability cache size 34588
Language service measurements
Samples taken 675
Identifiers in tests 675
getCompletionsAtPosition
    Mean duration (ms) 292.2
    Mean CV 10.9%
    Worst duration (ms) 379.2
    Worst identifier mmVar
getQuickInfoAtPosition
    Mean duration (ms) 283.9
    Mean CV 11.1%
    Worst duration (ms) 466.1
    Worst identifier createElement
System information
Node version v12.16.3
CPU count 2
CPU speed 2.095 GHz
CPU model Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1082-azure

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label May 27, 2020
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <[email protected]>
@rbuckton rbuckton merged commit da797b1 into master Jun 3, 2020
sandersn added a commit that referenced this pull request Jun 3, 2020
jjballano-qatium pushed a commit to jjballano-qatium/DefinitelyTyped that referenced this pull request Jun 16, 2020
* Revert "Remove CSSOM types"

This reverts commit cbce1f5.

* convert to namespace

* Update types/w3c-css-typed-object-model-level-1/index.d.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <[email protected]>

Co-authored-by: Ron Buckton <[email protected]>
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <[email protected]>
jjballano-qatium pushed a commit to jjballano-qatium/DefinitelyTyped that referenced this pull request Jun 16, 2020
ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
* Revert "Remove CSSOM types"

This reverts commit cbce1f5.

* convert to namespace

* Update types/w3c-css-typed-object-model-level-1/index.d.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <[email protected]>

Co-authored-by: Ron Buckton <[email protected]>
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <[email protected]>
ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
@elibarzilay elibarzilay deleted the revert-delete-of-CSS-typed-OM branch November 29, 2020 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Definition This PR creates a new definition package. Other Approved This PR was reviewed and signed-off by a community member.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants