@automatons/tools
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,5 +0,6 @@ | ||
import { OpenapiSchema, OpenapiSchemaAllOf, OpenapiSchemaArray, OpenapiSchemaInteger, OpenapiSchemaNumber, OpenapiSchemaObject, OpenapiSchemaOneOf, OpenapiSchemaReference, OpenapiSchemaString } from "../types"; | ||
import { OpenapiSchema, OpenapiSchemaAllOf, OpenapiSchemaArray, OpenapiSchemaBoolean, OpenapiSchemaInteger, OpenapiSchemaNumber, OpenapiSchemaObject, OpenapiSchemaOneOf, OpenapiSchemaReference, OpenapiSchemaString } from "../types"; | ||
export declare const isSchemaString: (type: OpenapiSchema) => type is OpenapiSchemaString; | ||
export declare const isSchemaNumber: (type: OpenapiSchema) => type is OpenapiSchemaNumber; | ||
export declare const isSchemaInteger: (type: OpenapiSchema) => type is OpenapiSchemaInteger; | ||
export declare const isSchemaBoolean: (type: OpenapiSchema) => type is OpenapiSchemaBoolean; | ||
export declare const isSchemaObject: (type: OpenapiSchema) => type is OpenapiSchemaObject; | ||
@@ -6,0 +7,0 @@ export declare const isSchemaArray: (type: OpenapiSchema) => type is OpenapiSchemaArray; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isSchemaRef = exports.isSchemaOneOf = exports.isSchemaAllOf = exports.isSchemaArray = exports.isSchemaObject = exports.isSchemaInteger = exports.isSchemaNumber = exports.isSchemaString = void 0; | ||
exports.isSchemaRef = exports.isSchemaOneOf = exports.isSchemaAllOf = exports.isSchemaArray = exports.isSchemaObject = exports.isSchemaBoolean = exports.isSchemaInteger = exports.isSchemaNumber = exports.isSchemaString = void 0; | ||
exports.isSchemaString = (type) => type.type === 'string'; | ||
exports.isSchemaNumber = (type) => type.type === 'number'; | ||
exports.isSchemaInteger = (type) => type.type === 'integer'; | ||
exports.isSchemaBoolean = (type) => type.type === 'boolean'; | ||
exports.isSchemaObject = (type) => type.type === 'object'; | ||
@@ -8,0 +9,0 @@ exports.isSchemaArray = (type) => type.type === 'array'; |
{ | ||
"name": "@automatons/tools", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"repository": "git@github.com:tanmen/openapi-automatons.git", | ||
@@ -40,3 +40,3 @@ "author": "tanmen <yt.prog@gmail.com>", | ||
}, | ||
"gitHead": "fb3b579622e062c3619b558cb7e77f42e75f8713" | ||
"gitHead": "998515bbcb04ac04aed3487f4c388c0ac8f93dbb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46824
758