"typedef" replaced with "typeAlias" in the grammar
Typo fixed: "cast", not "casted"