0.7.0 • Published 2 years ago
@fresha/api-tools-core v0.7.0
@fresha/api-tools-core
This package contains shared type definitions, functions and classes used in
other api-tools packages.
Installation
$ npm install @fresha/api-tools-coreUsage example
import type { JSONRef } from '@fresha/api-tools-core';
const ref: JSONRef = { $ref: '#/components' };Types
Below is a list of types. For their descriptions, please consult src/types.ts.
Nullable<T>CommonMarkStringURLStringParametrisedURLStringEmailStringVersionStringDateTimeStringMIMETypeStringHTTPMethodHTTPStatusCodeJSONPrimitiveJSONValueJSONArrayJSONObjectJSONObjectRecordJSONObjectArrayJSONPointerStringJSONRefObjectOrRef<T>JSONAPIMetaJSONAPILinkJSONAPIResourceIDJSONAPIResourceRelationshipJSONAPIServerResourceJSONAPIClientResourceJSONAPIResourceJSONAPIImplementationInfoJSONAPITopLevelLinksJSONAPIDataDocumentJSONAPIErrorJSONAPIErrorDocumentJSONAPIDocumentDisposable
Type guards
Below is a list of guard names. For more information, please read src/typeGuards.ts.
isJSONObjectisJSONValueArrayisJSONRefisJSONAPIDataDocumentisJSONAPIErrorDocument
Miscellaneous functions
transformKeysDeepcamelCasecamelCaseDeepkebabCasekebabCaseDeep