Comparing version 0.1.22 to 0.1.23
@@ -1,3 +0,1 @@ | ||
import {Constructor} from './types'; | ||
export * from './assertion'; | ||
@@ -17,2 +15,3 @@ export * from './comparison'; | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export function mixin(constructors: Function[]): ClassDecorator; |
@@ -1,3 +0,1 @@ | ||
/* eslint-disable @magicspace/scoped-modules */ | ||
// @ts-check | ||
@@ -4,0 +2,0 @@ |
import {IsEqual} from './comparison'; | ||
import {Primitive} from './types'; | ||
@@ -294,5 +293,5 @@ // Extract keys | ||
export type Intersection<TUnion> = (TUnion extends any | ||
? (_: TUnion) => void | ||
: never) extends (_: infer T) => void | ||
export type Intersection<TUnion> = ( | ||
TUnion extends any ? (_: TUnion) => void : never | ||
) extends (_: infer T) => void | ||
? T | ||
@@ -311,5 +310,3 @@ : never; | ||
{ | ||
[TKey in __ObjectUnionNonGeneralKey< | ||
TObjectUnion | ||
>]?: TObjectUnion extends object | ||
[TKey in __ObjectUnionNonGeneralKey<TObjectUnion>]?: TObjectUnion extends object | ||
? TKey extends keyof TObjectUnion | ||
@@ -329,1 +326,3 @@ ? TObjectUnion[TKey] | ||
> = Omit<TObject, TKey> & Partial<Pick<TObject, TKey>>; | ||
export type DeepPartial<T> = {[P in keyof T]?: DeepPartial<T[P]>}; |
{ | ||
"name": "tslang", | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"description": "TypeScript Language Type Utilities.", | ||
"license": "MIT", | ||
"author": "Chengdu Mufan Technology Co., Ltd.", | ||
"types": "library/index.d.ts", | ||
"main": "library/index.js", | ||
"scripts": { | ||
"lint:library": "eslint library --ext .ts,.tsx --max-warnings 0", | ||
"lint:test": "eslint test --ext .ts,.tsx --max-warnings 0", | ||
"lint-prettier": "prettier --list-different \"**/*.{ts,tsx,js,jsx,json,md}\"", | ||
"lint": "yarn lint-prettier && yarn lint:library && yarn lint:test", | ||
"test": "yarn tsc -p library && yarn tsc -p test" | ||
"build": "rimraf ./.bld-cache && tsc --build", | ||
"lint": "eslint .", | ||
"lint-prettier": "prettier --check .", | ||
"test": "yarn lint-prettier && yarn build && yarn lint" | ||
}, | ||
@@ -20,9 +20,9 @@ "files": [ | ||
"devDependencies": { | ||
"@magicspace/configs": "^0.2.3", | ||
"@magicspace/eslint-plugin": "^0.1.15", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"prettier": "^1.19.1", | ||
"typescript": "^3.7.5" | ||
"@mufan/code": "^0.2.5", | ||
"@mufan/eslint-plugin": "^0.1.37", | ||
"eslint": "^7.15.0", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.1.3" | ||
} | ||
} |
[![NPM Package](https://badge.fury.io/js/tslang.svg)](https://www.npmjs.com/package/tslang) | ||
[![Build Status](https://travis-ci.org/makeflow/tslang.svg?branch=master)](https://travis-ci.org/makeflow/tslang) | ||
@@ -4,0 +3,0 @@ # TypeScript Language Type Utilities |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
12893
10
1
342
16