test(codegen): fix snapshot file (#8685)

This commit is contained in:
Boshen 2025-01-24 11:58:02 +08:00 committed by GitHub
parent 343690e178
commit 39dbd2d472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 19 deletions

View file

@ -106,6 +106,12 @@ export enum DefinitionKind {
*/
TS = 'TS',
}
export type TSTypeLiteral = {
/**
* Comment
*/
foo: string
}
",
];

View file

@ -105,6 +105,12 @@ export enum DefinitionKind {
*/
TS = 'TS',
}
export type TSTypeLiteral = {
/**
* Comment
*/
foo: string
}
----------
/**
@ -186,3 +192,9 @@ export enum DefinitionKind {
*/
TS = 'TS',
}
export type TSTypeLiteral = {
/**
* Comment
*/
foo: string
};

View file

@ -1,18 +1,9 @@
export interface X {
/**
* Comment
*/
set value(_: string);
}
export type A = {
/**
* Comment
*/
set value({ a, b, c }: { a: string; b: string; c: string });
/**
* Comment
*/
get value();
};
@ -21,7 +12,6 @@ export interface I {
get value(): string;
}
// Do nothing
export interface Ref<T = any, S = T> {
get value(): T

View file

@ -6,23 +6,14 @@ input_file: crates/oxc_isolated_declarations/tests/fixtures/signatures.ts
==================== .D.TS ====================
export interface X {
/**
* Comment
*/
set value(_: string);
}
export type A = {
/**
* Comment
*/
set value({ a, b, c }: {
a: string
b: string
c: string
})
/**
* Comment
*/
get value(): {
a: string
b: string