mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Use esModuleInterop mode, and improve tests
This commit is contained in:
parent
7355fe1925
commit
e59848763a
@ -1,27 +1,3 @@
|
||||
import { GraphQLSchema, GraphQLObjectType, GraphQLString } from "graphql";
|
||||
import { execute } from "graphql-api-koa";
|
||||
|
||||
execute({
|
||||
schema: new GraphQLSchema({
|
||||
query: new GraphQLObjectType({
|
||||
name: "Query",
|
||||
fields: () => ({
|
||||
hello: {
|
||||
type: GraphQLString,
|
||||
resolve() {
|
||||
return "world";
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
});
|
||||
|
||||
/* This is the thest that SHOULD exist here... but for whatever reason, the
|
||||
DefinitelyTyped repo always errors with:
|
||||
|
||||
Module '"/Users/mike/Code/DefinitelyTyped/types/koa/index"' has no default export.
|
||||
|
||||
import Koa from "koa";
|
||||
import { GraphQLSchema, GraphQLObjectType, GraphQLString } from "graphql";
|
||||
import { errorHandler, execute } from "graphql-api-koa";
|
||||
@ -43,4 +19,3 @@ const app = new Koa()
|
||||
})
|
||||
})
|
||||
}));
|
||||
*/
|
||||
|
||||
@ -14,7 +14,8 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user