mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 12:48:38 +00:00
test(codegen): fix snapshot file (#8685)
This commit is contained in:
parent
343690e178
commit
39dbd2d472
4 changed files with 18 additions and 19 deletions
|
|
@ -106,6 +106,12 @@ export enum DefinitionKind {
|
||||||
*/
|
*/
|
||||||
TS = 'TS',
|
TS = 'TS',
|
||||||
}
|
}
|
||||||
|
export type TSTypeLiteral = {
|
||||||
|
/**
|
||||||
|
* Comment
|
||||||
|
*/
|
||||||
|
foo: string
|
||||||
|
}
|
||||||
",
|
",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,12 @@ export enum DefinitionKind {
|
||||||
*/
|
*/
|
||||||
TS = 'TS',
|
TS = 'TS',
|
||||||
}
|
}
|
||||||
|
export type TSTypeLiteral = {
|
||||||
|
/**
|
||||||
|
* Comment
|
||||||
|
*/
|
||||||
|
foo: string
|
||||||
|
}
|
||||||
|
|
||||||
----------
|
----------
|
||||||
/**
|
/**
|
||||||
|
|
@ -186,3 +192,9 @@ export enum DefinitionKind {
|
||||||
*/
|
*/
|
||||||
TS = 'TS',
|
TS = 'TS',
|
||||||
}
|
}
|
||||||
|
export type TSTypeLiteral = {
|
||||||
|
/**
|
||||||
|
* Comment
|
||||||
|
*/
|
||||||
|
foo: string
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,9 @@
|
||||||
export interface X {
|
export interface X {
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
set value(_: string);
|
set value(_: string);
|
||||||
}
|
}
|
||||||
|
|
||||||
export type A = {
|
export type A = {
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
set value({ a, b, c }: { a: string; b: string; c: string });
|
set value({ a, b, c }: { a: string; b: string; c: string });
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
get value();
|
get value();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -21,7 +12,6 @@ export interface I {
|
||||||
get value(): string;
|
get value(): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do nothing
|
// Do nothing
|
||||||
export interface Ref<T = any, S = T> {
|
export interface Ref<T = any, S = T> {
|
||||||
get value(): T
|
get value(): T
|
||||||
|
|
|
||||||
|
|
@ -6,23 +6,14 @@ input_file: crates/oxc_isolated_declarations/tests/fixtures/signatures.ts
|
||||||
==================== .D.TS ====================
|
==================== .D.TS ====================
|
||||||
|
|
||||||
export interface X {
|
export interface X {
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
set value(_: string);
|
set value(_: string);
|
||||||
}
|
}
|
||||||
export type A = {
|
export type A = {
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
set value({ a, b, c }: {
|
set value({ a, b, c }: {
|
||||||
a: string
|
a: string
|
||||||
b: string
|
b: string
|
||||||
c: string
|
c: string
|
||||||
})
|
})
|
||||||
/**
|
|
||||||
* Comment
|
|
||||||
*/
|
|
||||||
get value(): {
|
get value(): {
|
||||||
a: string
|
a: string
|
||||||
b: string
|
b: string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue