Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 25, 2024
1 parent 8d7e1cc commit a6d9afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fixtures/output/example-0001.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ declare interface Options<T> {
defaultConfig: T
}

export declare async function loadConfig<T extends Record<string, unknown>>(options: Options<T>): Promise<T>;
export declare function loadConfig<T extends Record<string, unknown>>(options: Options<T>): Promise<T>;


declare const dtsConfig: DtsGenerationConfig;
Expand Down
3 changes: 1 addition & 2 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ export function processFunctionDeclaration(
name,
params,
returnType,
isAsync,
isAsync, // it should be unused
generics,
} = extractFunctionSignature(declaration)

Expand All @@ -1422,7 +1422,6 @@ export function processFunctionDeclaration(
const parts = [
isExported ? 'export' : '',
'declare',
isAsync ? 'async' : '',
'function',
name,
generics,
Expand Down

0 comments on commit a6d9afa

Please # to comment.