Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit da1e9bf

Browse files
Remove '@types/node' and '@types/graphql' from dependencies (#535)
Inspired by: https://github.com/stream-utils/raw-body/blob/master/README.md#typescript
1 parent b580889 commit da1e9bf

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ Create a GraphQL HTTP server with any HTTP web framework that supports connect s
1212
npm install --save express-graphql
1313
```
1414

15+
### TypeScript
16+
17+
This module includes a [TypeScript](https://www.typescriptlang.org/)
18+
declaration file to enable auto complete in compatible editors and type
19+
information for TypeScript projects. This module depends on 'graphql' and the Node.js
20+
types, so install `@types/graphql` and `@types/node`:
21+
22+
```sh
23+
$ npm install --save --dev @types/graphql @types/node
24+
```
1525

1626
## Simple Setup
1727

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
"start": "node -r @babel/register examples/index.js"
5050
},
5151
"dependencies": {
52-
"@types/graphql": "*",
53-
"@types/node": "*",
5452
"accepts": "^1.3.7",
5553
"content-type": "^1.0.4",
5654
"http-errors": "^1.7.3",

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,6 @@
241241
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
242242
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==
243243

244-
"@types/graphql@*":
245-
version "14.2.2"
246-
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-14.2.2.tgz#10f197e6f8559c11b16d630c5e9c10c3c8e61c5e"
247-
integrity sha512-okXbUmdZFMO3AYBEJCcpJFPFDkKmIiZZBqWD5TmPtAv+GHfjD2qLZEI0PvZ8IWMU4ozoK2HV2lDxWjw4LbVlnw==
248-
249-
"@types/node@*":
250-
version "12.0.12"
251-
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.12.tgz#cc791b402360db1eaf7176479072f91ee6c6c7ca"
252-
integrity sha512-Uy0PN4R5vgBUXFoJrKryf5aTk3kJ8Rv3PdlHjl6UaX+Cqp1QE0yPQ68MPXGrZOfG7gZVNDIJZYyot0B9ubXUrQ==
253-
254244
"@types/parsimmon@^1.3.0":
255245
version "1.10.0"
256246
resolved "https://registry.yarnpkg.com/@types/parsimmon/-/parsimmon-1.10.0.tgz#ffb81cb023ff435a41d4710a29ab23c561dc9fdf"

0 commit comments

Comments
 (0)