-
Notifications
You must be signed in to change notification settings - Fork 60
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
🔨 Improve typing #182
🔨 Improve typing #182
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
idlePeriod?: number | ||
providerKey: string | ||
appID?: string | ||
baseUrl?: string | ||
locale?: string |
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.
Is locale
is used by all implementations?
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.
Only chatwoot and messenger currently use locale
- but in both instances, it's required during initialisation, hence why it's been implemented at the global LiveChatLoaderProvider
level
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.
Seems worthy of a comment!
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.
Good call. Done ✅
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.
All seems about right to me. Should there be a README.md
update for props updates?
@benschwarz no updates required as this actually brings the type defs in line with what's already detailed in the README |
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.
All good with me!
What does this PR introduce?
HelpScout
prop types as optionalproviderKey
type fromMessenger
propslocale
type toLiveChatLoader
propsAlso some minor housekeeping 🧹
.eslintrc
to the example websitestatic
directory topublic
in the example website (static has been deprecated)