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: build with noUnusedLocals #103

Merged
merged 1 commit into from
Jan 13, 2018
Merged

Conversation

SafeEval
Copy link

This PR fixes #65.

By explicitly casting with InjectionToken<Document> in clipboard.service.ts, the TypeScript compiler doesn't fail when the noUnusedLocals compiler option is used.

Since there are no more unused locals in the project, the noUnusedLocals compiler option could be set to true in tsconfig.json and tsconfig-build.json. That step wasn't taken in this PR.

Build passes with noUnusedLocals compiler option.
Fix involved explicit casting with InjectionToken<Document>.

fix maxisam#65
@maxisam maxisam merged commit d53a7dc into maxisam:master Jan 13, 2018
@maxisam
Copy link
Owner

maxisam commented Jan 13, 2018

That's a great idea! Thanks!

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.

Errors with noUnusedLocals
2 participants