Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptfunction overloadsSingle-choice MCQ

For this interface-method overload set, what is the type of `g`?

interface Api { get(path: string): string; get(path: string, opts: object): Promise<string>; } declare const api: Api; const g = api.get("/x");