Releases: XenoPOMP/advanced-types
Releases · XenoPOMP/advanced-types
v1.2.0
Various type enhancements
v1.1.7
DeepInject
type
Recursevely add some type inside all keys of target type.
type Sups = DeepInject<{ supa: { sups: number } }, { _ignore: boolean }>;
const asp: Sups = { supa: { sups: 1, _ignore: false }, _ignore: false };
v1.1.6
Added generic for return type of FunctionPrimitive
It is any
by default.
v1.1.5
FunctionPrimitive type
export type QueryConstant<
K extends string,
F extends FunctionPrimitive
> = ...
// FunctionPrimitive = (...args: any[]) => any
v1.1.4
Create new types
Primitive
PromiseReturnType
v1.1.3
Package.json update
Added keywords.
v1.1.2
FunctionType
Constructs function type.
const doSomething: FunctionType<(text: string) => any, string> = text => {
return text;
};