From db6d26199263591493f8cded8fd7bd09c7120376 Mon Sep 17 00:00:00 2001 From: Sergio Visinoni Date: Sat, 14 Sep 2024 09:31:56 +0200 Subject: [PATCH] Reference ts files for Typescript --- web/docs/data-model/backends.md | 10 +++++----- web/docs/data-model/operations/actions.md | 8 ++++---- web/docs/data-model/operations/queries.md | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/web/docs/data-model/backends.md b/web/docs/data-model/backends.md index 5181e8ca1..5a9aed771 100644 --- a/web/docs/data-model/backends.md +++ b/web/docs/data-model/backends.md @@ -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" ] } } @@ -243,7 +243,7 @@ async function createUser(prisma, data) { ```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' @@ -343,7 +343,7 @@ app MyApp { // ... db: { 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: { seeds: [ // ... - import { devSeedSimple } from "@src/dbSeeds.js", + import { devSeedSimple } from "@src/dbSeeds.ts", ] } } diff --git a/web/docs/data-model/operations/actions.md b/web/docs/data-model/operations/actions.md index 8ec0290f4..618c6f9ae 100644 --- a/web/docs/data-model/operations/actions.md +++ b/web/docs/data-model/operations/actions.md @@ -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" } ``` @@ -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] } ``` diff --git a/web/docs/data-model/operations/queries.md b/web/docs/data-model/operations/queries.md index c5a0a982f..1562ed88e 100644 --- a/web/docs/data-model/operations/queries.md +++ b/web/docs/data-model/operations/queries.md @@ -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" } ``` @@ -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] } ```