-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change typescript modules to esnext * Fix tsconfigs and use recommended settings * Fix server not loading env variables * Fix TS output overwriting error * Fix wrong types * Change MainPage.tsx to MainPage.jsx * Remove duplication for Node tsconfig * Update e2e tests for TS fixes * Fix formatting
- Loading branch information
Showing
78 changed files
with
860 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export type Action<Input, Output> = (args?: Input) => Promise<Output>; | ||
import { Action } from '.' | ||
|
||
export function createAction<Input, Output>(actionRoute: string, entitiesUsed: unknown[]): Action<Input, Output> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
waspc/data/Generator/templates/react-app/src/queries/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { UseQueryResult } from "@tanstack/react-query"; | ||
import { OutputHTMLAttributes } from "react"; | ||
import { Query } from "./core"; | ||
|
||
export function useQuery<Input, Output>( | ||
export type Query<Input, Output> = (args: Input) => Promise<Output> | ||
|
||
export function useQuery<Input, Output, Error = unknown>( | ||
queryFn: Query<Input, Output>, | ||
queryFnArgs?: Input, options?: any | ||
): UseQueryResult<Output, any> | ||
): UseQueryResult<Output, Error> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
{ | ||
"extends": "@tsconfig/node18/tsconfig.json", | ||
"compilerOptions": { | ||
// Overriding this until we implement more complete TypeScript support. | ||
"strict": false, | ||
// Overriding this because we want to use top-level await | ||
"module": "esnext", | ||
// Enable source map for debugging | ||
"sourceMap": true, | ||
|
||
// The remaining settings should match node18/tsconfig.json, but I kept | ||
// them here to be explicit. | ||
|
||
// Enable default imports in TypeScript. | ||
"esModuleInterop": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "dist", | ||
"allowJs": true, | ||
// Enable source map for debugging | ||
"sourceMap": true | ||
"allowJs": true | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.