@isograph/react 0.0.0-main-5a08f41e → 0.0.0-main-d25e8223

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.
@@ -19,5 +19,5 @@ type UseSkipLimitReturnValue<TArgs, TItem> = {
19
19
  export declare function useSkipLimitPagination<TArgs extends {
20
20
  skip: number | void | null;
21
21
  limit: number | void | null;
22
- }, TItem, TReadFromStore extends Object>(loadableField: LoadableField<TArgs, Array<TItem>>): UseSkipLimitReturnValue<TArgs, TItem>;
22
+ }, TItem, TReadFromStore extends Object>(loadableField: LoadableField<TArgs, ReadonlyArray<TItem>>): UseSkipLimitReturnValue<TArgs, TItem>;
23
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-5a08f41e",
3
+ "version": "0.0.0-main-d25e8223",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -17,9 +17,9 @@
17
17
  "tsc": "tsc"
18
18
  },
19
19
  "dependencies": {
20
- "@isograph/disposable-types": "0.0.0-main-5a08f41e",
21
- "@isograph/react-disposable-state": "0.0.0-main-5a08f41e",
22
- "@isograph/reference-counted-pointer": "0.0.0-main-5a08f41e"
20
+ "@isograph/disposable-types": "0.0.0-main-d25e8223",
21
+ "@isograph/react-disposable-state": "0.0.0-main-d25e8223",
22
+ "@isograph/reference-counted-pointer": "0.0.0-main-d25e8223"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "18.2.0"
@@ -70,7 +70,7 @@ export function useSkipLimitPagination<
70
70
  TItem,
71
71
  TReadFromStore extends Object,
72
72
  >(
73
- loadableField: LoadableField<TArgs, Array<TItem>>,
73
+ loadableField: LoadableField<TArgs, ReadonlyArray<TItem>>,
74
74
  ): UseSkipLimitReturnValue<TArgs, TItem> {
75
75
  const networkRequestOptions = {
76
76
  suspendIfInFlight: true,
@@ -2,10 +2,10 @@
2
2
  import { type Variables } from '@isograph/react';
3
3
 
4
4
  export type Query__meName__param = {
5
- data: {
6
- me: {
7
- name: string,
5
+ readonly data: {
6
+ readonly me: {
7
+ readonly name: string,
8
8
  },
9
9
  },
10
- parameters: Variables,
10
+ readonly parameters: Variables,
11
11
  };
@@ -2,15 +2,15 @@
2
2
  import { type Variables } from '@isograph/react';
3
3
 
4
4
  export type Query__meNameSuccessor__param = {
5
- data: {
6
- me: {
7
- name: string,
8
- successor: ({
9
- successor: ({
10
- name: string,
5
+ readonly data: {
6
+ readonly me: {
7
+ readonly name: string,
8
+ readonly successor: ({
9
+ readonly successor: ({
10
+ readonly name: string,
11
11
  } | null),
12
12
  } | null),
13
13
  },
14
14
  },
15
- parameters: Variables,
15
+ readonly parameters: Variables,
16
16
  };
@@ -2,10 +2,10 @@
2
2
  import { type Variables } from '@isograph/react';
3
3
 
4
4
  export type Query__nodeField__param = {
5
- data: {
6
- node: ({
7
- id: string,
5
+ readonly data: {
6
+ readonly node: ({
7
+ readonly id: string,
8
8
  } | null),
9
9
  },
10
- parameters: Variables,
10
+ readonly parameters: Variables,
11
11
  };