Skip to content

Commit

Permalink
$mol_object2: type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Sep 17, 2023
1 parent 735972a commit 90038f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object2/object2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace $ {

export class $mol_object2 {

static $ = $ as $
static $ = $ as any as $

[Symbol.toStringTag]!: string

Expand Down Expand Up @@ -31,7 +31,7 @@ namespace $ {
}

static toString() {
if( Symbol.toStringTag in this ) return this[ Symbol.toStringTag ] as string
if( Symbol.toStringTag in this ) return ( this as any )[ Symbol.toStringTag ] as string
return this.name
}

Expand Down

0 comments on commit 90038f3

Please sign in to comment.