From adonis-framework in the user tests.
// Filename: util.js
const util = exports = module.exports = {}
util.existy = function() { }
Expected behavior:
No error, and import('util') has a property existy. (Ideally util would also have a property existy inside util.js, but this is not true in 2.9.2 either.)
Actual behavior:
Error: Property 'x' does not exist on type '{}', but require('util') does have a property existy: () => void.
From adonis-framework in the user tests.
Expected behavior:
No error, and
import('util')has a propertyexisty. (Ideallyutilwould also have a propertyexistyinside util.js, but this is not true in 2.9.2 either.)Actual behavior:
Error: Property 'x' does not exist on type '{}', but
require('util')does have a propertyexisty: () => void.