Skip to content

Commit

Permalink
feat(compiler): recover property parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Jan 15, 2025
1 parent 72fc8f1 commit 61689ce
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 751 deletions.
10 changes: 3 additions & 7 deletions packages/compiler/src/ast.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Property, AccessCondition, CollectionActions, SearchOptions } from '@aeriajs/types'
import type { Property, AccessCondition, CollectionActions, SearchOptions, DescriptionPreset } from '@aeriajs/types'
import type { ArrayProperties } from './utils.js'

export const LOCATION_SYMBOL = Symbol()
Expand Down Expand Up @@ -60,18 +60,14 @@ export type CollectionNode = NodeBase<'collection'> & {
}>
required?: Record<string, unknown> | string[]
indexes?: string[]
presets?: string[]
presets?: DescriptionPreset[]
form?: string[]
table?: string[]
filters?: string[]
search?: SearchOptions
[LOCATION_SYMBOL]: {
arrays: {
[
P in Extract<keyof CollectionNode, string> as NonNullable<CollectionNode[P]> extends string[]
? P
: never
]?: symbol[]
[P in ArrayProperties<CollectionNode>]?: symbol[]
}
}
}
Expand Down
Loading

0 comments on commit 61689ce

Please sign in to comment.