-
Notifications
You must be signed in to change notification settings - Fork 6
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
More Lint Fixes #43
More Lint Fixes #43
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See annotations
@@ -58,6 +58,15 @@ interface VisGraphDefinition<N extends VisNode, E extends VisEdge> { | |||
nodes: N[], edges: E[] | |||
} | |||
|
|||
interface VisDataSet { | |||
update: (data: object) => void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object
is like one step above any
, but it's useful when you just want to say "yeah it's an object"
@@ -403,7 +403,7 @@ function generateExpressionGraph( | |||
const edges: LocalEdge[] = []; | |||
|
|||
switch (expression.kind) { | |||
case 'relationref': | |||
case 'relationref': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapping blocks in brackets so that the declarations are properly scoped
@@ -91,11 +92,13 @@ describe('parsing', () => { | |||
|
|||
expect(parsed?.definitions?.length).toEqual(1); | |||
|
|||
const definition = parsed?.definitions[0]! as ParsedObjectDefinition; | |||
const definition = parsed?.definitions[0]; | |||
assert(definition) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using insert instead of type assertions
Description
Closer to getting lint sorted.
Changes
Testing
Review. See that things pass.