From 90038f3a6d5baec7f567617e626c34c37b5d43e5 Mon Sep 17 00:00:00 2001 From: jin Date: Sun, 17 Sep 2023 16:45:29 +0300 Subject: [PATCH] $mol_object2: type fix --- object2/object2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object2/object2.ts b/object2/object2.ts index 88629a15450..3cd8c4d5457 100644 --- a/object2/object2.ts +++ b/object2/object2.ts @@ -2,7 +2,7 @@ namespace $ { export class $mol_object2 { - static $ = $ as $ + static $ = $ as any as $ [Symbol.toStringTag]!: string @@ -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 }