My Library Docs

Multi-root Sidebar

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl


v0.0.11Drag to reorder

Types & Errors

HTTP 요청 계약과 표준 에러 객체의 타입 경계를 정리합니다.


OpenApiPathsLike
ts

compile-time constraint 자체는 넓은 object입니다. 실제 타입 추론은Paths[path][method].parameters requestBody.content["application/json"]같은 OpenAPI-style property가 있을 때 구체화됩니다.

ServiceArguments<Paths, TPath, TMethod, R>
NameTypeDefaultDescription

url

required

TPath

-

Paths key.

method

required

TMethod

-

Paths[TPath] method key.

pathVariable

parameters.path | Record

-

path parameters가 있으면 해당 타입, 없으면 일반 Record fallback.

queryString

parameters.query | Record

-

query parameters가 있으면 해당 타입, 없으면 일반 Record fallback.

body

requestBody application/json | unknown

-

JSON request body schema가 있으면 해당 타입.

resultInterceptor

(response: Response) => Promise<R>

-

직접 response parser.

headers

Readonly<Record<string, string>>

-

요청별 headers.
CacheForService&lt;CacheName&gt;
NameTypeDefaultDescription

cacheTime

required

number

-

CSR shareReplay windowTime 또는 SSR revalidate 기준 milliseconds.

cacheSize

number

-

CSR shareReplay bufferSize. SSR에서는 사용하지 않습니다.

cacheName

required

CacheName

-

cache key prefix와 Next.js cache tag.
HttpResponseError&lt;Args&gt;
ts

response

원본 Fetch Response.

args

실패한 ServiceArguments.

data

JSON 또는 text로 파싱한 에러 body.

status

response.status getter.

message

body.message → defaultErrorMessage → 기본 HTTP ERROR 문자열 순서로 결정됩니다.

에러 호환 동작
© 2026 Byeolnaerim. All rights reserved.소개개인정보처리방침