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

cannot import CommonLetsFormProps #52

Open
ghoshorn opened this issue Nov 23, 2024 · 2 comments
Open

cannot import CommonLetsFormProps #52

ghoshorn opened this issue Nov 23, 2024 · 2 comments
Labels
Waiting for answer Waiting for validation from issuer

Comments

@ghoshorn
Copy link
Contributor

when I using
import { CommonLetsFormProps } from 'lets-form/definitions/common'
it will give error: ESLint: Unable to resolve path to module 'lets-form/ definitions/ common'.(import/ no-unresolved

Could you please export this kind of types as well? Thanks.

@guidone
Copy link
Owner

guidone commented Nov 29, 2024

Do you really need the CommonLetsFormProps? This is the common one, you might want to import the framework specific one, like

import { LetsFormReactAntdProps } from 'lets-form/react-antd';

See here

@guidone guidone added the Waiting for answer Waiting for validation from issuer label Nov 29, 2024
@ghoshorn
Copy link
Contributor Author

@guidone Yes, LetsFormReactAntdProps also works for me. But
import LetsForm, { LetsFormReactAntdProps, LetsFormSchemaReactAntd } from 'lets-form/react-antd' also gives me the error TS2614: Module "lets-form/ react-antd" has no exported member LetsFormReactAntdProps

Found that interface in lets-form/react-antd.d.ts can be imported. But cannot import from the definitions/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for answer Waiting for validation from issuer
Projects
None yet
Development

No branches or pull requests

2 participants