mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
484 B
Plaintext
17 lines
484 B
Plaintext
imp.ts(2,5): error TS2339: Property 'toExponential' does not exist on type '{ greeting: string; default: number; }'.
|
|
|
|
|
|
==== exp.ts (0 errors) ====
|
|
var x = {
|
|
"greeting": "hello, world",
|
|
"default": 42
|
|
};
|
|
|
|
export = x
|
|
|
|
==== imp.ts (1 errors) ====
|
|
import foo from "./exp";
|
|
foo.toExponential(2);
|
|
~~~~~~~~~~~~~
|
|
!!! error TS2339: Property 'toExponential' does not exist on type '{ greeting: string; default: number; }'.
|
|
|