refactor: separate out data structures into hoppscotch-data
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { HoppRESTRequest } from "@hoppscotch/data"
|
||||
import { runMutation } from "../GQLClient"
|
||||
import {
|
||||
CreateShortcodeDocument,
|
||||
CreateShortcodeMutation,
|
||||
CreateShortcodeMutationVariables,
|
||||
} from "../graphql"
|
||||
import { HoppRESTRequest } from "~/helpers/types/HoppRESTRequest"
|
||||
|
||||
export const createShortcode = (request: HoppRESTRequest) =>
|
||||
runMutation<CreateShortcodeMutation, CreateShortcodeMutationVariables, "">(
|
||||
|
||||
Reference in New Issue
Block a user