import ts from "typescript" ; export function reportUnsupportedTscOption ( unsupportedOptionName ) { throw new Error ( `tsc option '${ unsupportedOptionName }' is not supported` ) ; } export function reportUnsupportedTscOptions ( options , unsupportedOptionNames ) { unsupportedOptionNames . forEach ( ( name ) => { if ( options [ name ] && Object . prototype . hasOwnProperty . call ( options , name ) ) { reportUnsupportedTscOption ( name ) ; } } ) ; }