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

Need: Alias support #3

Open
iMaximal opened this issue Oct 2, 2018 · 1 comment
Open

Need: Alias support #3

iMaximal opened this issue Oct 2, 2018 · 1 comment

Comments

@iMaximal
Copy link

iMaximal commented Oct 2, 2018

snappify: latest
node: 10.11
MacOS

import { IDispatch, IFormsState, } from '@app/interfaces';

The TypeScript props interface contains not supported types:

Solution is use tsconfig.json:

paths": {
            "@app/*": ["src/app/*"],

Also. Does & syntax support?

Can't find a TypeScript props interface IProps & InjectedFormProps

Thanks for your package!

Feel free to contact.

@denisraslov
Copy link
Owner

Thank you for the issue!

For now, snappify doesn't support using other declared TypeScript interfaces as types of items of a React component's interface. It also doesn't support & operator in syntax. It could be good improvements for the package.

Unfortunately, I’m a little bit busy now and don’t have enough time to implement this.

If you have an interest to implement it by yourself, I’d love to discuss the details of the implementation. PRs is welcome!

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

No branches or pull requests

2 participants