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

TypeScript fixes #95

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

Conversation

mike-north
Copy link

it turns out that the official typescript rollup plugin doesn't actually type-check, since it analyzes each file in isolation instead of a wholistic analysis of the entire project.

as a result of this, there are a bunch of TS errors that should probably be fixed. this is not complete, but a good start at tackling the ones that are fairly obvious without much context around the library

@@ -49,9 +52,9 @@
"rollup-plugin-commonjs": "^9.1.6",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-typescript": "^0.8.1",
"rollup-plugin-typescript2": "^0.17.2",
Copy link
Author

Choose a reason for hiding this comment

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

@@ -19,6 +19,6 @@ describe('CounterStore', function() {
_namespaceCount: 0,
_nameCache: {},
_labelCache: {}
Copy link
Author

Choose a reason for hiding this comment

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

the properties above are private, in the CounterStore class. As long as they're not public, this POJO will never be type-equivalent to a CounterStore or Partial<CounterStore>

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.

None yet

1 participant