mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +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',
|
||||
}
|
||||
export type TSTypeLiteral = {
|
||||
/**
|
||||
* Comment
|
||||
*/
|
||||
foo: string
|
||||
}
|
||||
",
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue