Merge pull request #7119 from github/max-schaefer/api-graphs-property-copies

Approved by asgerf
This commit is contained in:
CodeQL CI
2021-11-15 04:09:16 -08:00
committed by GitHub
3 changed files with 92 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
import { readFile } from 'fs/promises';
async function readFileUtf8(path: string): Promise<string> {
return readFile(path, { encoding: 'utf8' });
}
async function test(path: string) {
await readFileUtf8(path); /* use (promised (return (member readFile (member exports (module fs/promises))))) */
}