0

If there is type like

interface ParsedQs { [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[] }

How can I get the value of the type above? I want the following

type ParsedQsValue = undefined | string | string[] | ParsedQs | ParsedQs[]

without explicitly copying the type from the ParsedQs definition.

Yuki
  • 3,857
  • 5
  • 25
  • 43

1 Answers1

1
type ParsedQsValue = ParsedQs[string]