mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
10 lines
159 B
JavaScript
10 lines
159 B
JavaScript
import parseTs from 'prettier/parser-typescript';
|
|
|
|
function parse(source) {
|
|
return parseTs.parsers.typescript.parse(source);
|
|
}
|
|
|
|
export default {
|
|
parse,
|
|
};
|