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 types #37

Merged
merged 1 commit into from
Jun 28, 2024
Merged

fix types #37

merged 1 commit into from
Jun 28, 2024

Conversation

stan-donarise
Copy link
Contributor

No description provided.

@@ -34,7 +34,7 @@ namespace $.$$ {
const obj = make()
obj.name = name
this.scene().add( obj )
obj.destructor = ()=> this.remove_object( obj )
;(obj as any).destructor = ()=> this.remove_object( obj )
Copy link
Member

Choose a reason for hiding this comment

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

Why a leading semicolon ;(obj as any)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to prevent interpretation (obj as any) as a upper expression function call

@blokhin blokhin merged commit 5576107 into tilde-lab:master Jun 28, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants