jswagger-client
Version:
This is jswagger's client package.
18 lines • 940 B
TypeScript
/// <reference types="node" />
import { ISpecMetadata } from './types';
import { OpenAPI2Reference, OpenAPI2SchemaObject } from 'jswagger-common';
declare type PropertiesType = {
[index: string]: OpenAPI2SchemaObject | OpenAPI2Reference;
};
interface IPropInfo {
type?: string;
format?: string;
}
export declare function leafConvertToClassValue(propInfo: IPropInfo, input: any): any;
export declare function leafConvertToJsonValue(propInfo: IPropInfo, input: any): any;
export declare function toClassValue(metadata: ISpecMetadata, property: PropertiesType, key: string, value: any): any;
export declare function toJsonObject(metadata: ISpecMetadata, property: PropertiesType, key: string, value: any): any;
declare function arrayBufferToBufferAsArgument(ab: ArrayBuffer): Buffer;
export declare const arrayBufferToBuffer: typeof arrayBufferToBufferAsArgument;
export {};
//# sourceMappingURL=internals.d.ts.map