mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Cleanup 2019 part 1
baidu-app: Not sure what is wrong here. Taking away the extra thunk doesn't break any tests, though. bluebird-tests: Bluebird is invariant on R now. Not sure why. Could be bad? cordova-sqlite-storage: Just a project ownership change. d3-array: return-type inference seems higher priority than before. Probably not a big deal since I think people usually don't specify types for variable declarations.
This commit is contained in:
parent
351eeb6186
commit
c366a88fa1
2
types/baidu-app/index.d.ts
vendored
2
types/baidu-app/index.d.ts
vendored
@ -4287,7 +4287,7 @@ declare namespace swan {
|
||||
Methods,
|
||||
Props
|
||||
> = object &
|
||||
ComponentOptions<V, Data | ((this: V) => Data), Methods, Props> &
|
||||
ComponentOptions<V, Data, Methods, Props> &
|
||||
ThisType<CombinedInstance<V, Data, Methods, Readonly<Props>>>;
|
||||
|
||||
interface ComponentRelation<D = any, P = any> {
|
||||
|
||||
@ -79,6 +79,7 @@ let anyProm: Promise<any>;
|
||||
let boolProm: Promise<boolean>;
|
||||
let objProm: Promise<object> = Promise.resolve(obj);
|
||||
let voidProm: Promise<void>;
|
||||
let neverProm: Promise<never>;
|
||||
|
||||
let fooProm: Promise<Foo> = Promise.resolve(foo);
|
||||
let barProm: Promise<Bar> = Promise.resolve(bar);
|
||||
@ -569,8 +570,8 @@ voidProm = fooProm.thenReturn();
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// fooProm
|
||||
fooProm = fooProm.throw(err);
|
||||
fooProm = fooProm.thenThrow(err);
|
||||
neverProm = fooProm.throw(err);
|
||||
neverProm = fooProm.thenThrow(err);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -806,7 +807,7 @@ fooProm = Promise.resolve(fooThen);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
voidProm = Promise.reject(reason);
|
||||
neverProm = Promise.reject(reason);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -914,7 +915,8 @@ fooArrProm = Promise.all(fooArr);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
objProm = Promise.props(objProm);
|
||||
let mapProm: Promise<Map<{}, {}>>;
|
||||
mapProm = Promise.props(objProm);
|
||||
objProm = Promise.props(obj);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
2
types/cordova-sqlite-storage/index.d.ts
vendored
2
types/cordova-sqlite-storage/index.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
// Type definitions for cordova-sqlite-storage 1.5
|
||||
// Project: https://github.com/litehelpers/Cordova-sqlite-storage
|
||||
// Project: https://github.com/xpbrew/cordova-sqlite-storage
|
||||
// Definitions by: rafw87 <https://github.com/rafw87>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
@ -608,7 +608,8 @@ const testObject = {
|
||||
};
|
||||
|
||||
const p1: Array<number | string | Date | number[]> = d3Array.permute(testObject, ['name', 'val', 'when', 'more']);
|
||||
const p2: Array<Date | number[]> = d3Array.permute(testObject, ['when', 'more']);
|
||||
// $ExpectType: Array<Date | number[]>
|
||||
const p2 = d3Array.permute(testObject, ['when', 'more']);
|
||||
// $ExpectError
|
||||
const p3 = d3Array.permute(testObject, ['when', 'unknown']);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user