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

TS:1.0 - Complex TS error #727

Closed
peduarte opened this issue Aug 17, 2021 · 0 comments · Fixed by #730
Closed

TS:1.0 - Complex TS error #727

peduarte opened this issue Aug 17, 2021 · 0 comments · Fixed by #730
Assignees
Labels

Comments

@peduarte
Copy link
Contributor

Upgrading the DS, even without radix-polymorphic the TS Complex error still exists

or:

import React from 'react';
import { styled, StitchesCss } from '../stitches.config';

const Text = styled('span', {});

const DEFAULT_TAG = 'h1';

type HeadingProps = React.ComponentProps<typeof DEFAULT_TAG> & { css?: StitchesCss };

export const Heading = React.forwardRef<React.ElementRef<typeof DEFAULT_TAG>, HeadingProps>((props, forwardedRef) => {
  return <Text as={DEFAULT_TAG} {...props} ref={forwardedRef} />;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants