-
Notifications
You must be signed in to change notification settings - Fork 536
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
refactor(shared-object-base): Move to recommended eslint base config #23233
Merged
Merged
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7f57877
Update eslint config
alexvy86 8e94624
Automated fixes (some manual adjustment)
alexvy86 0dbb9b3
Fixing lint violations - part 1
alexvy86 cc39f9a
Fixing lint violations - part 2
alexvy86 b655875
Fixing lint violations - part 3
alexvy86 4b96932
WIP
alexvy86 483b1ed
Compilation works again
alexvy86 10031ac
Cleanup unused disable
alexvy86 e0afcf7
Address sharedObject.ts
alexvy86 a763db8
Build successful!
alexvy86 e7f4f2e
Remove old comment
alexvy86 f41a546
Typo
alexvy86 de3d53b
Update generic type
alexvy86 106fd2b
Adding ADO item
alexvy86 2e289a6
Undo potentially legacy breaking changes
alexvy86 d074520
Undo more legacy breaking changes
alexvy86 950843f
Fixes
alexvy86 564ecc8
Fix in test
alexvy86 d5e0c82
Remove empty line
alexvy86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ import { FluidHandleBase, responseToException } from "@fluidframework/runtime-ut | |
* IFluidHandle can be retrieved by calling `get` on it. | ||
*/ | ||
export class RemoteFluidObjectHandle extends FluidHandleBase<FluidObject> { | ||
public get IFluidHandleContext() { | ||
alexvy86 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return this; | ||
} | ||
|
||
public readonly isAttached = true; | ||
private objectP: Promise<FluidObject> | undefined; | ||
|
||
|
@@ -52,7 +48,7 @@ export class RemoteFluidObjectHandle extends FluidHandleBase<FluidObject> { | |
}; | ||
this.objectP = this.routeContext.resolveHandle(request).then<FluidObject>((response) => { | ||
if (response.mimeType === "fluid/object") { | ||
const fluidObject: FluidObject = response.value; | ||
const fluidObject: FluidObject = response.value as FluidObject; | ||
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. Any validation we can do here? 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. Not familiar with the space, but I think the existing check for mimeType is enough? |
||
return fluidObject; | ||
} | ||
throw responseToException(response, request); | ||
|
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.
Updating an input type on free functions shouldn't be breaking.