noodl-types
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -22,1 +22,2 @@ import { PlainObject } from '../internalTypes'; | ||
export declare function isHtml(s?: string): boolean; | ||
export declare function isStr(v: unknown): v is string; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isHtml = exports.isJs = exports.isJson = exports.isYml = exports.isVid = exports.isPdf = exports.isImg = exports.isObj = exports.isNil = exports.isBool = exports.isArr = exports.hasInAnyKeys = exports.hasAnyKeys = exports.hasMinimumKeys = exports.hasInAllKeys = exports.hasAllKeys = exports.hasKeyEqualTo = exports.hasKey = exports.exists = exports.excludeKeys = void 0; | ||
exports.isStr = exports.isHtml = exports.isJs = exports.isJson = exports.isYml = exports.isVid = exports.isPdf = exports.isImg = exports.isObj = exports.isNil = exports.isBool = exports.isArr = exports.hasInAnyKeys = exports.hasAnyKeys = exports.hasMinimumKeys = exports.hasInAllKeys = exports.hasAllKeys = exports.hasKeyEqualTo = exports.hasKey = exports.exists = exports.excludeKeys = void 0; | ||
var lodash_get_1 = __importDefault(require("lodash.get")); | ||
@@ -112,2 +112,6 @@ var lodash_has_1 = __importDefault(require("lodash.has")); | ||
exports.isHtml = isHtml; | ||
function isStr(v) { | ||
return typeof v === 'string'; | ||
} | ||
exports.isStr = isStr; | ||
//# sourceMappingURL=utils.js.map |
@@ -135,2 +135,4 @@ import { StyleObject } from './styleTypes'; | ||
reference(value: unknown): value is string; | ||
textBoard(v: unknown): boolean; | ||
textBoardItem(v: unknown): boolean; | ||
url(v: unknown): v is string; | ||
@@ -137,0 +139,0 @@ style: { |
@@ -176,2 +176,12 @@ "use strict"; | ||
}, | ||
textBoard: function (v) { | ||
return u.isArr(v) && v.some(function (o) { return o.textBoardItem; }); | ||
}, | ||
textBoardItem: function (v) { | ||
if (u.isObj(v)) | ||
return 'br' in v; | ||
if (u.isStr(v)) | ||
return v === 'br'; | ||
return false; | ||
}, | ||
url: function (v) { | ||
@@ -178,0 +188,0 @@ return (typeof v === 'string' && |
@@ -8,2 +8,5 @@ export * from './actionTypes'; | ||
export { Identify } from './Identify'; | ||
export { actionTypes, componentTypes } from './data.json'; | ||
export { default as actionTypes } from './generated/actionTypes'; | ||
export { default as componentTypes } from './generated/componentTypes'; | ||
export { default as componentKeys } from './generated/componentKeys'; | ||
export { default as styleKeys } from './generated/styleKeys'; |
@@ -12,4 +12,7 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.componentTypes = exports.actionTypes = exports.Identify = void 0; | ||
exports.styleKeys = exports.componentKeys = exports.componentTypes = exports.actionTypes = exports.Identify = void 0; | ||
__exportStar(require("./actionTypes"), exports); | ||
@@ -23,5 +26,10 @@ __exportStar(require("./componentTypes"), exports); | ||
Object.defineProperty(exports, "Identify", { enumerable: true, get: function () { return Identify_1.Identify; } }); | ||
var data_json_1 = require("./data.json"); | ||
Object.defineProperty(exports, "actionTypes", { enumerable: true, get: function () { return data_json_1.actionTypes; } }); | ||
Object.defineProperty(exports, "componentTypes", { enumerable: true, get: function () { return data_json_1.componentTypes; } }); | ||
var actionTypes_1 = require("./generated/actionTypes"); | ||
Object.defineProperty(exports, "actionTypes", { enumerable: true, get: function () { return __importDefault(actionTypes_1).default; } }); | ||
var componentTypes_1 = require("./generated/componentTypes"); | ||
Object.defineProperty(exports, "componentTypes", { enumerable: true, get: function () { return __importDefault(componentTypes_1).default; } }); | ||
var componentKeys_1 = require("./generated/componentKeys"); | ||
Object.defineProperty(exports, "componentKeys", { enumerable: true, get: function () { return __importDefault(componentKeys_1).default; } }); | ||
var styleKeys_1 = require("./generated/styleKeys"); | ||
Object.defineProperty(exports, "styleKeys", { enumerable: true, get: function () { return __importDefault(styleKeys_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "noodl-types", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "NOODL TypeScript Definitions", | ||
@@ -33,3 +33,3 @@ "author": "Christopher Tran <christopher@aitmed.com>", | ||
}, | ||
"gitHead": "22742bb1339cec09cc943a15c227f45772edab76" | ||
"gitHead": "b49d75f1203e6d22f815cc4646e52744202acbfa" | ||
} |
Sorry, the diff of this file is not supported yet
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
65410
52
1142