disable typeCheck when not set --declaration option