Skip to content

Releases: XenoPOMP/advanced-types

v1.2.0

07 Oct 09:28
Compare
Choose a tag to compare

Various type enhancements

v1.1.7

30 Aug 20:55
Compare
Choose a tag to compare

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

18 Aug 23:01
Compare
Choose a tag to compare

Added generic for return type of FunctionPrimitive

It is any by default.

v1.1.5

18 Aug 13:09
Compare
Choose a tag to compare

FunctionPrimitive type

 export type QueryConstant<
   K extends string,
   F extends FunctionPrimitive
 > = ...

// FunctionPrimitive = (...args: any[]) => any

v1.1.4

17 Aug 21:20
Compare
Choose a tag to compare

Create new types

  • Primitive
  • PromiseReturnType

v1.1.3

16 Aug 06:56
Compare
Choose a tag to compare

Package.json update

Added keywords.

v1.1.2

16 Aug 06:11
Compare
Choose a tag to compare

FunctionType

Constructs function type.

const doSomething: FunctionType<(text: string) => any, string> = text => {
  return text;
};

v1.1.1

08 Aug 23:08
Compare
Choose a tag to compare

v1.1.0

02 Aug 16:10
Compare
Choose a tag to compare

Add automation tools

v1.0.17

02 Aug 15:55
Compare
Choose a tag to compare
update git script