-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: avoid conflict import paths for Twoslash (#1069)
- Loading branch information
1 parent
534e043
commit 4182be3
Showing
59 changed files
with
206 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
export { create } from './Client.js' | ||
export { isError } from './Error.js' | ||
export { Select } from './Select.js' | ||
// We import the global module for good measure although it is not clear it is always needed. | ||
// It at least helps with Twoslash wherein without this import here Twoslash will not include the global module. | ||
// In real TypeScript projects it seems the global module is included automatically. But there could be certain tsconfig | ||
// setups where this still indeed does help. | ||
import './modules/Global.js' | ||
|
||
export { create } from './modules/Client.js' | ||
export { isError } from './modules/Error.js' | ||
export { Select } from './modules/Select.js' |
2 changes: 1 addition & 1 deletion
2
...generated-clients/SocialStudies/Client.ts → ...d-clients/SocialStudies/modules/Client.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...generated-clients/SocialStudies/Global.ts → ...d-clients/SocialStudies/modules/Global.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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '../../../../../src/entrypoints/scalars.js' |
2 changes: 1 addition & 1 deletion
2
...-clients/SocialStudies/SchemaBuildtime.ts → .../SocialStudies/modules/SchemaBuildtime.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ed-clients/SocialStudies/SchemaRuntime.ts → ...ts/SocialStudies/modules/SchemaRuntime.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
6 changes: 3 additions & 3 deletions
6
...generated-clients/SocialStudies/Select.ts → ...d-clients/SocialStudies/modules/Select.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
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
export { create } from './Client.js' | ||
export { isError } from './Error.js' | ||
export { Select } from './Select.js' | ||
// We import the global module for good measure although it is not clear it is always needed. | ||
// It at least helps with Twoslash wherein without this import here Twoslash will not include the global module. | ||
// In real TypeScript projects it seems the global module is included automatically. But there could be certain tsconfig | ||
// setups where this still indeed does help. | ||
import './modules/Global.js' | ||
|
||
export { create } from './modules/Client.js' | ||
export { isError } from './modules/Error.js' | ||
export { Select } from './modules/Select.js' |
2 changes: 1 addition & 1 deletion
2
...les/$/generated-clients/pokemon/Client.ts → ...nerated-clients/pokemon/modules/Client.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
website/pokemon/Global.ts → ...nerated-clients/pokemon/modules/Global.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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '../../../../../src/entrypoints/scalars.js' |
2 changes: 1 addition & 1 deletion
2
...erated-clients/pokemon/SchemaBuildtime.ts → ...lients/pokemon/modules/SchemaBuildtime.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...enerated-clients/pokemon/SchemaRuntime.ts → ...-clients/pokemon/modules/SchemaRuntime.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
6 changes: 3 additions & 3 deletions
6
...les/$/generated-clients/pokemon/Select.ts → ...nerated-clients/pokemon/modules/Select.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
14 changes: 14 additions & 0 deletions
14
examples/transport-http|transport-http_RequestInput.output.test.txt
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'post', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', | ||
'content-type': 'application/json', | ||
authorization: 'Bearer MY_TOKEN' | ||
}, | ||
signal: undefined, | ||
mode: 'cors', | ||
method: 'post', | ||
url: 'https://countries.trevorblades.com/graphql', | ||
body: '{"query":"{ languages { code } }"}' | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
'This operation was aborted' |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
"countries": [ | ||
{ | ||
"name": "Canada Mocked!" | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
examples/transport-http|transport-http_headers__dynamicHeaders.output.test.txt
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'post', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', | ||
'content-type': 'application/json', | ||
'x-sent-at-time': 'DYNAMIC_VALUE' | ||
}, | ||
signal: undefined, | ||
method: 'post', | ||
url: 'https://countries.trevorblades.com/graphql', | ||
body: '{"query":"{ languages { code } }"}' | ||
} |
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
48 changes: 48 additions & 0 deletions
48
examples/transport-http|transport-http_method-get.output.test.txt
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'getReads', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', | ||
'content-type': 'application/json' | ||
}, | ||
signal: undefined, | ||
method: 'post', | ||
url: URL { | ||
href: 'http://localhost:3000/graphql', | ||
origin: 'http://localhost:3000', | ||
protocol: 'http:', | ||
username: '', | ||
password: '', | ||
host: 'localhost:3000', | ||
hostname: 'localhost', | ||
port: '3000', | ||
pathname: '/graphql', | ||
search: '', | ||
searchParams: URLSearchParams {}, | ||
hash: '' | ||
}, | ||
body: '{"query":"mutation addPokemon(attack:0, defense:0, hp:1, name:\\"Nano\\") { name }"}' | ||
} | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'getReads', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8' | ||
}, | ||
signal: undefined, | ||
method: 'get', | ||
url: URL { | ||
href: 'http://localhost:3000/graphql?query=query+%7B+pokemonByName%28name%3A%22Nano%22%29+%7B+hp+%7D+%7D', | ||
origin: 'http://localhost:3000', | ||
protocol: 'http:', | ||
username: '', | ||
password: '', | ||
host: 'localhost:3000', | ||
hostname: 'localhost', | ||
port: '3000', | ||
pathname: '/graphql', | ||
search: '?query=query+%7B+pokemonByName%28name%3A%22Nano%22%29+%7B+hp+%7D+%7D', | ||
searchParams: URLSearchParams { 'query' => 'query { pokemonByName(name:"Nano") { hp } }' }, | ||
hash: '' | ||
} | ||
} |
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
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
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
Oops, something went wrong.