@isograph/react 0.0.0-main-d629a5be → 0.0.0-main-e00afd29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isograph/react",
|
3
|
-
"version": "0.0.0-main-
|
3
|
+
"version": "0.0.0-main-e00afd29",
|
4
4
|
"description": "Use Isograph with React",
|
5
5
|
"homepage": "https://isograph.dev",
|
6
6
|
"main": "dist/index.js",
|
@@ -16,8 +16,8 @@
|
|
16
16
|
"prepack": "yarn run test && yarn run compile"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@isograph/disposable-types": "0.0.0-main-
|
20
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
19
|
+
"@isograph/disposable-types": "0.0.0-main-e00afd29",
|
20
|
+
"@isograph/react-disposable-state": "0.0.0-main-e00afd29",
|
21
21
|
"react": "^18.2.0"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
package/src/FragmentReference.ts
CHANGED
@@ -13,6 +13,6 @@ export type FragmentReference<
|
|
13
13
|
readerArtifact: ReaderArtifact<TReadFromStore, TClientFieldValue>;
|
14
14
|
root: DataId;
|
15
15
|
variables: { [index: string]: Variable } | null;
|
16
|
-
// TODO: We should instead have ReaderAst<
|
16
|
+
// TODO: We should instead have ReaderAst<TClientFieldProps>
|
17
17
|
nestedRefetchQueries: RefetchQueryArtifactWrapper[];
|
18
18
|
};
|
@@ -6,12 +6,12 @@ import entrypoint_Query__meNameSuccessor from '../__isograph/Query/meNameSuccess
|
|
6
6
|
import entrypoint_Query__meName from '../__isograph/Query/meName/entrypoint';
|
7
7
|
import entrypoint_Query__nodeField from '../__isograph/Query/nodeField/entrypoint';
|
8
8
|
|
9
|
-
type IdentityWithParam<TParam> = <
|
10
|
-
x: (param: TParam) =>
|
11
|
-
) => (param: TParam) =>
|
12
|
-
type IdentityWithParamComponent<TParam> = <
|
13
|
-
x: (data: TParam, secondParam: TSecondParam) =>
|
14
|
-
) => (data: TParam, secondParam: TSecondParam) =>
|
9
|
+
type IdentityWithParam<TParam> = <TClientFieldReturn>(
|
10
|
+
x: (param: TParam) => TClientFieldReturn
|
11
|
+
) => (param: TParam) => TClientFieldReturn;
|
12
|
+
type IdentityWithParamComponent<TParam> = <TClientFieldReturn, TSecondParam = Record<string, never>>(
|
13
|
+
x: (data: TParam, secondParam: TSecondParam) => TClientFieldReturn
|
14
|
+
) => (data: TParam, secondParam: TSecondParam) => TClientFieldReturn;
|
15
15
|
|
16
16
|
type WhitespaceCharacter = ' ' | '\t' | '\n';
|
17
17
|
type Whitespace<In> = In extends `${WhitespaceCharacter}${infer In}`
|
@@ -52,9 +52,9 @@ export function iso(_isographLiteralText: string):
|
|
52
52
|
| IdentityWithParamComponent<any>
|
53
53
|
| IsographEntrypoint<any, any>
|
54
54
|
{
|
55
|
-
return function identity<
|
56
|
-
clientFieldOrEntrypoint: (param: any) =>
|
57
|
-
): (param: any) =>
|
55
|
+
return function identity<TClientFieldReturn>(
|
56
|
+
clientFieldOrEntrypoint: (param: any) => TClientFieldReturn,
|
57
|
+
): (param: any) => TClientFieldReturn {
|
58
58
|
return clientFieldOrEntrypoint;
|
59
59
|
};
|
60
60
|
}
|