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

exlude a propery from type/interface #587

Open
deepakt2b opened this issue Jan 14, 2024 · 0 comments
Open

exlude a propery from type/interface #587

deepakt2b opened this issue Jan 14, 2024 · 0 comments

Comments

@deepakt2b
Copy link

deepakt2b commented Jan 14, 2024

Is there any way to exclude/ignore a key based on the some key name regex or via it's ts type

For eg -
type MyType = {
age: number
nameSuffix: NameType
}

so here I want to exclude the nameSuffix key either by suffix keyword or NameType, as this type is not json convertiable so I totally want to ignore it.

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

1 participant