Skip to content

Commit b7db6c1

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip
1 parent cae2210 commit b7db6c1

4 files changed

Lines changed: 319 additions & 289 deletions

File tree

fixtures/output/function.d.ts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,20 @@ export declare function fetchUsers(): Promise<ResponseData>;
44
export declare function getProduct(id: number): Promise<ApiResponse<Product>>;
55
export declare function authenticate(user: string, password: string): Promise<AuthResponse>;
66
export declare function dts(options?: DtsGenerationOption): BunPlugin;
7-
declare const cwd: unknown;
8-
export declare function loadConfig<T extends Record<string, unknown>>({ name, cwd, defaultConfig }: Options<T>): Promise<T>;
9-
declare const c: unknown;
10-
declare const configPath: unknown;
11-
declare const importedConfig: unknown;
12-
declare const loadedConfig: unknown;
7+
export declare function export();
8+
export declare function loadConfig <T extends Record<string, unknown>> ();
139
export declare function processData(data: string): string;
1410
export declare function processData(data: number): number;
1511
export declare function processData(data: boolean): boolean;
16-
export declare function processData<T extends object>(data: T): T;
12+
export declare function processData <T extends object> (data: T): T;
1713
export declare function processData(data: unknown): unknown;
14+
export declare function export();
1815
export declare function complexAsyncGenerator(): any;
19-
declare const results: unknown;
2016
export declare function isUser(value: unknown): value is User;
2117
export declare function extractFunctionSignature(declaration: string): FunctionSignature;
22-
declare const cleanDeclaration: unknown;
23-
declare const functionPattern: unknown;
24-
declare const functionMatch: unknown;
25-
declare const name: unknown;
26-
declare const genericsResult: unknown;
27-
declare const paramsResult: unknown;
28-
declare const match: unknown;
29-
export declare function createApi<T extends Record<string,(...args: any[]) => any>();
18+
export declare function Pattern();
19+
export declare function \s* (\*);
20+
export declare function Match();
21+
export declare function Pattern) ();
22+
export declare function Match[4] ();
23+
export declare function createApi <T extends Record<string, (...args: any[]) => any> ();

fixtures/output/variable.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export declare const complexArrays: {
8989
};
9090
export declare const complexObject: {
9191
handlers: {
92-
onSuccess: async <T> (data: T) => T);
93-
onError: (error: Error & { code?: number }) => Error &
92+
onSuccess: <T> (data: T) => Promise<void>;
93+
onError: (error: Error & { code?: number }) => void
9494
};
9595
utils: {
9696
formatters: {

0 commit comments

Comments
 (0)