@xylabs/typeof
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -10,3 +10,3 @@ { | ||
"email": "support@xylabs.com", | ||
"url": "https://github.com/xylabs/sdk-js/issues" | ||
"url": "git+https://github.com/xylabs/sdk-js/issues" | ||
}, | ||
@@ -38,3 +38,3 @@ "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries", | ||
"type": "git", | ||
"url": "https://github.com/xylabs/sdk-js.git" | ||
"url": "git+https://github.com/xylabs/sdk-js.git" | ||
}, | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"sideEffects": false, | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"type": "module" | ||
} |
import { typeOf } from './typeOf.ts' | ||
import { TypeOfTypes } from './TypeOfTypes.ts' | ||
import type { TypeOfTypes } from './TypeOfTypes.ts' | ||
@@ -4,0 +4,0 @@ export const ifTypeOf = <T, R>(typeName: TypeOfTypes, value: unknown, trueFunc: (value: T) => R, isFunc?: (value: T) => boolean) => { |
@@ -1,2 +0,2 @@ | ||
import { TypeOfTypes } from './TypeOfTypes.ts' | ||
import type { TypeOfTypes } from './TypeOfTypes.ts' | ||
@@ -3,0 +3,0 @@ export const typeOf = <T>(item: T): TypeOfTypes => { |
import { typeOf } from './typeOf.ts' | ||
import { TypeOfTypes } from './TypeOfTypes.ts' | ||
import type { TypeOfTypes } from './TypeOfTypes.ts' | ||
@@ -4,0 +4,0 @@ export const validateType = <T>(typeName: TypeOfTypes, value: T, optional = false): [T | undefined, Error[]] => { |
@@ -1,2 +0,2 @@ | ||
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
const config: XyTsupConfig = { | ||
@@ -3,0 +3,0 @@ compile: { |
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
14865