Skip to content

Commit

Permalink
feat: export schemaDefinitionOptions from pkg
Browse files Browse the repository at this point in the history
fixes #467
  • Loading branch information
aldeed committed Dec 11, 2022
1 parent b113d9c commit 43d8d3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/SimpleSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
import { forEachKeyAncestor, humanize, isEmptyObject } from './utility/index.js'
import ValidationContext from './ValidationContext.js'

// Exported for tests
export const schemaDefinitionOptions = [
'autoValue',
'defaultValue',
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import './clean.js'

import { SimpleSchema, ValidationContext } from './SimpleSchema.js'
import { schemaDefinitionOptions, SimpleSchema, ValidationContext } from './SimpleSchema.js'
import { toJsonSchema } from './toJsonSchema.js'

SimpleSchema.ValidationContext = ValidationContext

export { toJsonSchema, ValidationContext }
export { schemaDefinitionOptions, toJsonSchema, ValidationContext }

export default SimpleSchema

0 comments on commit 43d8d3d

Please sign in to comment.