Skip to content

Commit 21c6147

Browse files
committed
refactor: simplify createBaseConfig function implementation and add explicit return type
1 parent 3784231 commit 21c6147

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/commands/docs/utils.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ export const createBaseConfig = (options: {
1616
icon: string;
1717
commandDescription: string;
1818
directUrl?: string;
19-
}) => ({
20-
color: options.color,
21-
icon: options.icon,
22-
commandDescription: options.commandDescription,
23-
directUrl: options.directUrl,
24-
});
19+
}): Pick<ProviderConfig, 'color' | 'icon' | 'commandDescription' | 'directUrl'> => options;
2520

2621
export const executeDocCommand = async (
2722
config: ProviderConfig,

0 commit comments

Comments
 (0)