Skip to content

Commit

Permalink
docs(ts): fix title level
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronicStone committed Jul 17, 2024
1 parent 2d1f767 commit b025dda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/features/type-safety.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Type-Safe Queries
# Type-Safe Queries

ArrayQuery provides type safety for query parameters, ensuring that you can only use valid keys for sorting, searching, and filtering. This feature helps catch errors at compile-time and provides excellent autocompletion support in your IDE.

### Sorting
## Sorting

When specifying the `key` for sorting, you'll get type-safe suggestions based on the properties of your data:

Expand All @@ -23,7 +23,7 @@ const result = query(users, {

Hovering over the empty string will show a popover with valid options: `"id" | "name" | "age" | "email"`.

### Searching
## Searching

The `keys` array in the search options is also type-safe:

Expand All @@ -47,7 +47,7 @@ const result = query(products, {

The popover for the empty string will show: `"id" | "name" | "price" | "description"`.

### Filtering
## Filtering

Filter keys are also type-safe, including for nested properties:

Expand All @@ -68,7 +68,7 @@ const result = query(employees, {
})
```

### Complex Nested Structures
## Complex Nested Structures

ArrayQuery handles complex nested structures with ease:

Expand Down

0 comments on commit b025dda

Please sign in to comment.