-
Notifications
You must be signed in to change notification settings - Fork 7
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
Type annotations #41
Type annotations #41
Changes from 8 commits
ae40d37
4c1bdd1
e0e05cb
4ad4b47
8415a58
403cc5c
e4a3562
6fbea06
1f3ee04
a17f872
d6be266
8e08aad
bd91cdd
07846c7
fef988a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface DrawnObject { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also rename this type to |
||
isClass: boolean; | ||
name?: string; | ||
type?: string; | ||
x?: number; | ||
y?: number; | ||
id: number | string; | ||
value: any; | ||
stack_frame: boolean; | ||
show_indexes?: boolean; | ||
style?: Style; | ||
} | ||
|
||
interface AttributeStyle { | ||
[propName: string]: string | number; | ||
} | ||
|
||
interface Style { | ||
text_id?: AttributeStyle; | ||
text_type?: AttributeStyle; | ||
text_value?: AttributeStyle; | ||
box_id?: AttributeStyle; | ||
box_type?: AttributeStyle; | ||
box_container?: AttributeStyle; | ||
} |
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.
This change is out of scope of this PR (and in fact I suspect it's related to what @sarahsonder is working on currently).