-
Notifications
You must be signed in to change notification settings - Fork 3
cline changes #23
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
base: formula-editor
Are you sure you want to change the base?
cline changes #23
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| export declare class Cursor { | ||
| /** | ||
| * The functions `getCurrentCursorPosition`, `setCurrentCursorPosition` and their | ||
| * helpers `_createRange` and `_isChildOf` are not used for caret manipulation, | ||
| * but are still in the code for future reference, if the functionality breaks | ||
| * somehow in some obsolete browser. | ||
| */ | ||
| static getCurrentCursorPosition(parentElement: any): number; | ||
| static setCurrentCursorPosition(chars: number, element: any): void; | ||
| static _createRange(node: any, chars: any, range: any): any; | ||
| static _isChildOf(node: any, parentElement: any): boolean; | ||
| static getCaretPosition(shadowRoot: ShadowRoot, element: HTMLElement): any; | ||
| static setCaretPosition: (pos: any, parent: any) => any; | ||
| static getCursorRect(shadowRoot: ShadowRoot): any; | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export {}; |
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.
🛠️ Refactor suggestion
Convert class to a module with functions and improve type safety.
anytype reduces type safety. Consider using more specific types.Apply this diff to improve the code:
🧰 Tools
🪛 Biome (1.9.4)
[error] 1-15: Avoid classes that contain only static members.
Prefer using simple functions instead of classes with only static members.
(lint/complexity/noStaticOnlyClass)