Ayfri
08/23/2021, 7:56 PM@file:JsModule
, how can I declare an non-external interface (an external function return an object without external interface so I created a local interface) ?turansky
08/23/2021, 8:51 PMAyfri
08/23/2021, 8:55 PM{
program: Shader,
uniforms: Uniform[]
}
They didn't used an interface, so I want to create one for the function, but when I create it in my file with @file:JsModule
it says that I can't declare non-external things in an external fileturansky
08/23/2021, 8:58 PM{
program: Shader,
uniforms: Uniform[]
}
it’s TS type or external interface
in Kotlin/JSAyfri
08/23/2021, 9:01 PM@file:JsModule
?turansky
08/23/2021, 9:17 PMexternal interface
can be created in same fileturansky
08/23/2021, 9:19 PMexternal interface
not affected by @JsModule
without magic @Suppresses
🙂Ayfri
08/23/2021, 9:20 PMturansky
08/23/2021, 9:34 PMit’s not an external interface hereSure?
turansky
08/23/2021, 9:35 PMAyfri
08/23/2021, 9:46 PM