diff --git a/fixtures/output/example-0001.d.ts b/fixtures/output/example-0001.d.ts index 8e0a2c3..541e8b1 100644 --- a/fixtures/output/example-0001.d.ts +++ b/fixtures/output/example-0001.d.ts @@ -128,7 +128,12 @@ export declare interface ComplexGeneric, K ext nested: Array>; } -export declare type ComplexUnionIntersection = ; +export declare type ComplexUnionIntersection = + | (User & { role: 'admin' }) + | (Product & { category: string }) + & { + metadata: Record + } export * from './extract'; export * from './generate';