10 lines
159 B
JavaScript

import parseTs from 'prettier/parser-typescript';
function parse(source) {
return parseTs.parsers.typescript.parse(source);
}
export default {
parse,
};