Ambiguous Mapping Cannot Map Method In Typescript