@litert/core
Advanced tools
Comparing version 0.4.1 to 0.5.0
# Changes Logs | ||
## v0.5.0 | ||
- Added new semantic types `Nullable` and `Optional`, `Dict`. | ||
- Now the `IDictionary` is the alias of `Dict`, and has been mark as | ||
`deprecated`. It will be removed in v1.0.0. | ||
- Added valitators utility function **isEMailAddress**. | ||
- Added valitators utility function **isDomain**. | ||
## v0.4.1 | ||
@@ -4,0 +12,0 @@ |
/** | ||
* The template type of dictionary. | ||
*/ | ||
export interface IDictionary<T> { | ||
export interface Dict<T> { | ||
[key: string]: T; | ||
} | ||
/** | ||
* The template type of dictionary. | ||
* | ||
* @deprecated Use `Dict` instead. This will be removed in v1.0.0. | ||
*/ | ||
export declare type IDictionary<T> = Dict<T>; | ||
/** | ||
* Semantically stressing an nullable type. | ||
*/ | ||
export declare type Nullable<T> = T | null; | ||
/** | ||
* Semantically stressing an optional type. | ||
*/ | ||
export declare type Optional<T> = T | undefined; | ||
/** | ||
* The signature of decorator for classes. | ||
*/ | ||
export declare type ClassDecorator = (target: Function) => void; | ||
/** | ||
* The signature of decorator for methods. | ||
*/ | ||
export declare type MethodDecorator = (target: Object, property: string | symbol) => void; | ||
@@ -12,2 +32,3 @@ export * from "./class.Exception"; | ||
import * as Async from "./utilities.async"; | ||
export { Async }; | ||
import * as Validators from "./utilities.validators"; | ||
export { Async, Validators }; |
@@ -24,2 +24,4 @@ "use strict"; | ||
exports.Async = Async; | ||
const Validators = require("./utilities.validators"); | ||
exports.Validators = Validators; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@litert/core", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "The core of LiteRT.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,3 +19,3 @@ /* | ||
*/ | ||
export interface IDictionary<T> { | ||
export interface Dict<T> { | ||
@@ -25,4 +25,27 @@ [key: string]: T; | ||
/** | ||
* The template type of dictionary. | ||
* | ||
* @deprecated Use `Dict` instead. This will be removed in v1.0.0. | ||
*/ | ||
export type IDictionary<T> = Dict<T>; | ||
/** | ||
* Semantically stressing an nullable type. | ||
*/ | ||
export type Nullable<T> = T | null; | ||
/** | ||
* Semantically stressing an optional type. | ||
*/ | ||
export type Optional<T> = T | undefined; | ||
/** | ||
* The signature of decorator for classes. | ||
*/ | ||
export type ClassDecorator = (target: Function) => void; | ||
/** | ||
* The signature of decorator for methods. | ||
*/ | ||
export type MethodDecorator = ( | ||
@@ -38,2 +61,4 @@ target: Object, property: string | symbol | ||
export { Async }; | ||
import * as Validators from "./utilities.validators"; | ||
export { Async, Validators }; |
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
39487
24
640