Skip to content

Commit 05e9c85

Browse files
author
Andy
authored
Merge 20dec (DefinitelyTyped#13471)
* base-64 typings * formatting and indenting * feat: add typings for watchpack * fix: improve missing typings * Port from https://github.com/agileek/typings-vis/blob/master/vs.d.ts * Fix travis build failures * Port PR agileek/typings-vis#12 * Fix travis build failures * added tsconfig and tslint * removed patch number * added tests * made it export like base64-js * removed old code * formatted code * fix: add files field in tsconfig.json for expected publishment * fix: improve most missing typings * feat: upgrade to v3.0.0 * feat: upgrade to tapbale v0.2.5 * Types 2.0 (DefinitelyTyped#13261) * updating typing of the latest 7.0 react-autosuggest * updating typing of react-autosuggest 7.0 * update typings for react-autosuggest 7.0 * Remove '+' from header versions, so they can be parsed (DefinitelyTyped#13239) * Updated masonry-layout to fix linting errors (DefinitelyTyped#13272) * Updated masonry-layout to fix linting errors * Fixed the tests I could fix. * Removed patch version * Add redux-persist and basic transformers (DefinitelyTyped#13389) * Add definitions for redux-persist * Add missin generic types * Add definitions for filter transformer * Add definitions for encrypt transformer * Fix header * Add definitions for compress transformer * Delete unnecessary linter configs * Change way of importing, fix tests * fix: angulartics type definition for ES6 import * fix: lint error * fix scalar type config (DefinitelyTyped#13398) The `GraphQLScalarTypeConfig` interface had incorrect types. Correct types may be seen here: https://github.com/graphql/graphql-js/blob/379a3084392179d2cae92c211a4559f9836299c6/src/type/definition.js#L348-L350 * [interact.js] Update module names (DefinitelyTyped#13316) Update CommonJS module name as it was changed in version 1.2.7. AMD module name is also different from both new and old CommonJS module names, so a separate declaration was created for that as well. * Add definitions for redux-recycle (DefinitelyTyped#13424) * Add definitions for redux-recycle * Fix linter errors * [jest] add type definition for toHaveBeenLastCalledWith (DefinitelyTyped#13038) * remove ajv because the package bundles its own types (DefinitelyTyped#13028) * Updated type definitions to yfiles for HTML 2.0. (DefinitelyTyped#13332) * Updated type definitions to yFiles for HTML 2.0. * Updated type definitions to yfiles for HTML 2.0. * Added contact in yfiles .d.ts header. * Add redux-batched-actions typings. (DefinitelyTyped#13054) * Add types for mailgen (DefinitelyTyped#13080) * Typings for cordova-sqlite-storage (DefinitelyTyped#13081) * Add flatpickr definitions (DefinitelyTyped#13083) * Add pouch-redux-middleware typing (DefinitelyTyped#13071) * Add pouch-redux-middleware typing * Fix <> in comment * Add declaration for crc (DefinitelyTyped#13068) * Updated jquery.dataTables for 1.10.9 (DefinitelyTyped#13099) Release Notes: https://cdn.datatables.net/1.10.9/ * Moved legacy browser settings to its own data type. * Added 'aIds' property on legacy settings object for mapping row ids to data indexes. * Added 'rowIdFn' function to legacy settings object to get a row's id from the row's data. * chore(lint): change vis typing to external module (DefinitelyTyped#13399) * Fix cordova-sqlite-storage lint * Lint `vis`: Remove "I" prefix for namespaces * Change cordova-sqlite-storage back. Linter was wrong.
1 parent a6d0d60 commit 05e9c85

File tree

114 files changed

+116460
-130806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+116460
-130806
lines changed

ajv/ajv-tests.ts

-74
This file was deleted.

ajv/index.d.ts

-114
This file was deleted.

angular-material/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Angular Material 1.1.0-rc5+ (angular.material module)
1+
// Type definitions for Angular Material (angular.material module) 1.1
22
// Project: https://github.com/angular/material
33
// Definitions by: Blake Bigelow <https://github.com/blbigelow>, Peter Hajdu <https://github.com/PeterHajdu>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angular-ui-router-default/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for angular-ui-router-default 0.5+
1+
// Type definitions for angular-ui-router-default 0.5
22
// Project: https://github.com/nonplus/angular-ui-router-default
33
// Definitions by: Stepan Riha <https://github.com/nonplus>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angular-ui-router-uib-modal/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for angular-ui-uib-modal 0.11+ (ui.router module)
1+
// Type definitions for angular-ui-uib-modal (ui.router module) 0.11
22
// Project: https://github.com/nonplus/angular-ui-router-uib-modal
33
// Definitions by: Stepan Riha <https://github.com/nonplus>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angular-ui-router/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Angular JS 1.1.5+ (ui.router module)
1+
// Type definitions for Angular JS (ui.router module) 1.1.5
22
// Project: https://github.com/angular-ui/ui-router
33
// Definitions by: Michel Salib <https://github.com/michelsalib>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angular-ui-scroll/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Angular JS 1.3.1+ (ui.scroll module)
1+
// Type definitions for Angular JS (ui.scroll module) 1.3.1
22
// Project: https://github.com/angular-ui/ui-scroll
33
// Definitions by: Mark Nadig <https://github.com/marknadig>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angular-ui-sortable/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for angular.ui.sortable module v0.13+
1+
// Type definitions for angular.ui.sortable module 0.13
22
// Project: https://github.com/angular-ui/ui-sortable
33
// Definitions by: Thodoris Greasidis <https://github.com/thgreasi>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

angulartics/angulartics-tests.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import * as angular from 'angular';
2+
import { angulartics } from 'angulartics';
3+
14
namespace Analytics {
25
angular.module("angulartics.app", ["angulartics"])
36
.config(["$analyticsProvider", ($analyticsProvider:angulartics.IAnalyticsServiceProvider) => {
@@ -36,3 +39,4 @@ namespace Analytics {
3639
$analytics.setSuperProperties({ role: 'admin' });
3740
});
3841
}
42+

angulartics/index.d.ts

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
// Type definitions for Angulartics v1.3.0
1+
// Type definitions for Angulartics 1.3
22
// Project: http://luisfarzati.github.io/angulartics/
33
// Definitions by: Steven Fan <https://github.com/stevenfan>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
/// <reference types="angular" />
6+
import * as angular from 'angular';
7+
78
declare namespace angulartics {
89

910
interface IAngularticsStatic {
10-
waitForVendorApi(objectName:string, delay:number, containsField?:any, registerFn?:any, onTimeout?:boolean): void;
11+
waitForVendorApi(objectName: string, delay: number, containsField?: any, registerFn?: any, onTimeout?: boolean): void;
1112
}
1213

1314
interface IAnalyticsService {
1415
eventTrack(eventName: string, properties?: any): any;
1516
getOptOut(): boolean;
16-
pageTrack(path:string, location?:angular.ILocationService): any;
17+
pageTrack(path: string, location?: angular.ILocationService): any;
1718
setAlias(alias: string): any;
1819
setOptOut(value: boolean): void;
1920
setUsername(username: string): any;
@@ -32,7 +33,7 @@ declare namespace angulartics {
3233
trackRoutes(value: boolean): void;
3334
trackStates(value: boolean): void;
3435

35-
registerPageTrack(callback:(path:string, location?:angular.ILocationService) => any): void;
36+
registerPageTrack(callback: (path: string, location?: angular.ILocationService) => any): void;
3637
registerEventTrack(callback: (eventName: string, properties?: any) => any): void;
3738
registerSetAlias(callback: (alias: string) => any): void;
3839
registerSetUsername(callback: (username: string) => any): void;
@@ -47,8 +48,8 @@ declare namespace angulartics {
4748
autoBasePath: boolean
4849
},
4950
developerMode: boolean
50-
}
51+
};
5152
}
5253
}
5354

54-
declare var angulartics:angulartics.IAngularticsStatic;
55+
declare var angulartics: angulartics.IAngularticsStatic;

base-64/base-64-tests.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as base64 from 'base-64';
2+
import * as utf8 from 'utf8';
3+
4+
let text = 'foo © bar 𝌆 baz';
5+
let bytes = utf8.encode(text);
6+
let encoded = base64.encode(bytes);
7+
// → 'Zm9vIMKpIGJhciDwnYyGIGJheg=='
8+
9+
encoded = 'Zm9vIMKpIGJhciDwnYyGIGJheg==';
10+
bytes = base64.decode(encoded);
11+
text = utf8.decode(bytes);
12+
13+
let version = base64.version;

base-64/index.d.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Type definitions for base-64 0.1
2+
// Project: https://github.com/mathiasbynens/base64
3+
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
4+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5+
6+
export const version: string;
7+
8+
/**
9+
* This function takes a byte string (the input parameter) and encodes it according to base64.
10+
* The input data must be in the form of a string containing only characters
11+
* in the range from U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF.
12+
* The base64.encode() function is designed to be fully compatible
13+
* with btoa() as described in the HTML Standard.
14+
* see: https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-btoa
15+
*/
16+
export function encode(input: string): string;
17+
/**
18+
* This function takes a base64-encoded string (the input parameter) and decodes it.
19+
* The return value is in the form of a string containing only characters in
20+
* the range from U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF.
21+
* The base64.decode() function is designed to be fully compatible
22+
* with atob() as described in the HTML Standard.
23+
* see: https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-atob
24+
*/
25+
export function decode(input: string): string;

base-64/tsconfig.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es6",
5+
"noImplicitAny": true,
6+
"strictNullChecks": true,
7+
"baseUrl": "../",
8+
"typeRoots": [
9+
"../"
10+
],
11+
"types": [],
12+
"noEmit": true,
13+
"forceConsistentCasingInFileNames": true
14+
},
15+
"files": [
16+
"index.d.ts",
17+
"base-64-tests.ts"
18+
]
19+
}

base-64/tslint.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": "../tslint.json" }

0 commit comments

Comments
 (0)