I'm thinking of putting some stuff into JSON files...
# javascript
b
I'm thinking of putting some stuff into JSON files rather than TS files this time around; is there a way to import JSON like in TypeScript?
1
t
Copy code
@JsModule("my-data.json")
external val data: MyData
Like this?
Also you can use
import
function for this goal
b
yeah, thank you!