[fix] type declarations