mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
39 lines
658 B
Text
39 lines
658 B
Text
---
|
|
source: crates/oxc_isolated_declarations/tests/mod.rs
|
|
input_file: crates/oxc_isolated_declarations/tests/fixtures/signatures.ts
|
|
---
|
|
```
|
|
==================== .D.TS ====================
|
|
|
|
export interface X {
|
|
set value(_: string);
|
|
}
|
|
export type A = {
|
|
set value({ a, b, c }: {
|
|
a: string;
|
|
b: string;
|
|
c: string;
|
|
});
|
|
get value(): {
|
|
a: string;
|
|
b: string;
|
|
c: string;
|
|
};
|
|
};
|
|
export interface I {
|
|
set value(_: string);
|
|
get value(): string;
|
|
}
|
|
export interface Ref<
|
|
T = any,
|
|
S = T
|
|
> {
|
|
get value(): T;
|
|
set value(_: S);
|
|
}
|
|
export interface MultipleSetterAndGetter {
|
|
get ok(): string;
|
|
set ok(_: string);
|
|
get bad(): string;
|
|
set bad(_: string);
|
|
}
|