mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 01:54:37 +03:00
Update todoApp tests. Comment update.
This commit is contained in:
parent
e231dda38c
commit
f431153718
@ -17,7 +17,7 @@
|
||||
"strictNullChecks": true,
|
||||
// See https://github.com/wasp-lang/wasp/issues/2056 before activating this:
|
||||
// "useUnknownInCatchVariables": true,
|
||||
// The following 3 stict options will require more work:
|
||||
// The following 2 stict options will require more work:
|
||||
// "noImplicitAny": true,
|
||||
// "strictPropertyInitialization": true,
|
||||
// Overriding this because we want to use top-level await
|
||||
|
@ -1,4 +1,3 @@
|
||||
// @ts-nocheck
|
||||
import { AuthUser } from 'wasp/auth'
|
||||
import { getMe } from 'wasp/client/auth'
|
||||
import {
|
||||
@ -32,17 +31,17 @@ import { Expect, Equal } from '../helpers'
|
||||
import { QueryMetadata } from 'wasp/client/operations/rpc'
|
||||
|
||||
type TestCases = [
|
||||
Expect<Equal<typeof taskToTaskSpecified, (args: Task) => Promise<Task>>>,
|
||||
Expect<Equal<typeof taskToTaskSpecified, (args?: Task) => Promise<Task>>>,
|
||||
Expect<
|
||||
Equal<
|
||||
typeof taskToTaskUnspecified,
|
||||
(args: Task) => ReturnType<typeof taskToTaskUnspecifiedDefinition>
|
||||
(args?: Task) => ReturnType<typeof taskToTaskUnspecifiedDefinition>
|
||||
>
|
||||
>,
|
||||
Expect<
|
||||
Equal<
|
||||
typeof taskToTaskSatisfies,
|
||||
(args: Task) => ReturnType<typeof taskToTaskSatisfiesDefinition>
|
||||
(args?: Task) => ReturnType<typeof taskToTaskSatisfiesDefinition>
|
||||
>
|
||||
>,
|
||||
Expect<
|
||||
@ -50,12 +49,12 @@ type TestCases = [
|
||||
>,
|
||||
Expect<Equal<typeof voidToStringNoAuth, () => Promise<string>>>,
|
||||
Expect<
|
||||
Equal<typeof boolToStringNoAuth, (payload: boolean) => Promise<string>>
|
||||
Equal<typeof boolToStringNoAuth, (payload?: boolean) => Promise<string>>
|
||||
>,
|
||||
Expect<Equal<typeof voidToStringAuth, () => Promise<string>>>,
|
||||
Expect<Equal<typeof boolToStringAuth, (payload: boolean) => Promise<string>>>,
|
||||
Expect<Equal<typeof boolToVoidNoAuth, (payload: boolean) => Promise<void>>>,
|
||||
Expect<Equal<typeof boolToVoidAuth, (payload: boolean) => Promise<void>>>,
|
||||
Expect<Equal<typeof boolToStringAuth, (payload?: boolean) => Promise<string>>>,
|
||||
Expect<Equal<typeof boolToVoidNoAuth, (payload?: boolean) => Promise<void>>>,
|
||||
Expect<Equal<typeof boolToVoidAuth, (payload?: boolean) => Promise<void>>>,
|
||||
Expect<Equal<typeof getDate, QueryMetadata & (() => Promise<Date>)>>,
|
||||
Expect<
|
||||
Equal<
|
||||
|
Loading…
Reference in New Issue
Block a user