Skip to content

Commit cadd9ab

Browse files
committed
0.8.2
1 parent 6b0fd75 commit cadd9ab

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 变更日志
22

3+
## 0.8.2 / 2019-3-20
4+
5+
- fix: fix ts bug
6+
37
## 0.8.1 / 2019-3-4
48

59
- fix: 修复依赖不自动更新的问题

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [is](https://github.com/yanhaijing/is) [![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base) [![npm](https://img.shields.io/badge/npm-0.8.1-orange.svg)](https://www.npmjs.com/package/@jsmini/is) [![Build Status](https://travis-ci.org/jsmini/is.svg?branch=master)](https://travis-ci.org/jsmini/is) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/is/blob/master/LICENSE)
1+
# [is](https://github.com/yanhaijing/is) [![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base) [![npm](https://img.shields.io/badge/npm-0.8.2-orange.svg)](https://www.npmjs.com/package/@jsmini/is) [![Build Status](https://travis-ci.org/jsmini/is.svg?branch=master)](https://travis-ci.org/jsmini/is) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/is/blob/master/LICENSE)
22
js判断函数,解决80%类型判断问题,原生兼容IE6
33

44
## 兼容性

index.d.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export as namespace jsminiIs;
22

33
export function isInRange (x: number, min?: number, max?: number): boolean;
4-
export function isNumber (x: any, min?: number, max?: number): boolean;
5-
export function isInteger (x: any, min?: number, max?: number): boolean;
6-
export function isInt (x: any): boolean;
7-
export function isBoolean (x: any): boolean;
8-
export function isString (x: any): boolean;
4+
export function isNumber (x: any, min?: number, max?: number): x is number;
5+
export function isInteger (x: any, min?: number, max?: number): x is number;
6+
export function isInt (x: any): x is number;
7+
export function isBoolean (x: any): x is boolean;
8+
export function isString (x: any): x is string;
99
export function isEmptyString (x: any): boolean;
10-
export function isNull (x: any): boolean;
11-
export function isUndefined (x: any): boolean;
12-
export function isObject (x: any): boolean;
13-
export function isFunction (x: any): boolean;
14-
export function isArray (x: any): boolean;
10+
export function isNull (x: any): x is null;
11+
export function isUndefined (x: any): x is undefined;
12+
export function isObject (x: any): x is object;
13+
export function isFunction (x: any): x is (...any) => any;
14+
export function isArray (x: any): x is any[];

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsmini/is",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "js判断函数,解决80%类型判断问题",
55
"main": "dist/index.js",
66
"jsnext:main": "dist/index.esm.js",

0 commit comments

Comments
 (0)