Skip to content
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

Remove abstract classes #64

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

alfonsogarciacaro
Copy link
Contributor

Hopefully this fixes #59. I've tested it by building the docs and they seem to run correctly.

Fable 3 mangles members of abstract classes by default. This is kind of a breaking change and we may revert it at some point, but I think using interfaces for the bindings is cleaner here so if you don't mind @cmeeren we can merge this and publish a new version to make things compatible with Fable 3 (it will still work fine with Fable 2). Reasons why interfaces are preferred:

  • Cleaner code, you don't need the attributes AbstractClass and Erase and all members are abstracts, there are no a couple of member inline outliers.
  • Emit can be used directly on interface members and it also inlines the code, so it has the same effect as member inline.
  • In the case of Breakpoints I'm using extensions instead with AutoOpen. This shouldn't break consume code.

@@ -1925,7 +1925,7 @@ module themeOverrides =
static member inline centered(styles: IStyleAttribute list) : IThemeProp = unbox ("overrides.MuiTabs.centered", createObj !!styles)
/// Styles applied to the tablist element.
static member inline scroller(styles: IStyleAttribute list) : IThemeProp = unbox ("overrides.MuiTabs.scroller", createObj !!styles)
/// Styles applied to the tablist element if `!variant="scrollable"`.
/// Styles applied to the tablist element if `!variant="scrollable"`.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The IDE was complaining there was an invisible character here invalidating the XML doc.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see. This will be reverted the next time the generator runs, though. I'll see about fixing it there.

@cmeeren
Copy link
Collaborator

cmeeren commented Dec 21, 2020

Thanks, looks good!

@cmeeren cmeeren merged commit 1e93bc0 into Shmew:master Dec 21, 2020
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.

Cannot use theme in makeStyles in Fable 3
2 participants