@rxap/open-api
Version:
This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utili
12 lines (11 loc) • 380 B
TypeScript
import { Signal } from '@angular/core';
/**
* Converts all properties of type T to Signal<T[K]>
*/
export type SignalProperties<T> = {
[K in keyof T]: Signal<T[K]>;
};
export interface OpenApiHttpResourceOptions<Parameters extends Record<string, any> | void = any, RequestBody = any> {
parameters?: SignalProperties<Parameters>;
requestBody?: Signal<RequestBody>;
}