-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add support for Web Share API. #148
base: master
Are you sure you want to change the base?
Conversation
…alse errors when allowing type checks on JS-files locally.
…ning the dev server. impactmakers#146" This reverts commit 1600ff6.
import styles from "./styles.module.scss"; | ||
import buttonStyles from "../../styles/Buttons.module.scss"; | ||
|
||
/** |
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.
With JSDoc like this and JS type checking enabled in VS Code this will give you errors when specifing props wrongly or adding props that doesn't exists. Kinda handy and no need to go in fully for TypeScript or Flow in the project. Could be progressively and selectively added. :)
Type checking could also be run with the TypeScript CLI in CI like so; tsc -p jsconfig.json --noEmit
I guess I'll have to resolve to this for the window now being defined issue. https://www.gatsbyjs.org/docs/debugging-html-builds/#how-to-check-if-window-is-defined |
This enables platforms that support Web Share API, like Android, to share to all apps that allow being shared to. Just like if you were sharing from a native app.
See video here for example of sharing to Slack with this change: https://youtu.be/Ewmu4FVcF4A