add baseType and composeType class define

Signed-off-by: chraac <chraac@gmail.com>