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:
parent
5edebd4433
commit
46cd00253c
@ -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);
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user