mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
25 lines
439 B
Text
25 lines
439 B
Text
---
|
|
source: crates/oxc_isolated_declarations/tests/mod.rs
|
|
input_file: crates/oxc_isolated_declarations/tests/fixtures/module-declaration.ts
|
|
---
|
|
```
|
|
==================== .D.TS ====================
|
|
|
|
import "foo";
|
|
declare module "foo" {
|
|
interface Foo {}
|
|
const foo = 42;
|
|
}
|
|
declare global {
|
|
interface Bar {}
|
|
const bar = 42;
|
|
}
|
|
import { type X } from "./x";
|
|
type Y = 1;
|
|
declare module "foo" {
|
|
interface Foo {
|
|
x: X;
|
|
y: Y;
|
|
}
|
|
}
|
|
export {};
|