-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27796 from software-mansion-labs/@Skalakid/ts/Sel…
…ectionScraper [TS migration] Migrate 'SelectionScraper' lib to TypeScript
- Loading branch information
Showing
4 changed files
with
54 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import GetCurrentSelection from './types'; | ||
|
||
// This is a no-op function for native devices because they wouldn't be able to support Selection API like a website. | ||
const getCurrentSelection: GetCurrentSelection = () => ''; | ||
|
||
export default { | ||
getCurrentSelection, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type GetCurrentSelection = () => string; | ||
|
||
export default GetCurrentSelection; |