-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
🚀 Feature: Migrate functions from @typescript-eslint/type-utils #163
Comments
🤔 yeah I don't know how useful adding many of these would be. A lot of those functions are implemented specifically how typescript-eslint would want them. |
I notice that in one of my projects, I'm currently using I thought that it might be possible for me to drop the dependency on |
cc @bradzacher - any thoughts here, as you've done more with type-utils than me? |
I don't know exactly - some of them are probably general enough to exist here. If there is broader use outside eslint then for sure we can migrate them! |
Cool in that case it sounds like there's no reason for me to be hesitant. I'm just always reluctant to add things - even though this sounds like it is just making the stuff more publicly visible! 😄 |
Bug Report Checklist
main
branch of the repository.Overview
Some of the functions there could probably be moved to this project (or at least exists in both).
Additional Info
List of functions:
containsAllTypesByName
getConstrainedTypeAtLocation
getContextualType
getDeclaration
getSourceFileOfNode
getTokenAtPosition
getTypeArguments
getTypeName
isTypeReadonly
isUnsafeAssignment
isNullableType
isTypeArrayTypeOrUnionOfArrayTypes
isTypeNeverType
isTypeUnknownType
isTypeReferenceType
isTypeAnyType
isTypeAnyArrayType
isTypeUnknownArrayType
isAnyOrAnyArrayTypeDiscriminated
typeIsOrHasBaseType
isTypeBigIntLiteralType
isTypeTemplateLiteralType
getTypeOfPropertyOfName
getTypeOfPropertyOfType
requiresQuoting
getTypeFlags
isTypeFlagSet
The text was updated successfully, but these errors were encountered: