Repository navigation
Package Proclaim: Make msg parameter optional for all assertions - #46905
Conversation
|
@JakeChampion 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. Code ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. Status
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": 46905,
"author": "JakeChampion",
"owners": [
"adamzerella"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "fd0b021",
"headCommitOid": "fd0b021742cfe2dc6b362c9ee7309fa0ecb6588d",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-08-19T23:06:16.000Z",
"reopenedDate": "2020-08-19T16:20:04.000Z",
"lastCommentDate": "2020-08-20T10:20:43.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46905/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"anyPackageIsNew": false,
"packages": [
"proclaim"
],
"files": [
{
"path": "types/proclaim/index.d.ts",
"kind": "definition",
"package": "proclaim"
},
{
"path": "types/proclaim/proclaim-tests.ts",
"kind": "test",
"package": "proclaim"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-08-20T10:13:13.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
|
🔔 @adamzerella — please review this PR in the next few days. Be sure to explicitly select |
|
👋 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? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
|
@JakeChampion The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
@JakeChampion The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
@JakeChampion The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
@JakeChampion Everything looks good here. Great job! I am ready to merge this PR on your behalf. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@adamzerella: you can do this too.) |
|
Ready to merge |
… optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim
…rop, fix tests by @sbusch * fix types for other components (compare with event and eventWrapper, they just have no special props) * also define props for view-specific event component override * fix withDragAndDrop type definition. disable automatic exports. * any is unnecessary here * fix tests * revert change to ViewsProps due to @eps1lon comments / #43215 * change DragAndDropCalendarProps from type to interface, as suggested by @DanielRosenwasser * 🤖 Merge PR #46905 Package Proclaim: Make msg parameter optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim * Properly describe props for (custom) View, with new test with wrong prop (expecting error). Pass generic types for event and resource at more places (and fix test). Plus: turned off automatic exports for index.d.ts aswell due to own Omit (added to keep compat with older TS versions). * typo * Revert strict views (with their disfunctional tests), but retain ViewProps for optional use (guarded with a test) Strict views cannot expressed du to current limitaion in TypeScript, see <microsoft/TypeScript#13195> Co-authored-by: Jake Champion <me@jakechampion.name>
… optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim
…ix withDragAndDrop, fix tests by @sbusch * fix types for other components (compare with event and eventWrapper, they just have no special props) * also define props for view-specific event component override * fix withDragAndDrop type definition. disable automatic exports. * any is unnecessary here * fix tests * revert change to ViewsProps due to @eps1lon comments / DefinitelyTyped#43215 * change DragAndDropCalendarProps from type to interface, as suggested by @DanielRosenwasser * 🤖 Merge PR DefinitelyTyped#46905 Package Proclaim: Make msg parameter optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim * Properly describe props for (custom) View, with new test with wrong prop (expecting error). Pass generic types for event and resource at more places (and fix test). Plus: turned off automatic exports for index.d.ts aswell due to own Omit (added to keep compat with older TS versions). * typo * Revert strict views (with their disfunctional tests), but retain ViewProps for optional use (guarded with a test) Strict views cannot expressed du to current limitaion in TypeScript, see <microsoft/TypeScript#13195> Co-authored-by: Jake Champion <me@jakechampion.name>
… optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim
…ix withDragAndDrop, fix tests by @sbusch * fix types for other components (compare with event and eventWrapper, they just have no special props) * also define props for view-specific event component override * fix withDragAndDrop type definition. disable automatic exports. * any is unnecessary here * fix tests * revert change to ViewsProps due to @eps1lon comments / DefinitelyTyped#43215 * change DragAndDropCalendarProps from type to interface, as suggested by @DanielRosenwasser * 🤖 Merge PR DefinitelyTyped#46905 Package Proclaim: Make msg parameter optional for all assertions by @JakeChampion * Make msg param optional for assertions in proclaim * Mark message and operator params of fail as optional * Update tests to check the optional parameters are indeed optionals * Make the commonjs export of proclaim point to proclaim.ok function * Add test to prove proclaim.ok points to proclaim * Properly describe props for (custom) View, with new test with wrong prop (expecting error). Pass generic types for event and resource at more places (and fix test). Plus: turned off automatic exports for index.d.ts aswell due to own Omit (added to keep compat with older TS versions). * typo * Revert strict views (with their disfunctional tests), but retain ViewProps for optional use (guarded with a test) Strict views cannot expressed du to current limitaion in TypeScript, see <microsoft/TypeScript#13195> Co-authored-by: Jake Champion <me@jakechampion.name>
I help maintain the Proclaim library
Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If changing an existing definition:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]and not for whole package so that the need for disabling can be reviewed.