We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f0e2e2 commit 96a5b13Copy full SHA for 96a5b13
1 file changed
index.d.ts
@@ -17,7 +17,7 @@ declare module "moleculer-apollo-server" {
17
defaultPlaygroundOptions,
18
} from "apollo-server-core";
19
20
- export { GraphQLUpload } from 'graphql-upload';
+ export { GraphQLUpload } from "graphql-upload";
21
22
export * from "graphql-tools";
23
@@ -50,9 +50,11 @@ declare module "moleculer-apollo-server" {
50
};
51
}
52
53
+ type CorsMethods = "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS";
54
+
55
export interface ServiceRouteCorsOptions {
56
origin?: string | string[];
- methods?: "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS"[];
57
+ methods?: CorsMethods | CorsMethods[];
58
allowedHeaders?: string[];
59
exposedHeaders?: string[];
60
credentials?: boolean;
0 commit comments