Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

fix typings #285

Merged
merged 1 commit into from
Oct 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export class SubscriptionServer {
private closeHandler: () => void;
private specifiedRules: Array<(context: ValidationContext) => any>;

public static create(options: ServerOptions, socketOptions: WebSocket.IServerOptions) {
public static create(options: ServerOptions, socketOptions: WebSocket.ServerOptions) {
return new SubscriptionServer(options, socketOptions);
}

constructor(options: ServerOptions, socketOptions: WebSocket.IServerOptions) {
constructor(options: ServerOptions, socketOptions: WebSocket.ServerOptions) {
const {
onOperation, onOperationComplete, onConnect, onDisconnect, keepAlive,
} = options;
Expand Down
2 changes: 1 addition & 1 deletion src/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const schema = new GraphQLSchema({
subscribe: withFilter(() => testPubsub.asyncIterator('userFiltered'),
(user: any, args: { [key: string]: any }) => {
return !args['id'] || user.id === parseInt(args['id'], 10);
}),
}) as any,
},
context: {
type: GraphQLString,
Expand Down