mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
939 B
Plaintext
28 lines
939 B
Plaintext
first.js(2,9): error TS2339: Property 'formatters' does not exist on type 'typeof import("first")'.
|
|
second.js(2,9): error TS2339: Property 'formatters' does not exist on type 'typeof import("second")'.
|
|
|
|
|
|
==== mod.js (0 errors) ====
|
|
// Based on a pattern from adonis
|
|
exports.formatters = {}
|
|
==== first.js (1 errors) ====
|
|
exports = require('./mod')
|
|
exports.formatters.j = function (v) {
|
|
~~~~~~~~~~
|
|
!!! error TS2339: Property 'formatters' does not exist on type 'typeof import("first")'.
|
|
return v
|
|
}
|
|
==== second.js (1 errors) ====
|
|
exports = require('./mod')
|
|
exports.formatters.o = function (v) {
|
|
~~~~~~~~~~
|
|
!!! error TS2339: Property 'formatters' does not exist on type 'typeof import("second")'.
|
|
return v
|
|
}
|
|
|
|
==== use.js (0 errors) ====
|
|
import * as debug from './mod'
|
|
|
|
debug.formatters.j
|
|
var one = debug.formatters.o(1)
|
|
|