Skip to content

Commit 52fb5c6

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip
1 parent efd05fc commit 52fb5c6

5 files changed

Lines changed: 348 additions & 137 deletions

File tree

fixtures/output/exports.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { BunPlugin } from 'bun';
2+
import type { SomeOtherType } from '@stacksjs/types';
13
import { dtsConfig } from './config';
24
import { generate, something as dts } from './generate';
35

fixtures/output/function.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ export declare function getProduct(id: number): Promise<ApiResponse<Product>>;
66
export declare function authenticate(user: string, password: string): Promise<AuthResponse>;
77
export declare function dts(options?: DtsGenerationOption): BunPlugin;
88
export declare function loadConfig<T extends Record<string, unknown>>({ name, cwd, defaultConfig }: Options<T>): Promise<T>;
9-
export declare function processData(data: string): string;
10-
export declare function processData(data: number): number;
11-
export declare function processData(data: boolean): boolean;
12-
export declare function processData<T extends object>(data: T): T;
9+
export declare function processData(data: string): string export function processData(data: number): number;
10+
export declare function processData(data: boolean): boolean export function processData<T extends object>(data: T): T;
1311
export declare function processData(data: unknown): unknown;
1412
export declare function complexAsyncGenerator(): any;
1513
export declare function isUser(value: unknown): value is User;

fixtures/output/interface.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ export declare interface ComplexGeneric<T extends Record<string, unknown>, K ext
3636
export declare interface DefaultGeneric<
3737
T = string,
3838
K extends keyof any = string,
39-
V extends Record<K, T> = Record<K, T>
39+
V extends Record<K, T> = Record<K, T>
40+
> {
41+
key: K
42+
value: T
43+
record: V
44+
}

0 commit comments

Comments
 (0)