Skip to content

Conversation

@Seanmclem
Copy link
Contributor

Updates Toast option types to reflect acceptable strings. The 3 possible options as opposed to any string

Updates Toast option types to reflect acceptable strings. The 3 possible options as opposed to any string
Copy link
Owner

@calintamas calintamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Left a comment below

export default class Toast extends React.Component<ToastProps> {
static show(options: {
type: string,
type: 'success | error | info',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add string as well, to support custom types that might get created via the config prop

Suggested change
type: 'success | error | info',
type: 'success' | 'error' | 'info' | string,

@calintamas
Copy link
Owner

Closing, as the discussion can be continued here #281 on v2 version

@calintamas calintamas closed this Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants