@cssfn/types
Advanced tools
Comparing version 2.0.1 to 2.2.0
@@ -1,21 +0,21 @@ | ||
export declare type Optional<T> = T | null | undefined; | ||
export declare type OptionalOrBoolean<T> = Optional<T | boolean>; | ||
export declare type SingleOrArray<T> = T | T[]; | ||
export declare type DeepArray<T> = (T | DeepArray<T>)[]; | ||
export declare type SingleOrDeepArray<T> = T | DeepArray<T>; | ||
export declare type Factory<T> = () => T; | ||
export declare type ProductOrFactory<T> = T | Factory<T>; | ||
export declare type ProductOrFactoryDeepArray<T> = (ProductOrFactory<T> | ProductOrFactoryDeepArray<T>)[]; | ||
export declare type ProductOrFactoryOrDeepArray<T> = ProductOrFactory<T> | ProductOrFactoryDeepArray<T>; | ||
export declare type PartialNullish<T> = { | ||
export type Optional<T> = T | null | undefined; | ||
export type OptionalOrBoolean<T> = Optional<T | boolean>; | ||
export type SingleOrArray<T> = T | T[]; | ||
export type DeepArray<T> = (T | DeepArray<T>)[]; | ||
export type SingleOrDeepArray<T> = T | DeepArray<T>; | ||
export type Factory<T> = () => T; | ||
export type ProductOrFactory<T> = T | Factory<T>; | ||
export type ProductOrFactoryDeepArray<T> = (ProductOrFactory<T> | ProductOrFactoryDeepArray<T>)[]; | ||
export type ProductOrFactoryOrDeepArray<T> = ProductOrFactory<T> | ProductOrFactoryDeepArray<T>; | ||
export type PartialNullish<T> = { | ||
[Key in keyof T]?: null | T[Key]; | ||
}; | ||
export declare type RequiredNotNullish<T> = { | ||
export type RequiredNotNullish<T> = { | ||
[Key in keyof T]: Exclude<T[Key], undefined | null>; | ||
}; | ||
export declare type Dictionary<TValue> = { | ||
export type Dictionary<TValue> = { | ||
[key: string]: TValue; | ||
}; | ||
export declare type ValueOf<TDictionary> = TDictionary[keyof TDictionary]; | ||
export declare type DictionaryOf<TDictionary> = Dictionary<ValueOf<TDictionary>>; | ||
export declare type MapOf<T> = Map<keyof T, ValueOf<T>>; | ||
export type ValueOf<TDictionary> = TDictionary[keyof TDictionary]; | ||
export type DictionaryOf<TDictionary> = Dictionary<ValueOf<TDictionary>>; | ||
export type MapOf<T> = Map<keyof T, ValueOf<T>>; |
{ | ||
"name": "@cssfn/types", | ||
"version": "2.0.1", | ||
"version": "2.2.0", | ||
"description": "Common typescript definitions.", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "31e0be0532b48bd9b1de7701a79e1be1b0fbe644" | ||
"gitHead": "3fe2d79b8dfa4eda29929975d0dbf3fe19d4aeae" | ||
} |
3218