@isograph/react 0.0.0-main-e634679c → 0.0.0-main-c9bf41eb
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/dist/index.d.ts +3 -0
- package/package.json +3 -3
- package/src/index.tsx +5 -0
package/dist/index.d.ts
CHANGED
@@ -20,6 +20,9 @@ export type ReaderArtifact<TReadFromStore extends Object, TResolverProps, TResol
|
|
20
20
|
export type ReaderAstNode = ReaderScalarField | ReaderLinkedField | ReaderResolverField | ReaderRefetchField | ReaderMutationField;
|
21
21
|
export type ReaderAst<TReadFromStore> = ReaderAstNode[];
|
22
22
|
export type ExtractSecondParam<T extends (arg1: any, arg2: any) => any> = T extends (arg1: any, arg2: infer P) => any ? P : never;
|
23
|
+
export type Prettify<T> = {
|
24
|
+
[K in keyof T]: T[K];
|
25
|
+
} & {};
|
23
26
|
export type ReaderScalarField = {
|
24
27
|
kind: 'Scalar';
|
25
28
|
fieldName: string;
|
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-c9bf41eb",
|
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-c9bf41eb",
|
20
|
+
"@isograph/react-disposable-state": "0.0.0-main-c9bf41eb",
|
21
21
|
"react": "^18.2.0"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
package/src/index.tsx
CHANGED
@@ -82,6 +82,11 @@ export type ReaderAst<TReadFromStore> = ReaderAstNode[];
|
|
82
82
|
export type ExtractSecondParam<T extends (arg1: any, arg2: any) => any> =
|
83
83
|
T extends (arg1: any, arg2: infer P) => any ? P : never;
|
84
84
|
|
85
|
+
// See https://www.totaltypescript.com/concepts/the-prettify-helper
|
86
|
+
export type Prettify<T> = {
|
87
|
+
[K in keyof T]: T[K];
|
88
|
+
} & {};
|
89
|
+
|
85
90
|
export type ReaderScalarField = {
|
86
91
|
kind: 'Scalar';
|
87
92
|
fieldName: string;
|