Better naming

This commit is contained in:
Chi Vinh Le
2018-08-30 16:15:56 +02:00
parent 09caad7bdd
commit b83d965d6c
@@ -9,10 +9,10 @@ import {
} from "talk-framework/lib/relay";
import { Omit } from "talk-framework/types";
import { CreateCommentMutation } from "talk-stream/__generated__/CreateCommentMutation.graphql";
import { CreateCommentMutation as CreateCommentType } from "talk-stream/__generated__/CreateCommentMutation.graphql";
export type CreateCommentInput = Omit<
CreateCommentMutation["variables"]["input"],
CreateCommentType["variables"]["input"],
"clientMutationId"
>;
@@ -41,7 +41,7 @@ let clientMutationId = 0;
function commit(environment: Environment, input: CreateCommentInput) {
const me = getMe(environment)!;
const currentDate = new Date().toISOString();
return commitMutationPromiseNormalized<CreateCommentMutation>(environment, {
return commitMutationPromiseNormalized<CreateCommentType>(environment, {
mutation,
variables: {
input: {
@@ -90,4 +90,4 @@ export const withCreateCommentMutation = createMutationContainer(
export type CreateCommentMutation = (
input: CreateCommentInput
) => Promise<CreateCommentMutation["response"]["createComment"]>;
) => Promise<CreateCommentType["response"]["createComment"]>;