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

Eliminate overloads of CharStreams.fromString() #457

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Eliminate overloads of CharStreams.fromString() #457

wants to merge 2 commits into from

Conversation

BurtHarris
Copy link
Collaborator

The typescript handbooks says: Don’t write several overloads that differ only in trailing parameters.

added test case for source name

@BurtHarris
Copy link
Collaborator Author

@sharwell, this 4.7 change around factory methods on class CharStreams is cool. With that interface, I'm pretty sure we can implement CharStreams.fromFileName(), at least on node.js, because one of the few synchronous I/O operation supported is reading a whole file.

I'll see how that goes, and add it to this PR if appropriate.

@BurtHarris
Copy link
Collaborator Author

@sharwell that was weird, the appveyor job ran tslint, and barfed on my lack of trailing commas is lists.

When I ran npm install, it didn't catch the commas. Seems like if we run tslint on appveyer, we should run it before commits too.

@BurtHarris
Copy link
Collaborator Author

Related #163, this really calls for a full codebase review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant