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

Fix default TypeScript export definition to conform to version 2.6.0 rules #520

Merged
merged 3 commits into from
Apr 5, 2018

Conversation

tyronedougherty
Copy link
Contributor

Context

Please see issue here: #519

Changes made

  1. Fix the package-lock.json file so that its version number correctly matches that of the package.json
  2. Do some minor fixes on the types/index.d.ts file so that it correctly conforms to the rules outlined in the tslint.json file
  3. Perform the actual fix on the default export in types/index.d.ts to ensure that it is not an arbitrary expression, as this is a breaking change in TypeScript 2.6 - https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts

@@ -192,7 +192,9 @@ declare var api: {
};
tickPeriod: {
get(name: string, settings?: { utc?: boolean }): { cast: (d: Date) => Date; next: (d: Date) => Date; };
add(name: string, period: { cast: (d: Date) => Date; next: (d: Date) => Date; }, settings?: { utc?: boolean }): void;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line was too long according to the tslint.json file (120 characters max)

@coveralls
Copy link

Coverage Status

Coverage increased (+9.3%) to 96.437% when pulling 7cd2540 on tyronedougherty:master into 106b56e on TargetProcess:master.

@vladminsky
Copy link
Contributor

@tyronedougherty thank you for pull request.

@vladminsky vladminsky merged commit 2097c0c into TargetProcess:master Apr 5, 2018
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.

3 participants