Type Alias PathParams<TPath>

PathParams<TPath>: ExtractParams<TPath> extends never
    ? Record<string, never>
    : {
        [K in ExtractParams<TPath>]: string
    }

Type Parameters

  • TPath extends string