State.hx:13: Type not found : MapSchema when trying colyseus with haxe/openfl.

Downloaded the example from here:
https://github.com/colyseus/colyseus-examples

I get error from State.hx :

import io.colyseus.serializer.schema.*;

class State extends Schema {
@:type("map", Player)
public var players: MapSchema<Player> = new MapSchema<Player>();

}

I have already installed
Haxe, OpenFL, Lime, colyseus, colyseus-websocket

How can I sort the error?

Hi @vishwasgagrani, welcome! What is the error you're getting exactly?

When I use the command:
openfl test html5
It says:

Source/State.hx:13: characters 22-39 : Type not found : MapSchema

The command for openfl works fine for other projects.

Figured it out. The state.hx needs one more line:
import io.colyseus.serializer.schema.types.*;

So the code becomes:

import io.colyseus.serializer.schema.;
import io.colyseus.serializer.schema.types.;

class State extends Schema {
@:type("map", Player)
public var players: MapSchema<Player> = new MapSchema<Player>();

}