We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since parse might be used in some pipeline operation, not all these pipelines are promise-friendly.
And this method could have been sync:
public async parseFiles( filePathes: string[], rootPath: string): Promise<File[]> { return filePathes .map((o) => { let scriptKind: ScriptKind = ScriptKind.Unknown; const parsed = parse(o); switch (parsed.ext.toLowerCase()) { case 'js': scriptKind = ScriptKind.JS; break; case 'jsx': scriptKind = ScriptKind.JSX; break; case 'ts': scriptKind = ScriptKind.TS; break; case 'tsx': scriptKind = ScriptKind.TSX; break; } return createSourceFile( o, readFileSync(o).toString(), ScriptTarget.ES2015, true, scriptKind, ); }) .map(o => this.parseTypescript(o, rootPath)); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since parse might be used in some pipeline operation, not all these pipelines are promise-friendly.
And this method could have been sync:
The text was updated successfully, but these errors were encountered: