Trying to make a class with a tilemap, what type should i use

I have tried running game.splash(typeof assets.tilemaplevel) where level is a valid tilemap in assets, but it returns Object.

I have tried putting Object type into scene.setCurrentTilemap(), but it does not work.

I have tried using type TileMapData, but it also did not work

Nvm I solved it, just had to use tiles.TileMapData