declare type field with object