mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
27 lines
No EOL
440 B
TypeScript
27 lines
No EOL
440 B
TypeScript
export interface X {
|
|
set value(_: string);
|
|
}
|
|
|
|
export type A = {
|
|
set value({ a, b, c }: { a: string; b: string; c: string });
|
|
get value();
|
|
};
|
|
|
|
export interface I {
|
|
set value(_);
|
|
get value(): string;
|
|
}
|
|
|
|
|
|
// Do nothing
|
|
export interface Ref<T = any, S = T> {
|
|
get value(): T
|
|
set value(_: S)
|
|
}
|
|
|
|
export interface MultipleSetterAndGetter {
|
|
get ok(): string
|
|
set ok(_: string)
|
|
get bad() // infer return type
|
|
set bad(_: string)
|
|
} |