Fixes a types export issue (#1421)

This commit is contained in:
Mihovil Ilakovac 2023-08-31 11:56:20 +02:00 committed by GitHub
parent 66a04a07ce
commit 6b77b673a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 31 additions and 28 deletions

View File

@ -2,6 +2,9 @@
## 0.11.3
### 🐞 Bug fixes
- Fixes API types exports for TypeScript users
### 🎉 [New Feature] Type-safe links
Wasp now offers a way to link to pages in your app in a type-safe way. This means that you can't accidentally link to a page that doesn't exist, or pass the wrong arguments to a page.

View File

@ -1,2 +1,2 @@
// todo(filip): turn into a proper import/path
export { type SanitizedUser as User } from '../../../server/src/_types/'
export type { SanitizedUser as User } from '../../../server/src/_types/'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,

View File

@ -2,7 +2,7 @@
import { type ParamsDictionary as ExpressParams, type Query as ExpressQuery } from 'express-serve-static-core'
export { ParamsDictionary as ExpressParams, Query as ExpressQuery } from 'express-serve-static-core'
export type { ParamsDictionary as ExpressParams, Query as ExpressQuery } from 'express-serve-static-core'
import {
{=# allEntities =}

View File

@ -11,7 +11,7 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'
{=# isExternalAuthEnabled =}
export type { GetUserFieldsFn } from '../auth/providers/oauth/types';

View File

@ -242,7 +242,7 @@
"file",
"server/src/types/index.ts"
],
"1fd50e251e340a5bc8c51369766e8c889cf892cdbe6593b4d58a6ee585b6d2cc"
"1958cfc3e3b5f59490168797e4b8dcdc38f32346e734f90df3fb6baa264b36b5"
],
[
[
@ -536,7 +536,7 @@
"file",
"web-app/src/test/vitest/helpers.tsx"
],
"a0576215b0786c6e082b8a83f6418a3acb084bfb673a152baad8e8a7fc46fcae"
"a38e55c9999a87ab497538bcad7c880f32a4d27f2227ae326cb76eb0848b89e9"
],
[
[

View File

@ -10,6 +10,6 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,

View File

@ -249,7 +249,7 @@
"file",
"server/src/types/index.ts"
],
"1fd50e251e340a5bc8c51369766e8c889cf892cdbe6593b4d58a6ee585b6d2cc"
"1958cfc3e3b5f59490168797e4b8dcdc38f32346e734f90df3fb6baa264b36b5"
],
[
[
@ -550,7 +550,7 @@
"file",
"web-app/src/test/vitest/helpers.tsx"
],
"a0576215b0786c6e082b8a83f6418a3acb084bfb673a152baad8e8a7fc46fcae"
"a38e55c9999a87ab497538bcad7c880f32a4d27f2227ae326cb76eb0848b89e9"
],
[
[

View File

@ -10,6 +10,6 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,

View File

@ -123,7 +123,7 @@
"file",
"server/src/apis/types.ts"
],
"68417d37842d9186a6a9d942d65f8a18f2da8c0a9cf8a0dd5f1a4b087f6d4e20"
"858df39f218f37d2500f8ea9847e6ff7a2e1b58214bbe717fe6b48651e7fc6a6"
],
[
[
@ -501,7 +501,7 @@
"file",
"server/src/types/index.ts"
],
"04e01e653bd889436903843cf1dae0a6ba0ecbc1c369beef0e90fae4d0c21127"
"0044d2263b936cbc20a278afa4aa61cd9d85821325f490b3cee8bbfb068ed836"
],
[
[
@ -753,7 +753,7 @@
"file",
"web-app/src/auth/types.ts"
],
"b6572845796b4217c142b855fc72652d5dfd67fd317b0ed5487fa70ba3d92219"
"0d37136807f6d196015d07b65ab56280ae5f56cac9be84992318886550ce4ad3"
],
[
[
@ -956,7 +956,7 @@
"file",
"web-app/src/test/vitest/helpers.tsx"
],
"a0576215b0786c6e082b8a83f6418a3acb084bfb673a152baad8e8a7fc46fcae"
"a38e55c9999a87ab497538bcad7c880f32a4d27f2227ae326cb76eb0848b89e9"
],
[
[

View File

@ -1,7 +1,7 @@
import { type ParamsDictionary as ExpressParams, type Query as ExpressQuery } from 'express-serve-static-core'
export { ParamsDictionary as ExpressParams, Query as ExpressQuery } from 'express-serve-static-core'
export type { ParamsDictionary as ExpressParams, Query as ExpressQuery } from 'express-serve-static-core'
import {
type Api,

View File

@ -10,7 +10,7 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'
export type { GetUserFieldsFn } from '../auth/providers/oauth/types';

View File

@ -1,2 +1,2 @@
// todo(filip): turn into a proper import/path
export { type SanitizedUser as User } from '../../../server/src/_types/'
export type { SanitizedUser as User } from '../../../server/src/_types/'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,

View File

@ -263,7 +263,7 @@
"file",
"server/src/types/index.ts"
],
"1fd50e251e340a5bc8c51369766e8c889cf892cdbe6593b4d58a6ee585b6d2cc"
"1958cfc3e3b5f59490168797e4b8dcdc38f32346e734f90df3fb6baa264b36b5"
],
[
[
@ -564,7 +564,7 @@
"file",
"web-app/src/test/vitest/helpers.tsx"
],
"a0576215b0786c6e082b8a83f6418a3acb084bfb673a152baad8e8a7fc46fcae"
"a38e55c9999a87ab497538bcad7c880f32a4d27f2227ae326cb76eb0848b89e9"
],
[
[

View File

@ -10,6 +10,6 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,

View File

@ -249,7 +249,7 @@
"file",
"server/src/types/index.ts"
],
"1fd50e251e340a5bc8c51369766e8c889cf892cdbe6593b4d58a6ee585b6d2cc"
"1958cfc3e3b5f59490168797e4b8dcdc38f32346e734f90df3fb6baa264b36b5"
],
[
[
@ -550,7 +550,7 @@
"file",
"web-app/src/test/vitest/helpers.tsx"
],
"a0576215b0786c6e082b8a83f6418a3acb084bfb673a152baad8e8a7fc46fcae"
"a38e55c9999a87ab497538bcad7c880f32a4d27f2227ae326cb76eb0848b89e9"
],
[
[

View File

@ -10,6 +10,6 @@ export type ServerSetupFnContext = {
}
export type { Application } from 'express'
export { Server } from 'http'
export type { Server } from 'http'

View File

@ -10,7 +10,7 @@ import { Query } from '../../queries'
import config from '../../config'
import { HttpMethod, Route } from '../../types'
export { type Route } from '../../types'
export type { Route } from '../../types'
export type MockQuery = <Input, Output, MockOutput extends Output>(
query: Query<Input, Output>,