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

Improve class method consistency, adding NodeFileTypeParser.fromFile() #644

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

Borewit
Copy link
Collaborator

@Borewit Borewit commented Jul 11, 2024

Changes:

  • Improve class method consistency, adding NodeFileTypeParser.fromFile()
  • Add missing parameter in fileTypeFromFile

core.d.ts Outdated
@@ -476,6 +476,9 @@ export declare class TokenizerPositionError extends Error {
export declare class FileTypeParser {
detectors: Iterable<Detector>;

/**
@param options - `options.customDetectors`: list of custom detectors
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc comments are not needed if they don't add anything to the types. Here, the doc comments just repeats the information available in the below types.

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

Successfully merging this pull request may close these issues.

2 participants