github-schema 1.8.1 → 1.10.1
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/README.md +3 -3
- package/dist/github-schema.d.cts +191 -4
- package/dist/github-schema.d.ts +191 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/github-schema.graphql +405 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install github-schema
|
|
|
14
14
|
## 📚 Usage
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
import { gql, gqlTyped } from
|
|
17
|
+
import { gql, gqlTyped } from "github-schema";
|
|
18
18
|
|
|
19
19
|
// we are also exporting a ton of types from the graphql schema.
|
|
20
20
|
|
|
@@ -36,14 +36,14 @@ const REPOSITORY_QUERY = gql`
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
`;
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
> [!NOTE]
|
|
43
43
|
> If you want to use `gql` with return type of `DocumentNode` you can do something like this:
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
|
-
import { gqlTyped } from
|
|
46
|
+
import { gqlTyped } from "github-schema";
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Editor Autocompletion
|