Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation errors #2281

Open
wants to merge 2 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions web/docs/data-model/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ app MyApp {
// ...
db: {
seeds: [
import { devSeedSimple } from "@src/dbSeeds.js",
import { prodSeed } from "@src/dbSeeds.js"
import { devSeedSimple } from "@src/dbSeeds.ts",
import { prodSeed } from "@src/dbSeeds.ts"
]
}
}
Expand Down Expand Up @@ -243,7 +243,7 @@ async function createUser(prisma, data) {
<TabItem value="ts" label="TypeScript">

```ts
import { createTask } from './actions.js'
import { createTask } from './actions.ts'
import { type DbSeedFn } from 'wasp/server'
import { sanitizeAndSerializeProviderData } from 'wasp/server/auth'
import { type AuthUser } from 'wasp/auth'
Expand Down Expand Up @@ -343,7 +343,7 @@ app MyApp {
// ...
db: {
seeds: [
import devSeed from "@src/dbSeeds.js"
import devSeed from "@src/dbSeeds.ts"
],
}
}
Expand Down Expand Up @@ -396,7 +396,7 @@ Use one of the following commands to run the seed functions:
db: {
seeds: [
// ...
import { devSeedSimple } from "@src/dbSeeds.js",
import { devSeedSimple } from "@src/dbSeeds.ts",
]
}
}
Expand Down
8 changes: 4 additions & 4 deletions web/docs/data-model/operations/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ action markTaskAsDone {
// ...

action createTask {
fn: import { createTask } from "@src/actions.js"
fn: import { createTask } from "@src/actions.ts"
}

action markTaskAsDone {
fn: import { markTaskAsDone } from "@src/actions.js"
fn: import { markTaskAsDone } from "@src/actions.ts"
}
```

Expand Down Expand Up @@ -487,12 +487,12 @@ action markTaskAsDone {
```wasp {4,9} title="main.wasp"

action createTask {
fn: import { createTask } from "@src/actions.js",
fn: import { createTask } from "@src/actions.ts",
entities: [Task]
}

action markTaskAsDone {
fn: import { markTaskAsDone } from "@src/actions.js",
fn: import { markTaskAsDone } from "@src/actions.ts",
entities: [Task]
}
```
Expand Down
8 changes: 4 additions & 4 deletions web/docs/data-model/operations/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ query getFilteredTasks {
// ...

query getAllTasks {
fn: import { getAllTasks } from "@src/queries.js"
fn: import { getAllTasks } from "@src/queries.ts"
}

query getFilteredTasks {
fn: import { getFilteredTasks } from "@src/queries.js"
fn: import { getFilteredTasks } from "@src/queries.ts"
}
```

Expand Down Expand Up @@ -204,7 +204,7 @@ Read more about type support for implementing Queries in the [API Reference](#im

:::tip Inferring the return type

If don't want to explicitly type the Query's return value, the `satisfies` keyword tells TypeScript to infer it automatically:
If you don't want to explicitly type the Query's return value, the `satisfies` keyword tells TypeScript to infer it automatically:

```typescript
const getFoo = (async (_args, context) => {
Expand Down Expand Up @@ -616,7 +616,7 @@ Declaring the Query:

```wasp
query getFoo {
fn: import { getFoo } from "@src/queries.js"
fn: import { getFoo } from "@src/queries.ts"
entities: [Foo]
}
```
Expand Down