Skip to content

Commit e418e02

Browse files
committedAug 24, 2022
feat(client): make args of defineClientConfig optional
1 parent b3565cb commit e418e02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎packages/client/src/helpers/defineClientConfig.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import type { ClientConfig } from '../types/index.js'
33
/**
44
* A helper function to help you define vuepress client config file
55
*/
6-
export const defineClientConfig = (clientConfig: ClientConfig): ClientConfig =>
7-
clientConfig
6+
export const defineClientConfig = (
7+
clientConfig: ClientConfig = {}
8+
): ClientConfig => clientConfig

0 commit comments

Comments
 (0)
Please sign in to comment.