type KnownKeys<T> = keyof { [P in keyof T as
string extends P ? never : number extends P ? never : P
]: T[P]; };
type KeyToKeyNoIndex<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K;
};
type ValuesOf<T> = T extends { [K in keyof T]: infer U; } ? U : never;
export type KnownKeys<T> = ValuesOf<KeyToKeyNoIndex<T>>;
const dataUsers = await fetch(url)...
function funcPush(e) {
d6 = [...d6, e.value]
}
const [submited, setSubmited] = useState(false)
const handleSubmitForm = () => {
setSubmited(true)
}
...
<form onSubmit={handleSubmitForm}>
<input disabled={!submited} />
<input disabled={!submited} />
</form>
$('.submit').click(function(e){
e.preventDefault();
$('.quiz').remove();
$(thanks).appendTo('.container');
disableButtons=true;
$('.navigation__btn').addClass('navigation__btn--disabled')
document.location = "http://ya.ru"
})