Answer the question
In order to leave comments, you need to log in
What is the correct type for an immutable list of values?
There is an Input component, it has an inputMode prop - it has a strict list of string values.
What is the correct way to write this type?
export interface InputProps {
inputMode?: string; // стринг нужно заменить на "один из значений"
}
export const Input = (props: InputProps) => {}
export type HttpMethod = 'head' | 'get' | 'post' | 'put' | 'delete' | 'connect' | 'options' | 'trace'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question