Skip to content

Commit

Permalink
replace using Type.Intersect with Type.Composite in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
alidplus committed Sep 9, 2024
1 parent 785fde8 commit 5e466e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/generators/src/app/templates/configuration.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import type { Static } from '@feathersjs/typebox'
import { dataValidator } from './validators'
export const configurationSchema = Type.Intersect([
export const configurationSchema = Type.Composite([
defaultAppConfiguration,
Type.Object({
host: Type.String(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const ${camelName}QueryProperties = Type.Pick(${camelName}Schema, [
: `'text'`
}
])
export const ${camelName}QuerySchema = Type.Intersect([
export const ${camelName}QuerySchema = Type.Composite([
querySyntax(${camelName}QueryProperties),
// Add additional query properties here
Type.Object({}, { additionalProperties: false })
Expand Down

0 comments on commit 5e466e4

Please sign in to comment.