mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
470 B
Plaintext
18 lines
470 B
Plaintext
test.ts(6,6): error TS2339: Property 'a' does not exist on type 'OhNo'.
|
|
|
|
|
|
==== types.ts (0 errors) ====
|
|
declare module "*.foo" {
|
|
export interface OhNo { star: string }
|
|
}
|
|
|
|
==== test.ts (1 errors) ====
|
|
declare module "a.foo" {
|
|
export interface OhNo { a: string }
|
|
}
|
|
import { OhNo } from "b.foo"
|
|
declare let ohno: OhNo;
|
|
ohno.a // oh no
|
|
~
|
|
!!! error TS2339: Property 'a' does not exist on type 'OhNo'.
|
|
|