Type alias GetItemByPK<PK, PathParams>

GetItemByPK<PK, PathParams>: [PathParams] extends [never]
    ? number | string
    : {
        [key in PK | PathParams as key]: string | number
    }

id 를 가져올 때 pathParams 가 있다면 함께 사용

Type Parameters

  • PK extends string

  • PathParams extends string

Generated using TypeDoc