22 lines
458 B
TypeScript
22 lines
458 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
////declare const p: Promise<number>;
|
|
////await p;
|
|
// @filename: /dir/tsconfig.json
|
|
////{
|
|
//// "compilerOptions": {
|
|
//// "target": "esnext",
|
|
//// "module": "esnext"
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: ts.Diagnostics.Add_export_to_make_this_file_into_a_module.message,
|
|
index: 0,
|
|
newFileContent:
|
|
`declare const p: Promise<number>;
|
|
await p;
|
|
|
|
export { };
|
|
`
|
|
});
|