<@U33H6SB2B> was looking at the wrappers and notic...
# javascript
e
@turansky was looking at the wrappers and noticed you added stuff like
Copy code
@file:JsQualifier(
    """({
    __type_plus_guard__: Object.setPrototypeOf({
        [Symbol.hasInstance](instance) {
            return typeof instance === 'bigint'
        }
    }, BigInt)
  })"""
)
What does this end up doing, considering this is related to externals?
t
As result - you can use
as/is
with
BigInt
type
e
Thanks. But why using
JsQualifier
? Is that an intended use?
t
But why using
JsQualifier
?
Because it works 🙂
👀 1
Is that an intended use?
No 🙂
But it allows to be aligned with future Kotlin implementation
e
Sounds good then! Thanks!
t
Nearest example
Array
for which you need to use special checks
Common request - custom
as/is
for external types, but it doesn’t look like nearest future
a
How do you know what future implementation will be, is there a KEEP or an issue on YouTrack about this ?
t
We already have primitive types in stdlib with special
is
check
Current implementation of
BigInt
aligned with
String