Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 23, 2024
1 parent d932a45 commit 3d8a35f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fixtures/output/example-0001.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export declare interface ResponseData {
*
* with multiple empty lines, including an empty lines
*/
export declare function fetchUsers(): Promise<ResponseData>;
export declare function fetchUsers<ResponseData>(): Promise;
export declare interface ApiResponse<T> {
status: number;
message: string;
Expand All @@ -77,23 +77,23 @@ export declare interface Product {
/**
* Example of function declaration
*/
export declare function getProduct(id: number): Promise<ApiResponse<Product>>;
export declare function getProduct<ApiResponse<Product>(id: number): Promise>;
export declare interface AuthResponse {
token: string;
expiresIn: number;
}
export declare type AuthStatus = 'authenticated' | 'unauthenticated';
export declare function authenticate(user: string, password: string): Promise<AuthResponse>;
export declare function authenticate<AuthResponse>(user: string, password: string): Promise;
export declare const defaultHeaders: {
'Content-Type': 'application/json';
};
export declare function dts(options?: DtsGenerationOption): BunPlugin;
export declare async function dts(options?: DtsGenerationOption): BunPlugin;
declare interface Options<T> {
name: string;
cwd?: string;
defaultConfig: T;
}
export declare async function loadConfig<T extends Record<string, unknown>(options: Options<T>): Promise<T>;
export declare async function loadConfig><T extends Record<string, unknown>(options: Options<T>): Promise<T>;
declare const dtsConfig: DtsGenerationConfig;
export { generate, dtsConfig }
export declare type { DtsGenerationOption }
Expand Down

0 comments on commit 3d8a35f

Please # to comment.