Sebastien Leclerc Lavallee
02/22/2022, 3:03 PM@JsExport
interface IAddress {
var id: String
}
What is exported in the .d.ts
file is this:
interface IAddress {
id: string;
readonly __doNotUseIt: __doNotImplementIt;
}
There is the __doNotUseIt
property that is added. How can I have this not added to the typed definition file.
I’m using Kotlin 1.6.20-M1
Thanks! 🙂turansky
02/22/2022, 3:05 PMturansky
02/22/2022, 3:06 PMBig Chungus
02/22/2022, 3:20 PMhfhbd
02/22/2022, 3:37 PM.d.ts
file, not in my definitions.
declare const __doNotImplementIt: unique symbol
type __doNotImplementIt = typeof __doNotImplementIt
hfhbd
02/22/2022, 3:41 PMSebastien Leclerc Lavallee
02/22/2022, 4:59 PMconst addr: shared.IAddress = {
id: 'sdsds',
}
Property '__doNotUseIt' is missing in type '{ id: string; }' but required in type 'IAddress'
And thanks @Big Chungus, making the interface external
did fix my problem!