Skip to content

Commit

Permalink
fix: update jsdoc for default value
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaltz committed Dec 14, 2024
1 parent 6a175a9 commit 5b85be2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@ codegen({
/**
* Run codegen on server start.
*
* @defaultValue `true`
* @default true
*/
runOnStart: boolean,
/**
* Run codegen on build. Will prevent build if codegen fails.
*
* @defaultValue `true`
* @default true
*/
runOnBuild: boolean,
/**
* Enable codegen integration with vite file watcher.
*
* @defaultValue `true`
* @default true
*/
enableWatcher: boolean,
/**
* Throw an error if codegen fails on server start.
*
* @defaultValue `false`
* @default false
*/
throwOnStart: boolean,
/**
* Throw an error if codegen fails on build.
*
* @defaultValue `true`
* @default true
*/
throwOnBuild: boolean,
/**
* Run codegen when a document matches.
*
* @defaultValue `true`
* @default true
*/
matchOnDocuments: boolean,
/**
* Run codegen when a schema matches.
*
* @defaultValue `false`
* @default false
*/
matchOnSchemas: boolean,
/**
Expand Down Expand Up @@ -109,7 +109,7 @@ codegen({
/**
* Log various steps to aid in tracking down bugs.
*
* @defaultValue `false`
* @default false
*/
debug: boolean,
});
Expand Down
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,43 @@ export interface Options {
/**
* Run codegen on server start.
*
* @defaultValue `true`
* @default true
*/
runOnStart?: boolean;
/**
* Run codegen on build. Will prevent build if codegen fails.
*
* @defaultValue `true`
* @default true
*/
runOnBuild?: boolean;
/**
* Enable codegen integration with vite file watcher.
*
* @defaultValue `true`
* @default true
*/
enableWatcher?: boolean;
/**
* Throw an error if codegen fails on server start.
*
* @defaultValue `false`
* @default false
*/
throwOnStart?: boolean;
/**
* Throw an error if codegen fails on build.
*
* @defaultValue `true`
* @default true
*/
throwOnBuild?: boolean;
/**
* Run codegen when a document matches.
*
* @defaultValue `true`
* @default true
*/
matchOnDocuments?: boolean;
/**
* Run codegen when a schema matches.
*
* @defaultValue `false`
* @default false
*/
matchOnSchemas?: boolean;
/**
Expand Down Expand Up @@ -81,7 +81,7 @@ export interface Options {
/**
* Log various steps to aid in tracking down bugs.
*
* @defaultValue `false`
* @default false
*/
debug?: boolean;
}
Expand Down

0 comments on commit 5b85be2

Please sign in to comment.