-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Type upgrades for @tonic-ui/react v2 and @tonic-ui/react-icons #69669
Conversation
@ZachLegros Thank you for submitting this PR! This is a live comment which I will keep updated. 2 packages in this PR
Code ReviewsThis 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
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": 69669,
"author": "ZachLegros",
"headCommitOid": "b79b895a38119b47db0190f3f0fd6877be4ff8be",
"mergeBaseOid": "f6d4d15522356eba4a0267142834e3abc6b603fc",
"lastPushDate": "2024-05-23T13:17:44.000Z",
"lastActivityDate": "2024-05-23T23:54:13.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "tonic-ui__react-icons",
"kind": "add",
"files": [
{
"path": "types/tonic-ui__react-icons/.eslintrc.json",
"kind": "package-meta",
"suspect": "edited"
},
{
"path": "types/tonic-ui__react-icons/.npmignore",
"kind": "package-meta-ok"
},
{
"path": "types/tonic-ui__react-icons/index.d.ts",
"kind": "definition"
},
{
"path": "types/tonic-ui__react-icons/package.json",
"kind": "package-meta-ok"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/.eslintrc.json",
"kind": "package-meta",
"suspect": "edited"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/README.md",
"kind": "markdown"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/base.d.ts.template",
"kind": "package-meta",
"suspect": "edited"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/icon.d.ts.template",
"kind": "package-meta",
"suspect": "edited"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/index.ts",
"kind": "test"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/package.json",
"kind": "package-meta-ok"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/tmicon.d.ts",
"kind": "definition"
},
{
"path": "types/tonic-ui__react-icons/scripts/generate-definitions/tsconfig.json",
"kind": "package-meta",
"suspect": "couldn't parse json"
},
{
"path": "types/tonic-ui__react-icons/tonic-ui__react-icons-tests.tsx",
"kind": "test"
},
{
"path": "types/tonic-ui__react-icons/tsconfig.json",
"kind": "package-meta",
"suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) (check: `compilerOptions.types`)"
}
],
"owners": [],
"addedOwners": [
"ZachLegros",
"derekhawker"
],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
},
{
"name": "tonic-ui__react",
"kind": "edit",
"files": [
{
"path": "types/tonic-ui__react/index.d.ts",
"kind": "definition"
},
{
"path": "types/tonic-ui__react/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"derekhawker",
"ZachLegros"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "changereq",
"reviewer": "jakebailey",
"date": "2024-05-23T23:13:20.000Z"
}
],
"mainBotCommentID": 2127089876,
"ciResult": "fail",
"ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/b79b895a38119b47db0190f3f0fd6877be4ff8be/checks?check_suite_id=24120719376"
} |
🔔 @derekhawker — please review this PR in the next few days. Be sure to explicitly select |
@ZachLegros 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. |
@ZachLegros 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. |
@ZachLegros 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. |
@ZachLegros 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. |
@ZachLegros 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. |
@ZachLegros 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. |
declare module '@trendmicro/tmicon' { | ||
const icons: Array<{ name: string }>; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scripts can't contain dts files, they will be published. You'll need to remove this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZachLegros You work at Trend Micro, so presumably you also publish the packages in the @trendmicro
and @tonic-ui
scope. Can you just publish your types directly? DT is mainly for people contributing types to packages they don't own and can't add types to, but it's a little weird to publish types for packages you own on DT.
@ZachLegros One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
I do work at Trend Micro, but the @trendmicro/ and @tonic-ui/ repos are owned by other teams. Me and my coworker are writing types for @tonic-ui/ independently since TonicUI is a JS-only codebase and doesn't have plans to add TS to the library in the near future. Also, this PR aims to add typings to a new package Thank you. |
I would split them, yes. DT doesn't typically allow types for prereleases. |
Please fill in this template.
pnpm test <package to test>
.Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.If changing an existing definition:
package.json
.