-
Notifications
You must be signed in to change notification settings - Fork 541
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
Update eslint config in packages/runtime/runtime-utils to extend "recommended" base config #23956
Open
RishhiB
wants to merge
24
commits into
microsoft:main
Choose a base branch
from
RishhiB:UpdateESlintToRecommendedRuntimeUtils
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c773ae2
Update eslint config in packages/runtime/runtime-utils to extend "rec…
RishhiB d9cf56c
Merge branch 'main' into UpdateESlintToRecommendedRuntimeUtils
RishhiB 46dad36
breaking types
RishhiB e2caaa5
other package changes
RishhiB e4453e0
undo utf8 changes
RishhiB dfb602d
undo more utf-8 changes
RishhiB dc658b6
Merge branch 'main' into UpdateESlintToRecommendedRuntimeUtils
RishhiB 1066dee
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB 950f1df
Update packages/runtime/runtime-utils/src/test/handles.spec.ts
RishhiB d8e3a33
Update packages/runtime/runtime-utils/src/test/handles.spec.ts
RishhiB 2e4aca6
Merge branch 'main' into UpdateESlintToRecommendedRuntimeUtils
RishhiB 85e31a7
helper function
RishhiB 270a49b
format
RishhiB 61c4bfe
Merge branch 'main' into UpdateESlintToRecommendedRuntimeUtils
RishhiB 65bba63
Update packages/runtime/runtime-utils/src/requestParser.ts
RishhiB 5bedcb9
Update packages/runtime/runtime-utils/src/summaryUtils.ts
RishhiB 741db61
Update packages/runtime/runtime-utils/src/summaryUtils.ts
RishhiB cae0dff
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB a15e9bc
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB 674195c
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB 7a49240
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB 2882a42
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB 90ae168
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB d92d273
Update packages/runtime/runtime-utils/src/dataStoreHelpers.ts
RishhiB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,11 @@ export interface ISerializedHandle { | |
* Is the input object a @see ISerializedHandle? | ||
* @internal | ||
*/ | ||
export const isSerializedHandle = (value: any): value is ISerializedHandle => | ||
value?.type === "__fluid_handle__"; | ||
export const isSerializedHandle = (value: unknown): value is ISerializedHandle => | ||
typeof value === "object" && | ||
value !== null && | ||
"type" in value && | ||
value.type === "__fluid_handle__"; | ||
Comment on lines
+27
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit torn here. Not sure that this is better than |
||
|
||
/** | ||
* Setting to opt into compatibility with handles from before {@link fluidHandleSymbol} existed (Fluid Framework client 2.0.0-rc.3.0.0 and earlier). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Did it complain about this? The
snapshot
property matches the types expected by the function parameter...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.
processAttachMessageGCData
takes paramsnapshot
of typeITree
orundefined
butattachMessage.snapshot
is typeITree
ornull
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.
Oh, I hadn't gotten to the fact that this PR changes the function signature too 😄. The function changes seem fine since nothing inside the function has special casing for
snapshot === null
... so yeah, I think this is fine. Double checking, @agarwal-navin and @markfields, any concerns here?