Skip to content

Commit ce237d4

Browse files
ltphenconfuser
andauthored
feat: added typescript definitions (#68)
Co-authored-by: James Mortemore <[email protected]>
1 parent d7ce58c commit ce237d4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ npm-debug.log
66
typings*
77
.sync
88
.vscode
9+
.idea

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {GraphQLSchema} from "graphql";
2+
3+
export function constraintDirective () : (schema: GraphQLSchema) => GraphQLSchema;
4+
5+
export const constraintDirectiveTypeDefs: string

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.1.1",
44
"description": "Validate GraphQL fields",
55
"main": "index.js",
6+
"types": "index.d.ts",
67
"scripts": {
78
"test": "standard && nyc --reporter=html --reporter=text --reporter=lcov mocha test/**/*.test.js"
89
},

0 commit comments

Comments
 (0)