1
0
forked from icd/rentgen

fix(typecheck): naprawa błędów TypeScript

- Zmiana typu zwracanego w use-survey.ts z Survey.ReactSurveyModel na Survey.Model
- Dodanie brakującej prop refreshToken w StolenDataCluster

Typecheck teraz przechodzi bez błędów.
This commit is contained in:
root 2025-10-25 13:56:21 +02:00 committed by Jacek Wielemborek
parent 8f846ba125
commit 26db356fdd
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import verbs, { v } from './verbs';
export default function useSurvey(
clusters: RequestCluster[],
{ onComplete }: { onComplete: (sender: { data: RawAnswers }) => void }
): Survey.ReactSurveyModel | null {
): Survey.Model | null {
const [survey, setSurvey] = React.useState<Survey.Model | null>(null);
React.useEffect(() => {
const model = generateSurveyQuestions(clusters);

View File

@ -106,6 +106,7 @@ export default function StolenDataCluster({
cookiesOnly,
cookiesOrOriginOnly,
detailsVisibility,
refreshToken,
}: {
origin: string;
shorthost: string;
@ -113,6 +114,7 @@ export default function StolenDataCluster({
cookiesOnly: boolean;
cookiesOrOriginOnly: boolean;
detailsVisibility: boolean;
refreshToken?: number;
}) {
const cluster = getMemory().getClustersForOrigin(origin)[shorthost];
const fullHosts = cluster.getFullHosts();