Removed unnecessary suffix "Type"

This commit is contained in:
Koper
2023-08-17 15:30:35 +07:00
parent 5e2afa599e
commit e297b8269d
4 changed files with 18 additions and 20 deletions

View File

@@ -3,14 +3,14 @@ import { DefaultApi, V1TranscriptsCreateRequest } from "../api/apis/DefaultApi";
import { Configuration } from "../api/runtime";
import { GetTranscript } from "../api";
type UseTranscriptReturnType = {
type UseTranscript = {
response: GetTranscript | null;
loading: boolean;
error: string | null;
createTranscript: () => void;
};
const useTranscript = (): UseTranscriptReturnType => {
const useTranscript = (): UseTranscript => {
const [response, setResponse] = useState<GetTranscript | null>(null);
const [loading, setLoading] = useState<boolean>(false);
const [error, setError] = useState<string | null>(null);