mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-26 10:54:12 +03:00
Reference ts files for Typescript
This commit is contained in:
parent
7f2b8212c1
commit
db6d261992
@ -180,8 +180,8 @@ app MyApp {
|
|||||||
// ...
|
// ...
|
||||||
db: {
|
db: {
|
||||||
seeds: [
|
seeds: [
|
||||||
import { devSeedSimple } from "@src/dbSeeds.js",
|
import { devSeedSimple } from "@src/dbSeeds.ts",
|
||||||
import { prodSeed } from "@src/dbSeeds.js"
|
import { prodSeed } from "@src/dbSeeds.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -243,7 +243,7 @@ async function createUser(prisma, data) {
|
|||||||
<TabItem value="ts" label="TypeScript">
|
<TabItem value="ts" label="TypeScript">
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { createTask } from './actions.js'
|
import { createTask } from './actions.ts'
|
||||||
import { type DbSeedFn } from 'wasp/server'
|
import { type DbSeedFn } from 'wasp/server'
|
||||||
import { sanitizeAndSerializeProviderData } from 'wasp/server/auth'
|
import { sanitizeAndSerializeProviderData } from 'wasp/server/auth'
|
||||||
import { type AuthUser } from 'wasp/auth'
|
import { type AuthUser } from 'wasp/auth'
|
||||||
@ -343,7 +343,7 @@ app MyApp {
|
|||||||
// ...
|
// ...
|
||||||
db: {
|
db: {
|
||||||
seeds: [
|
seeds: [
|
||||||
import devSeed from "@src/dbSeeds.js"
|
import devSeed from "@src/dbSeeds.ts"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -396,7 +396,7 @@ Use one of the following commands to run the seed functions:
|
|||||||
db: {
|
db: {
|
||||||
seeds: [
|
seeds: [
|
||||||
// ...
|
// ...
|
||||||
import { devSeedSimple } from "@src/dbSeeds.js",
|
import { devSeedSimple } from "@src/dbSeeds.ts",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,11 +60,11 @@ action markTaskAsDone {
|
|||||||
// ...
|
// ...
|
||||||
|
|
||||||
action createTask {
|
action createTask {
|
||||||
fn: import { createTask } from "@src/actions.js"
|
fn: import { createTask } from "@src/actions.ts"
|
||||||
}
|
}
|
||||||
|
|
||||||
action markTaskAsDone {
|
action markTaskAsDone {
|
||||||
fn: import { markTaskAsDone } from "@src/actions.js"
|
fn: import { markTaskAsDone } from "@src/actions.ts"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -487,12 +487,12 @@ action markTaskAsDone {
|
|||||||
```wasp {4,9} title="main.wasp"
|
```wasp {4,9} title="main.wasp"
|
||||||
|
|
||||||
action createTask {
|
action createTask {
|
||||||
fn: import { createTask } from "@src/actions.js",
|
fn: import { createTask } from "@src/actions.ts",
|
||||||
entities: [Task]
|
entities: [Task]
|
||||||
}
|
}
|
||||||
|
|
||||||
action markTaskAsDone {
|
action markTaskAsDone {
|
||||||
fn: import { markTaskAsDone } from "@src/actions.js",
|
fn: import { markTaskAsDone } from "@src/actions.ts",
|
||||||
entities: [Task]
|
entities: [Task]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -60,11 +60,11 @@ query getFilteredTasks {
|
|||||||
// ...
|
// ...
|
||||||
|
|
||||||
query getAllTasks {
|
query getAllTasks {
|
||||||
fn: import { getAllTasks } from "@src/queries.js"
|
fn: import { getAllTasks } from "@src/queries.ts"
|
||||||
}
|
}
|
||||||
|
|
||||||
query getFilteredTasks {
|
query getFilteredTasks {
|
||||||
fn: import { getFilteredTasks } from "@src/queries.js"
|
fn: import { getFilteredTasks } from "@src/queries.ts"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -616,7 +616,7 @@ Declaring the Query:
|
|||||||
|
|
||||||
```wasp
|
```wasp
|
||||||
query getFoo {
|
query getFoo {
|
||||||
fn: import { getFoo } from "@src/queries.js"
|
fn: import { getFoo } from "@src/queries.ts"
|
||||||
entities: [Foo]
|
entities: [Foo]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user