@db-auto/utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
import { NameAnd } from "./nameAnd"; | ||
export declare function safeArray<T>(ts: T | T[] | undefined): T[]; | ||
export declare function safeToString(t: any): string; | ||
export declare function stringOrUndefinedAsString(s: string | undefined): string; | ||
@@ -4,0 +5,0 @@ export declare function safeObject<T>(t: NameAnd<T> | undefined): NameAnd<T>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.arrayOrUndefinedIfEmpty = exports.singleOrArrayOrUndefined = exports.toArray = exports.safeObject = exports.stringOrUndefinedAsString = exports.safeArray = void 0; | ||
exports.arrayOrUndefinedIfEmpty = exports.singleOrArrayOrUndefined = exports.toArray = exports.safeObject = exports.stringOrUndefinedAsString = exports.safeToString = exports.safeArray = void 0; | ||
function safeArray(ts) { | ||
@@ -12,2 +12,6 @@ if (ts === undefined || ts === null) | ||
exports.safeArray = safeArray; | ||
function safeToString(t) { | ||
return t === undefined || t === null ? '' : t.toString(); | ||
} | ||
exports.safeToString = safeToString; | ||
function stringOrUndefinedAsString(s) { | ||
@@ -14,0 +18,0 @@ return s === undefined ? 'undefined' : s; |
{ | ||
"name": "@db-auto/utils", | ||
"description": "", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"main": "dist/index", | ||
@@ -6,0 +6,0 @@ "types": "dist/index", |
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
44972
911