diff --git a/DataStream.js/tsconfig.json b/DataStream.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/DataStream.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/FileSaver/tsconfig.json b/FileSaver/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/FileSaver/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/Finch/tsconfig.json b/Finch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/Finch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/Headroom/tsconfig.json b/Headroom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/Headroom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/HubSpot-pace/tsconfig.json b/HubSpot-pace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/HubSpot-pace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/JSONStream/tsconfig.json b/JSONStream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/JSONStream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/OpenJsCad/tsconfig.json b/OpenJsCad/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/OpenJsCad/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/PayPal-Cordova-Plugin/tsconfig.json b/PayPal-Cordova-Plugin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/PayPal-Cordova-Plugin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/_debugger/tsconfig.json b/_debugger/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/_debugger/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/abs/tsconfig.json b/abs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/abs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/absolute/tsconfig.json b/absolute/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/absolute/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/acc-wizard/tsconfig.json b/acc-wizard/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/acc-wizard/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/accounting/tsconfig.json b/accounting/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/accounting/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ace/tsconfig.json b/ace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/acl/tsconfig.json b/acl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/acl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/acorn/tsconfig.json b/acorn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/acorn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/adal/tsconfig.json b/adal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/adal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/add2home/tsconfig.json b/add2home/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/add2home/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/adm-zip/tsconfig.json b/adm-zip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/adm-zip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ag-grid/tsconfig.json b/ag-grid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ag-grid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/agenda/tsconfig.json b/agenda/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/agenda/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/alertify/tsconfig.json b/alertify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/alertify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/alt/tsconfig.json b/alt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/alt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amazon-product-api/tsconfig.json b/amazon-product-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amazon-product-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amcharts/tsconfig.json b/amcharts/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amcharts/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amplify-deferred/tsconfig.json b/amplify-deferred/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amplify-deferred/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amplify/tsconfig.json b/amplify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amplify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amqp-rpc/tsconfig.json b/amqp-rpc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amqp-rpc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/amqplib/tsconfig.json b/amqplib/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/amqplib/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/analytics-node/tsconfig.json b/analytics-node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/analytics-node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-agility/tsconfig.json b/angular-agility/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-agility/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-bootstrap-calendar/tsconfig.json b/angular-bootstrap-calendar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-bootstrap-calendar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-bootstrap-lightbox/tsconfig.json b/angular-bootstrap-lightbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-bootstrap-lightbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-breadcrumb/tsconfig.json b/angular-breadcrumb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-breadcrumb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-cookie/tsconfig.json b/angular-cookie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-cookie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-dialog-service/tsconfig.json b/angular-dialog-service/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-dialog-service/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-dynamic-locale/tsconfig.json b/angular-dynamic-locale/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-dynamic-locale/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-environment/tsconfig.json b/angular-environment/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-environment/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-file-upload/tsconfig.json b/angular-file-upload/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-file-upload/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-formly/tsconfig.json b/angular-formly/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-formly/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-fullscreen/tsconfig.json b/angular-fullscreen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-fullscreen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-gettext/tsconfig.json b/angular-gettext/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-gettext/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-google-analytics/tsconfig.json b/angular-google-analytics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-google-analytics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-growl-v2/tsconfig.json b/angular-growl-v2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-growl-v2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-hotkeys/tsconfig.json b/angular-hotkeys/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-hotkeys/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-http-auth/tsconfig.json b/angular-http-auth/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-http-auth/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-httpi/tsconfig.json b/angular-httpi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-httpi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-idle/tsconfig.json b/angular-idle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-idle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-jwt/angular-jwt-tests.ts b/angular-jwt/angular-jwt-tests.ts index 041744f2f6..8ddeb21616 100644 --- a/angular-jwt/angular-jwt-tests.ts +++ b/angular-jwt/angular-jwt-tests.ts @@ -3,14 +3,14 @@ var app = angular.module("angular-jwt-tests", ["angular-jwt"]); -var $jwtHelper: angular.jwt.IJwtHelper; +var $jwtHelper: ng.jwt.IJwtHelper; var expToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3NhbXBsZXMuYXV0aDAuY29tLyIsInN1YiI6ImZhY2Vib29rfDEwMTU0Mjg3MDI3NTEwMzAyIiwiYXVkIjoiQlVJSlNXOXg2MHNJSEJ3OEtkOUVtQ2JqOGVESUZ4REMiLCJleHAiOjE0MTIyMzQ3MzAsImlhdCI6MTQxMjE5ODczMH0.7M5sAV50fF1-_h9qVbdSgqAnXVF7mz3I6RjS6JiH0H8'; var tokenPayload = $jwtHelper.decodeToken(expToken); var date = $jwtHelper.getTokenExpirationDate(expToken); var bool = $jwtHelper.isTokenExpired(expToken); -var $jwtInterceptor: angular.jwt.IJwtInterceptor; +var $jwtInterceptor: ng.jwt.IJwtInterceptor; $jwtInterceptor.tokenGetter = () => { return expToken; diff --git a/angular-jwt/angular-jwt.d.ts b/angular-jwt/angular-jwt.d.ts index 58657194ec..121bd3bf5d 100644 --- a/angular-jwt/angular-jwt.d.ts +++ b/angular-jwt/angular-jwt.d.ts @@ -8,14 +8,14 @@ declare namespace angular.jwt { interface JwtToken { - iss: string; - sub: string; - aud: string; - exp: number; - nbf: number; - iat: number; - jti: string; - unique_name: string; + iss?: string; + sub?: string; + aud?: string; + exp?: number; + nbf?: number; + iat?: number; + jti?: string; + unique_name?: string; } interface IJwtHelper { diff --git a/angular-jwt/tsconfig.json b/angular-jwt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-jwt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-load/tsconfig.json b/angular-load/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-load/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-loading-bar/tsconfig.json b/angular-loading-bar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-loading-bar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-local-storage/tsconfig.json b/angular-local-storage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-local-storage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-localForage/tsconfig.json b/angular-localForage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-localForage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-locker/tsconfig.json b/angular-locker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-locker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-material/tsconfig.json b/angular-material/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-material/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-media-queries/tsconfig.json b/angular-media-queries/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-media-queries/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-meteor/tsconfig.json b/angular-meteor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-meteor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-modal/tsconfig.json b/angular-modal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-modal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-notifications/tsconfig.json b/angular-notifications/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-notifications/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-notify/tsconfig.json b/angular-notify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-notify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-odata-resources/tsconfig.json b/angular-odata-resources/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-odata-resources/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-permission/angular-permission-2.3.1-tests.ts b/angular-permission/angular-permission-2.3.1-tests.ts new file mode 100644 index 0000000000..3753ba9d51 --- /dev/null +++ b/angular-permission/angular-permission-2.3.1-tests.ts @@ -0,0 +1,92 @@ +/// + +import permission = angular.permission; + +angular + .module('fooModule', ['permission', 'user']) + .run(function (PermissionStore: permission.PermissionStore, User: any) { + // Define anonymous permission + PermissionStore + .definePermission('anonymous', function (stateParams) { + // If the returned value is *truthy* then the user has the permission, otherwise they don't + if (!User) { + return true; // Is anonymous + } + return false; + }); + }); + + interface BackendUserService { + checkSession(): angular.IPromise; + getAccessLevel(): angular.IPromise<{accessLevel: string}>; + hasPermissionDefinition(permission: string) : angular.IPromise; + } + + angular.module('barModule', ['permission', 'user']) + .run(function (PermissionStore: permission.PermissionStore, User: BackendUserService, $q: angular.IQService) { + PermissionStore + // Define user permission calling back-end + .definePermission('user', function (stateParams) { + // This time we will return a promise + // If the promise *resolves* then the user has the permission, if it *rejects* (you guessed it) + + // Let's assume this returns a promise that resolves or rejects if session is active + return User.checkSession(); + }); + + PermissionStore + // A different example for admin + .definePermission('admin', function (stateParams) { + var deferred = $q.defer(); + + User.getAccessLevel() + .then(function (data) { + if (data.accessLevel === 'admin') { + deferred.resolve(); + } else { + deferred.reject(); + } + }) + .catch(function () { + // Error with request + deferred.reject(); + }); + + return deferred.promise; + }); + + let arrayOfPermissionNames = ['p1', 'p2']; + PermissionStore.defineManyPermissions(arrayOfPermissionNames, function (stateParams: angular.ui.IStateParamsService, permissionName: string) { + return User.hasPermissionDefinition(permissionName); + }); + + PermissionStore.clearStore(); + + PermissionStore.removePermissionDefinition('user'); + + let permissions: Array = PermissionStore.getStore(); + + + }); + +angular + .module('fooModule', ['permission', 'user']) + .run(function (RoleStore: permission.RoleStore, User: any) { + RoleStore + // Permission array validated role + // Library will internally validate if 'user' and 'editor' permissions are valid when checking if role is valid + .defineRole('admin', ['user', 'editor']); + + RoleStore + // Server side validated role + .defineRole('accountant', [], function (stateParams) { + // Let's assume that we are making a request to server here and return response as promise + return User.hasRole('accountant'); + }); + + RoleStore.clearStore(); + + RoleStore.removeRoleDefinition('user'); + + let roles: Array = RoleStore.getStore(); + }); diff --git a/angular-permission/angular-permission-2.3.1.d.ts b/angular-permission/angular-permission-2.3.1.d.ts new file mode 100644 index 0000000000..afe32ce875 --- /dev/null +++ b/angular-permission/angular-permission-2.3.1.d.ts @@ -0,0 +1,165 @@ +// Type definitions for angular-permission 2.3.1 +// Project: https://github.com/Narzerus/angular-permission +// Definitions by: Voislav Mishevski +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare namespace angular.permission { + + export interface PermissionStore { + /** + * Allows to define permission on application configuration + * @method + * + * @param permissionName {String} Name of defined permission + * @param validationFunction {Function} Function used to validate if permission is valid + */ + definePermission( + name: string, + validationFunction: (stateParams?: angular.ui.IStateParamsService, permission?: string) => boolean | angular.IPromise + ): void; + + /** + * Allows to define set of permissionNames with shared validation function on application configuration + * @method + * @throws {TypeError} + * + * @param permissionNames {Array} Set of permission names + * @param validationFunction {Function} Function used to validate if permission is valid + */ + defineManyPermissions( + permissions: string[], + validationFunction: (stateParams?: angular.ui.IStateParamsService, permission?: string) => boolean | angular.IPromise + ): void; + + clearStore(): void; + + /** + * Deletes permission + * @method + * + * @param permissionName {String} Name of defined permission + */ + removePermissionDefinition(permission: string): void; + + /** + * Checks if permission exists + * @method + * + * @param permissionName {String} Name of defined permission + * @returns {Boolean} + */ + hasPermissionDefinition(permissionName: string): boolean; + + /** + * Returns all permissions + * @method + * + * @returns {Object} Permissions collection + */ + getStore(): Permission[]; + } + + export interface RoleStore { + /** + * Allows to define role + * @method + * + * @param roleName {String} Name of defined role + * @param permissions {Array} Set of permission names + * @param [validationFunction] {Function} Function used to validate if permissions in role are valid + */ + defineRole( + role: string, + permissions: Array, + validationFunction: RoleValidationFunction + ): void; + + /** + * Allows to define role + * @method + * + * @param roleName {String} Name of defined role + * @param permissions {Array} Set of permission names + */ + defineRole(role: string, permissions: Array): void; + + /** + * Checks if role is defined in store + * @method + * + * @param roleName {String} Name of role + * @returns {Boolean} + */ + hasRoleDefinition(role: string): boolean; + + /** + * Returns role definition object by it's name + * @method + * + * @returns {permission.Role} Role definition object + */ + getRoleDefinition(roleName: string): Role; + + /** + * Removes all role definitions + * @method + */ + clearStore(): void; + + /** + * Deletes role from store + * @method + * + * @param roleName {String} Name of defined permission + */ + removeRoleDefinition(roleName: string): void; + + /** + * Returns all role definitions + * @method + * + * @returns {Object} Defined roles collection + */ + getStore(): Role[]; + } + + export interface Role { + roleName: string; + permissionNames: string[]; + validationFunction?: RoleValidationFunction; + } + + export interface Permission { + permissionName: string; + validationFunction?: PermissionValidationFunction; + } + + interface RoleValidationFunction { + (stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise; + } + + interface PermissionValidationFunction { + (stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise; + } + + export interface IPermissionState extends angular.ui.IState { + data?: any | DataWithPermissions; + } + + export interface DataWithPermissions { + permissions?: { + only?: (() => void) | Array | angular.IPromise; + except?: (() => void) | Array | angular.IPromise; + redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | {[index: string]: PermissionRedirectConfigation} + }; + } + + export interface PermissionRedirectConfigation { + state: string; + params?: {}; + options?: angular.ui.IStateOptions; + } +} diff --git a/angular-permission/angular-permission-tests.ts b/angular-permission/angular-permission-tests.ts index 206850ad70..cc9cd7c367 100644 --- a/angular-permission/angular-permission-tests.ts +++ b/angular-permission/angular-permission-tests.ts @@ -36,7 +36,7 @@ angular PermissionStore // A different example for admin - .definePermission('admin', function (stateParams) { + .definePermission('admin', function (permission: string, stateParams: angular.permission.TransitionProperties) { var deferred = $q.defer(); User.getAccessLevel() @@ -56,7 +56,7 @@ angular }); let arrayOfPermissionNames = ['p1', 'p2']; - PermissionStore.defineManyPermissions(arrayOfPermissionNames, function (stateParams: angular.ui.IStateParamsService, permissionName: string) { + PermissionStore.defineManyPermissions(arrayOfPermissionNames, function (permissionName: string, stateParams: angular.permission.TransitionProperties) { return User.hasPermissionDefinition(permissionName); }); @@ -79,7 +79,7 @@ angular RoleStore // Server side validated role - .defineRole('accountant', [], function (stateParams) { + .defineRole('accountant', [], function (permission, stateParams) { // Let's assume that we are making a request to server here and return response as promise return User.hasRole('accountant'); }); diff --git a/angular-permission/angular-permission.d.ts b/angular-permission/angular-permission.d.ts index 2987aeeb93..6e1dcebf0a 100644 --- a/angular-permission/angular-permission.d.ts +++ b/angular-permission/angular-permission.d.ts @@ -1,4 +1,4 @@ -// Type definitions for angular-permission 2.3.1 +// Type definitions for angular-permission 2.3.6 // Project: https://github.com/Narzerus/angular-permission // Definitions by: Voislav Mishevski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -7,6 +7,16 @@ /// declare namespace angular.permission { + /** + * Used as optional parameter provided on definitions of permissions and roles + */ + export interface TransitionProperties { + fromState?: angular.ui.IState; + fromParams?: angular.ui.IStateParamsService; + toState?: angular.ui.IState; + toParams?: angular.ui.IStateParamsService; + options?: angular.ui.IStateOptions; + } export interface PermissionStore { /** @@ -18,7 +28,7 @@ declare namespace angular.permission { */ definePermission( name: string, - validationFunction: (stateParams?: angular.ui.IStateParamsService, permission?: string) => boolean | angular.IPromise + validationFunction: (permission?: string, transitionProperties?: TransitionProperties) => boolean | angular.IPromise ): void; /** @@ -31,7 +41,7 @@ declare namespace angular.permission { */ defineManyPermissions( permissions: string[], - validationFunction: (stateParams?: angular.ui.IStateParamsService, permission?: string) => boolean | angular.IPromise + validationFunction: (permission?: string, transitionProperties?: TransitionProperties) => boolean | angular.IPromise ): void; clearStore(): void; @@ -138,11 +148,11 @@ declare namespace angular.permission { } interface RoleValidationFunction { - (stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise; + (permission?: string, transitionProperties?: TransitionProperties): boolean | angular.IPromise; } interface PermissionValidationFunction { - (stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise; + (permission?: string, transitionProperties?: TransitionProperties): boolean | angular.IPromise; } export interface IPermissionState extends angular.ui.IState { diff --git a/angular-permission/tsconfig.json b/angular-permission/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-permission/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-scenario/tsconfig.json b/angular-scenario/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-scenario/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-scroll/tsconfig.json b/angular-scroll/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-scroll/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-signalr-hub/tsconfig.json b/angular-signalr-hub/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-signalr-hub/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-spinner/tsconfig.json b/angular-spinner/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-spinner/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-storage/tsconfig.json b/angular-storage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-storage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-strap/tsconfig.json b/angular-strap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-strap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-toastr/tsconfig.json b/angular-toastr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-toastr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-toasty/tsconfig.json b/angular-toasty/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-toasty/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-touchspin/tsconfig.json b/angular-touchspin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-touchspin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-translate/angular-translate-tests.ts b/angular-translate/angular-translate-tests.ts index 8ef1ab2e39..4aac8b4b34 100644 --- a/angular-translate/angular-translate-tests.ts +++ b/angular-translate/angular-translate-tests.ts @@ -35,7 +35,11 @@ interface Scope extends ng.IScope { app.controller('Ctrl', ($scope: Scope, $translate: angular.translate.ITranslateService) => { $scope['changeLanguage'] = function (key: any) { - $translate.use(key); + $translate.onReady().then(() => { + if($translate.isReady()) { + $translate.use(key); + } + }); }; }).run(($filter: ng.IFilterService) => { var x: string; diff --git a/angular-translate/angular-translate.d.ts b/angular-translate/angular-translate.d.ts index ea905a210e..2c1dc4e2be 100644 --- a/angular-translate/angular-translate.d.ts +++ b/angular-translate/angular-translate.d.ts @@ -66,6 +66,8 @@ declare namespace angular.translate { useFallbackLanguage(langKey?: string): void; versionInfo(): string; loaderCache(): any; + isReady(): boolean; + onReady(): angular.IPromise; } interface ITranslateProvider extends angular.IServiceProvider { diff --git a/angular-translate/tsconfig.json b/angular-translate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-translate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-ui-bootstrap/tsconfig.json b/angular-ui-bootstrap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-ui-bootstrap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-ui-router/tsconfig.json b/angular-ui-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-ui-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-ui-scroll/tsconfig.json b/angular-ui-scroll/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-ui-scroll/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-ui-sortable/tsconfig.json b/angular-ui-sortable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-ui-sortable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-ui-tree/tsconfig.json b/angular-ui-tree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-ui-tree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular-wizard/tsconfig.json b/angular-wizard/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular-wizard/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angular.throttle/tsconfig.json b/angular.throttle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angular.throttle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angularLocalStorage/tsconfig.json b/angularLocalStorage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angularLocalStorage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angularfire/tsconfig.json b/angularfire/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angularfire/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angularjs/angular-mocks-tests.ts b/angularjs/angular-mocks-tests.ts index 294bcf8982..8790e68cf3 100644 --- a/angularjs/angular-mocks-tests.ts +++ b/angularjs/angular-mocks-tests.ts @@ -36,6 +36,7 @@ mock.module( function () { return 2; } ); mock.module({ module1: function () { return 1; } }); +mock.module.sharedInjector(); date = mock.TzDate(-7, '2013-1-1T15:00:00Z'); date = mock.TzDate(-8, 12345678); diff --git a/angularjs/angular-mocks.d.ts b/angularjs/angular-mocks.d.ts index c97471e5bf..9031cc56d1 100644 --- a/angularjs/angular-mocks.d.ts +++ b/angularjs/angular-mocks.d.ts @@ -47,7 +47,10 @@ declare namespace angular { inject: IInjectStatic // see https://docs.angularjs.org/api/ngMock/function/angular.mock.module - module(...modules: any[]): any; + module: { + (...modules: any[]): any; + sharedInjector(): void; + } // see https://docs.angularjs.org/api/ngMock/type/angular.mock.TzDate TzDate(offset: number, timestamp: number): Date; diff --git a/angularjs/tsconfig.json b/angularjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angularjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/angulartics/tsconfig.json b/angulartics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/angulartics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/animation-frame/tsconfig.json b/animation-frame/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/animation-frame/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ansi-styles/tsconfig.json b/ansi-styles/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ansi-styles/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ansicolors/tsconfig.json b/ansicolors/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ansicolors/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/antd/tsconfig.json b/antd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/antd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/any-db-transaction/tsconfig.json b/any-db-transaction/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/any-db-transaction/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/any-db/tsconfig.json b/any-db/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/any-db/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/anydb-sql-migrations/tsconfig.json b/anydb-sql-migrations/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/anydb-sql-migrations/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/anydb-sql/tsconfig.json b/anydb-sql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/anydb-sql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/api-error-handler/tsconfig.json b/api-error-handler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/api-error-handler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/apn/tsconfig.json b/apn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/apn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/appframework/tsconfig.json b/appframework/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/appframework/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/appletvjs/tsconfig.json b/appletvjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/appletvjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/applicationinsights/tsconfig.json b/applicationinsights/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/applicationinsights/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/arbiter/tsconfig.json b/arbiter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/arbiter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/arcgis-js-api/tsconfig.json b/arcgis-js-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/arcgis-js-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/archiver/tsconfig.json b/archiver/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/archiver/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/archy/tsconfig.json b/archy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/archy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/argparse/tsconfig.json b/argparse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/argparse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/asana/tsconfig.json b/asana/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/asana/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/asciify/tsconfig.json b/asciify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/asciify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/aspnet-identity-pw/tsconfig.json b/aspnet-identity-pw/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/aspnet-identity-pw/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/assert/tsconfig.json b/assert/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/assert/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/assertion-error/tsconfig.json b/assertion-error/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/assertion-error/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/assertsharp/tsconfig.json b/assertsharp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/assertsharp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/async-lock/tsconfig.json b/async-lock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/async-lock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/async-writer/tsconfig.json b/async-writer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/async-writer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/async/tsconfig.json b/async/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/async/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/asyncblock/tsconfig.json b/asyncblock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/asyncblock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/atmosphere/tsconfig.json b/atmosphere/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/atmosphere/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/atom-keymap/tsconfig.json b/atom-keymap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/atom-keymap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/atom/tsconfig.json b/atom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/atom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/atpl/tsconfig.json b/atpl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/atpl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/auth0-angular/tsconfig.json b/auth0-angular/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/auth0-angular/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/auth0-lock/tsconfig.json b/auth0-lock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/auth0-lock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/auth0.widget/tsconfig.json b/auth0.widget/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/auth0.widget/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/auth0/tsconfig.json b/auth0/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/auth0/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/auto-launch/tsconfig.json b/auto-launch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/auto-launch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/autobahn/tsconfig.json b/autobahn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/autobahn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/autolinker/tsconfig.json b/autolinker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/autolinker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/autoprefixer-core/tsconfig.json b/autoprefixer-core/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/autoprefixer-core/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/aws-sdk/tsconfig.json b/aws-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/aws-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/axios/tsconfig.json b/axios/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/axios/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/azure-mobile-apps/tsconfig.json b/azure-mobile-apps/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/azure-mobile-apps/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/azure-mobile-services-client/tsconfig.json b/azure-mobile-services-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/azure-mobile-services-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/azure-sb/tsconfig.json b/azure-sb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/azure-sb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/azure/tsconfig.json b/azure/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/azure/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babel-core/babel-core-tests.ts b/babel-core/babel-core-tests.ts new file mode 100644 index 0000000000..e564b9d81e --- /dev/null +++ b/babel-core/babel-core-tests.ts @@ -0,0 +1,32 @@ +/// +import * as babel from "babel-core"; + + +// Example from https://github.com/babel/babel/tree/master/packages/babel-core +const code = `class Example {}`; +const result = babel.transform(code, { /* options */ }); +result.code; // Generated code +result.map; // Sourcemap +result.ast; // AST + + +// Examples from http://babeljs.io/docs/usage/api/ +let options: babel.TransformOptions = { + plugins: [ + "es2015-arrow-functions", + "es2015-block-scoped-functions", + "es2015-block-scoping", + "es2015-classes", + ], + only: /.*\.js/, + ast: false, + sourceMaps: true +}; + +babel.transformFile("filename.js", options, function (err, result) { + result.code; + result.map; + result.ast; +}); + +babel.transformFileSync("filename.js", options).code; diff --git a/babel-core/babel-core.d.ts b/babel-core/babel-core.d.ts new file mode 100644 index 0000000000..19146e65e0 --- /dev/null +++ b/babel-core/babel-core.d.ts @@ -0,0 +1,144 @@ +// Type definitions for babel-core v6.7 +// Project: https://github.com/babel/babel/tree/master/packages/babel-core +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// +/// + +declare module "babel-core" { + import * as t from 'babel-types'; + export {t as types}; + type Node = t.Node; + export import template = require('babel-template'); + export var version: string; + import traverse, {Visitor} from "babel-traverse"; + export {traverse, Visitor}; + + + /** Transforms the passed in `code`. Returning an object with the generated code, source map, and AST. */ + export function transform(code: string, opts?: TransformOptions): BabelFileResult; + + /** Asynchronously transforms the entire contents of a file. */ + export function transformFile(filename: string, opts: TransformOptions, callback: (err: any, result: BabelFileResult) => void): void; + + /** Synchronous version of `babel.transformFile`. Returns the transformed contents of the `filename`. */ + export function transformFileSync(filename: string, opts?: TransformOptions): BabelFileResult; + + export function transformFromAst(ast: Node, code?: string, opts?: TransformOptions): BabelFileResult; + + export interface TransformOptions { + + /** Filename to use when reading from stdin - this will be used in source-maps, errors etc. Default: "unknown". */ + filename?: string; + + /** Filename relative to `sourceRoot`. */ + filenameRelative?: string; + + /** A source map object that the output source map will be based on. */ + inputSourceMap?: Object; + + /** + * This is an object of keys that represent different environments. For example, you may have: + * `{ env: { production: { / * specific options * / } } }` + * which will use those options when the enviroment variable `BABEL_ENV` is set to `"production"`. + * If `BABEL_ENV` isn't set then `NODE_ENV` will be used, if it's not set then it defaults to `"development"`. + */ + env?: Object; + + /** Retain line numbers - will result in really ugly code. Default: `false` */ + retainLines?: boolean; + + /** Enable/disable ANSI syntax highlighting of code frames. Default: `true`. */ + highlightCode?: boolean; + + /** List of presets (a set of plugins) to load and use. */ + presets?: any[]; + + /** List of plugins to load and use. */ + plugins?: any[]; + + /** list of glob paths to **not** compile. Opposite to the `only` option. */ + ignore?: string[]; + + /** + * A glob, regex, or mixed array of both, matching paths to only compile. Can also be an array of arrays containing + * paths to explicitly match. When attempting to compile a non-matching file it's returned verbatim. + */ + only?: string | RegExp | Array; + + /** Enable code generation. Default: `true`. */ + code?: boolean; + + /** Include the AST in the returned object. Default: `true`. */ + ast?: boolean; + + /** A path to an .babelrc file to extend. */ + extends?: string; + + /** write comments to generated output. Default: `true`. */ + comments?: boolean; + + /** + * An optional callback that controls whether a comment should be output or not. Called as + * `shouldPrintComment(commentContents)`. **NOTE**: This overrides the `comments` option when used. + */ + shouldPrintComment?: (comment: string) => boolean; + + /** + * Do not include superfluous whitespace characters and line terminators. When set to `"auto"`, `compact` is set to + * `true` on input sizes of >100KB. + */ + compact?: boolean | "auto"; + + /** + * If truthy, adds a `map` property to returned output. If set to `"inline"`, a comment with a `sourceMappingURL` + * directive is added to the bottom of the returned code. If set to `"both"` then a map property is returned as well + * as a source map comment appended. + */ + sourceMaps?: boolean | "inline" | "both"; + + /** Set `file` on returned source map. */ + sourceMapTarget?: string; + + /** Set `sources[0]` on returned source map. */ + sourceFileName?: string; + + /** The root from which all sources are relative. */ + sourceRoot?: string; + + /** Specify whether or not to use `.babelrc` and `.babelignore` files. Default: `true`. */ + babelrc?: boolean; + + /** Attach a comment before all non-user injected code. */ + auxiliaryCommentBefore?: string; + + /** Attach a comment after all non-user injected code. */ + auxiliaryCommentAfter?: string; + + /** + * Specify a custom callback to generate a module id with. Called as `getModuleId(moduleName)`. + * If falsy value is returned then the generated module id is used. + */ + getModuleId?: (moduleName: string) => string; + + /** Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions. */ + moduleRoot?: string; + + /** + * If truthy, insert an explicit id for modules. By default, all modules are anonymous. + * (Not available for `common` modules). + */ + moduleIds?: boolean; + + /** Specify a custom name for module ids. */ + moduleId?: string; + } + + export interface BabelFileResult { + ast?: Node; + code?: string; + map?: Object; + } +} diff --git a/babel-core/tsconfig.json b/babel-core/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babel-core/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babel-generator/babel-generator-tests.ts b/babel-generator/babel-generator-tests.ts new file mode 100644 index 0000000000..33d10b5cd9 --- /dev/null +++ b/babel-generator/babel-generator-tests.ts @@ -0,0 +1,27 @@ +/// +/// + + +// Example from https://github.com/babel/babel/tree/master/packages/babel-generator +import {parse} from 'babylon'; +import generate from 'babel-generator'; + +const code = 'class Example {}'; +const ast = parse(code); + +ast.type; +ast.loc.start; + +const output = generate(ast, { /* options */ }, code); + + +// Example from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-generator +let result = generate(ast, { + retainLines: false, + compact: "auto", + concise: false, + quotes: "double", + // ... +}, code); +result.code; +result.map; diff --git a/babel-generator/babel-generator.d.ts b/babel-generator/babel-generator.d.ts new file mode 100644 index 0000000000..aa8232e8b0 --- /dev/null +++ b/babel-generator/babel-generator.d.ts @@ -0,0 +1,102 @@ +// Type definitions for babel-generator v6.7 +// Project: https://github.com/babel/babel/tree/master/packages/babel-generator +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "babel-generator" { + import * as t from 'babel-types'; + type Node = t.Node; + + /** + * Turns an AST into code, maintaining sourcemaps, user preferences, and valid output. + * @param ast - the abstract syntax tree from which to generate output code. + * @param opts - used for specifying options for code generation. + * @param code - the original source code, used for source maps. + * @returns - an object containing the output code and source map. + */ + export default function generate(ast: Node, opts?: GeneratorOptions, code?: string | {[filename: string]: string}): GeneratorResult; + + export interface GeneratorOptions { + + /** + * Optional string to add as a block comment at the start of the output file. + */ + auxiliaryCommentBefore?: string; + + /** + * Optional string to add as a block comment at the end of the output file. + */ + auxiliaryCommentAfter?: string; + + /** + * Function that takes a comment (as a string) and returns true if the comment should be included in the output. + * By default, comments are included if `opts.comments` is `true` or if `opts.minifed` is `false` and the comment + * contains `@preserve` or `@license`. + */ + shouldPrintComment?: (comment: string) => boolean; + + /** + * Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces). + * Defaults to `false`. + */ + retainLines?: boolean; + + /** + * Should comments be included in output? Defaults to `true`. + */ + comments?: boolean; + + /** + * Set to true to avoid adding whitespace for formatting. Defaults to the value of `opts.minified`. + */ + compact?: boolean | 'auto'; + + /** + * Should the output be minified. Defaults to `false`. + */ + minified?: boolean; + + /** + * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`. + */ + concise?: boolean; + + /** + * The type of quote to use in the output. If omitted, autodetects based on `ast.tokens`. + */ + quotes?: 'single' | 'double'; + + /** + * Used in warning messages + */ + filename?: string; + + /** + * Enable generating source maps. Defaults to `false`. + */ + sourceMaps?: boolean; + + /** + * The filename of the generated code that the source map will be associated with. + */ + sourceMapTarget?: string; + + /** + * A root for all relative URLs in the source map. + */ + sourceRoot?: string; + + /** + * The filename for the source code (i.e. the code in the `code` argument). + * This will only be used if `code` is a string. + */ + sourceFileName?: string; + } + + export interface GeneratorResult { + map: Object; + code: string; + } +} diff --git a/babel-generator/tsconfig.json b/babel-generator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babel-generator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babel-template/babel-template-tests.ts b/babel-template/babel-template-tests.ts new file mode 100644 index 0000000000..e0ae7497ff --- /dev/null +++ b/babel-template/babel-template-tests.ts @@ -0,0 +1,21 @@ +/// +/// +/// + + +// Example from https://github.com/babel/babel/tree/master/packages/babel-template +import template = require('babel-template'); +import generate from 'babel-generator'; +import * as t from 'babel-types'; + +const buildRequire = template(` + var IMPORT_NAME = require(SOURCE); +`); + +const ast = buildRequire({ + IMPORT_NAME: t.identifier('myModule'), + SOURCE: t.stringLiteral('my-module') +}); + +console.log(generate(ast).code); +// var myModule = require('my-module'); diff --git a/babel-template/babel-template.d.ts b/babel-template/babel-template.d.ts new file mode 100644 index 0000000000..7b3cafe7f4 --- /dev/null +++ b/babel-template/babel-template.d.ts @@ -0,0 +1,21 @@ +// Type definitions for babel-template v6.7 +// Project: https://github.com/babel/babel/tree/master/packages/babel-template +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare module "babel-template" { + import {BabylonOptions} from 'babylon'; + import * as t from 'babel-types'; + type Node = t.Node; + + // NB: This export doesn't match the handbook example, where `template` is the default export. + // But it does match the runtime behaviour (at least at the time of this writing). For some reason, + // babel-template/lib/index.js has this line at the bottom: module.exports = exports["default"]; + export = template; + function template(code: string, opts?: BabylonOptions): UseTemplate; + + type UseTemplate = (nodes?: {[placeholder: string]: Node}) => Node; +} diff --git a/babel-template/tsconfig.json b/babel-template/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babel-template/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babel-traverse/babel-traverse-tests.ts b/babel-traverse/babel-traverse-tests.ts new file mode 100644 index 0000000000..fba04dfd5d --- /dev/null +++ b/babel-traverse/babel-traverse-tests.ts @@ -0,0 +1,111 @@ +/// +/// +/// + + +import * as babylon from "babylon"; +import traverse, {Visitor} from 'babel-traverse'; +import * as t from 'babel-types'; + + +// Examples from: https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md +const MyVisitor: Visitor = { + Identifier: { + enter() { + console.log("Entered!"); + }, + exit() { + console.log("Exited!"); + } + } +}; + +const MyVisitor2: Visitor = { + Identifier(path) { + console.log("Visiting: " + path.node.name); + } +}; + + +// Example from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-traverse +const code = `function square(n) { + return n * n; +}`; + +const ast = babylon.parse(code); + +traverse(ast, { + enter(path) { + let node = path.node; + if (t.isIdentifier(node) && node.name === "n") { + node.name = "x"; + } + } +}); + + +// Examples from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#writing-your-first-babel-plugin + +const v1: Visitor = { + + BinaryExpression(path) { + if (t.isIdentifier(path.node.left)) { + // ... + } + path.replaceWith( + t.binaryExpression("**", path.node.left, t.numericLiteral(2)) + ); + path.parentPath.replaceWith( + t.expressionStatement(t.stringLiteral("Anyway the wind blows, doesn't really matter to me, to me.")) + ); + path.parentPath.remove(); + }, + + Identifier(path) { + if (path.isReferencedIdentifier()) { + // ... + } + if (t.isReferenced(path.node, path.parent)) { + // ... + } + }, + + ReturnStatement(path) { + path.replaceWithMultiple([ + t.expressionStatement(t.stringLiteral("Is this the real life?")), + t.expressionStatement(t.stringLiteral("Is this just fantasy?")), + t.expressionStatement(t.stringLiteral("(Enjoy singing the rest of the song in your head)")), + ]); + }, + + FunctionDeclaration(path, state) { + path.replaceWithSourceString(`function add(a, b) { + return a + b; + }`); + + path.insertBefore(t.expressionStatement(t.stringLiteral("Because I'm easy come, easy go."))); + path.insertAfter(t.expressionStatement(t.stringLiteral("A little high, little low."))); + path.remove(); + + if (path.scope.hasBinding("n")) { + // ... + } + if (path.scope.hasOwnBinding("n")) { + // ... + } + + let id1 = path.scope.generateUidIdentifier("uid"); + id1.type; + id1.name; + let id2 = path.scope.generateUidIdentifier("uid"); + id2.type; + id2.name; + + const id = path.scope.generateUidIdentifierBasedOnNode(path.node.id); + path.remove(); + path.scope.parent.push({ id, init: path.node }); + + path.scope.rename("n", "x"); + path.scope.rename("n"); + } +}; diff --git a/babel-traverse/babel-traverse.d.ts b/babel-traverse/babel-traverse.d.ts new file mode 100644 index 0000000000..17cbda2f23 --- /dev/null +++ b/babel-traverse/babel-traverse.d.ts @@ -0,0 +1,966 @@ +// Type definitions for babel-traverse v6.7 +// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "babel-traverse" { + import * as t from 'babel-types'; + type Node = t.Node; + + export default function traverse(parent: Node | Node[], opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void; + + export interface TraverseOptions extends Visitor { + scope?: Scope; + noScope?: boolean; + } + + export class Scope { + constructor(path: NodePath, parentScope?: Scope); + path: NodePath; + block: Node; + parentBlock: Node; + parent: Scope; + hub: Hub; + bindings: { [name: string]: Binding; }; + + /** Traverse node with current scope and path. */ + traverse(node: Node | Node[], opts?: TraverseOptions, state?: any): void; + + /** Generate a unique identifier and add it to the current scope. */ + generateDeclaredUidIdentifier(name?: string): t.Identifier; + + /** Generate a unique identifier. */ + generateUidIdentifier(name?: string): t.Identifier; + + /** Generate a unique `_id1` binding. */ + generateUid(name?: string): string; + + /** Generate a unique identifier based on a node. */ + generateUidIdentifierBasedOnNode(parent: Node, defaultName?: string): t.Identifier; + + /** + * Determine whether evaluating the specific input `node` is a consequenceless reference. ie. + * evaluating it wont result in potentially arbitrary code from being ran. The following are + * whitelisted and determined not to cause side effects: + * + * - `this` expressions + * - `super` expressions + * - Bound identifiers + */ + isStatic(node: Node): boolean; + + /** Possibly generate a memoised identifier if it is not static and has consequences. */ + maybeGenerateMemoised(node: Node, dontPush?: boolean): t.Identifier; + + checkBlockScopedCollisions(local: Node, kind: string, name: string, id: Object): void; + + rename(oldName: string, newName?: string, block?: Node): void; + + dump(): void; + + toArray(node: Node, i?: number): Node; + + registerDeclaration(path: NodePath): void; + + buildUndefinedNode(): Node; + + registerConstantViolation(path: NodePath): void; + + registerBinding(kind: string, path: NodePath, bindingPath?: NodePath): void; + + addGlobal(node: Node): void; + + hasUid(name: string): boolean; + + hasGlobal(name: string): boolean; + + hasReference(name: string): boolean; + + isPure(node: Node, constantsOnly?: boolean): boolean; + + setData(key: string, val: any): any; + + getData(key: string): any; + + removeData(key: string): void; + + push(opts: any): void; + + getProgramParent(): Scope; + + getFunctionParent(): Scope; + + getBlockParent(): Scope; + + /** Walks the scope tree and gathers **all** bindings. */ + getAllBindings(...kinds: string[]): Object; + + bindingIdentifierEquals(name: string, node: Node): boolean; + + getBinding(name: string): Binding; + + getOwnBinding(name: string): Binding; + + getBindingIdentifier(name: string): t.Identifier; + + getOwnBindingIdentifier(name: string): t.Identifier; + + hasOwnBinding(name: string): boolean; + + hasBinding(name: string, noGlobals?: boolean): boolean; + + parentHasBinding(name: string, noGlobals?: boolean): boolean; + + /** Move a binding of `name` to another `scope`. */ + moveBindingTo(name: string, scope: Scope): void; + + removeOwnBinding(name: string): void; + + removeBinding(name: string): void; + } + + export class Binding { + constructor(opts: { existing: Binding; identifier: t.Identifier; scope: Scope; path: NodePath; kind: 'var' | 'let' | 'const'; }); + identifier: t.Identifier; + scope: Scope; + path: NodePath; + kind: 'var' | 'let' | 'const'; + referenced: boolean; + references: number; + referencePaths: NodePath[]; + constant: boolean; + constantViolations: NodePath[]; + } + + export interface Visitor extends VisitNodeObject { + ArrayExpression?: VisitNode; + AssignmentExpression?: VisitNode; + LVal?: VisitNode; + Expression?: VisitNode; + BinaryExpression?: VisitNode; + Directive?: VisitNode; + DirectiveLiteral?: VisitNode; + BlockStatement?: VisitNode; + BreakStatement?: VisitNode; + Identifier?: VisitNode; + CallExpression?: VisitNode; + CatchClause?: VisitNode; + ConditionalExpression?: VisitNode; + ContinueStatement?: VisitNode; + DebuggerStatement?: VisitNode; + DoWhileStatement?: VisitNode; + Statement?: VisitNode; + EmptyStatement?: VisitNode; + ExpressionStatement?: VisitNode; + File?: VisitNode; + Program?: VisitNode; + ForInStatement?: VisitNode; + VariableDeclaration?: VisitNode; + ForStatement?: VisitNode; + FunctionDeclaration?: VisitNode; + FunctionExpression?: VisitNode; + IfStatement?: VisitNode; + LabeledStatement?: VisitNode; + StringLiteral?: VisitNode; + NumericLiteral?: VisitNode; + NullLiteral?: VisitNode; + BooleanLiteral?: VisitNode; + RegExpLiteral?: VisitNode; + LogicalExpression?: VisitNode; + MemberExpression?: VisitNode; + NewExpression?: VisitNode; + ObjectExpression?: VisitNode; + ObjectMethod?: VisitNode; + ObjectProperty?: VisitNode; + RestElement?: VisitNode; + ReturnStatement?: VisitNode; + SequenceExpression?: VisitNode; + SwitchCase?: VisitNode; + SwitchStatement?: VisitNode; + ThisExpression?: VisitNode; + ThrowStatement?: VisitNode; + TryStatement?: VisitNode; + UnaryExpression?: VisitNode; + UpdateExpression?: VisitNode; + VariableDeclarator?: VisitNode; + WhileStatement?: VisitNode; + WithStatement?: VisitNode; + AssignmentPattern?: VisitNode; + ArrayPattern?: VisitNode; + ArrowFunctionExpression?: VisitNode; + ClassBody?: VisitNode; + ClassDeclaration?: VisitNode; + ClassExpression?: VisitNode; + ExportAllDeclaration?: VisitNode; + ExportDefaultDeclaration?: VisitNode; + ExportNamedDeclaration?: VisitNode; + Declaration?: VisitNode; + ExportSpecifier?: VisitNode; + ForOfStatement?: VisitNode; + ImportDeclaration?: VisitNode; + ImportDefaultSpecifier?: VisitNode; + ImportNamespaceSpecifier?: VisitNode; + ImportSpecifier?: VisitNode; + MetaProperty?: VisitNode; + ClassMethod?: VisitNode; + ObjectPattern?: VisitNode; + SpreadElement?: VisitNode; + Super?: VisitNode; + TaggedTemplateExpression?: VisitNode; + TemplateLiteral?: VisitNode; + TemplateElement?: VisitNode; + YieldExpression?: VisitNode; + AnyTypeAnnotation?: VisitNode; + ArrayTypeAnnotation?: VisitNode; + BooleanTypeAnnotation?: VisitNode; + BooleanLiteralTypeAnnotation?: VisitNode; + NullLiteralTypeAnnotation?: VisitNode; + ClassImplements?: VisitNode; + ClassProperty?: VisitNode; + DeclareClass?: VisitNode; + DeclareFunction?: VisitNode; + DeclareInterface?: VisitNode; + DeclareModule?: VisitNode; + DeclareTypeAlias?: VisitNode; + DeclareVariable?: VisitNode; + ExistentialTypeParam?: VisitNode; + FunctionTypeAnnotation?: VisitNode; + FunctionTypeParam?: VisitNode; + GenericTypeAnnotation?: VisitNode; + InterfaceExtends?: VisitNode; + InterfaceDeclaration?: VisitNode; + IntersectionTypeAnnotation?: VisitNode; + MixedTypeAnnotation?: VisitNode; + NullableTypeAnnotation?: VisitNode; + NumericLiteralTypeAnnotation?: VisitNode; + NumberTypeAnnotation?: VisitNode; + StringLiteralTypeAnnotation?: VisitNode; + StringTypeAnnotation?: VisitNode; + ThisTypeAnnotation?: VisitNode; + TupleTypeAnnotation?: VisitNode; + TypeofTypeAnnotation?: VisitNode; + TypeAlias?: VisitNode; + TypeAnnotation?: VisitNode; + TypeCastExpression?: VisitNode; + TypeParameterDeclaration?: VisitNode; + TypeParameterInstantiation?: VisitNode; + ObjectTypeAnnotation?: VisitNode; + ObjectTypeCallProperty?: VisitNode; + ObjectTypeIndexer?: VisitNode; + ObjectTypeProperty?: VisitNode; + QualifiedTypeIdentifier?: VisitNode; + UnionTypeAnnotation?: VisitNode; + VoidTypeAnnotation?: VisitNode; + JSXAttribute?: VisitNode; + JSXIdentifier?: VisitNode; + JSXNamespacedName?: VisitNode; + JSXElement?: VisitNode; + JSXExpressionContainer?: VisitNode; + JSXClosingElement?: VisitNode; + JSXMemberExpression?: VisitNode; + JSXOpeningElement?: VisitNode; + JSXEmptyExpression?: VisitNode; + JSXSpreadAttribute?: VisitNode; + JSXText?: VisitNode; + Noop?: VisitNode; + ParenthesizedExpression?: VisitNode; + AwaitExpression?: VisitNode; + BindExpression?: VisitNode; + Decorator?: VisitNode; + DoExpression?: VisitNode; + ExportDefaultSpecifier?: VisitNode; + ExportNamespaceSpecifier?: VisitNode; + RestProperty?: VisitNode; + SpreadProperty?: VisitNode; + Binary?: VisitNode; + Scopable?: VisitNode; + BlockParent?: VisitNode; + Block?: VisitNode; + Terminatorless?: VisitNode; + CompletionStatement?: VisitNode; + Conditional?: VisitNode; + Loop?: VisitNode; + While?: VisitNode; + ExpressionWrapper?: VisitNode; + For?: VisitNode; + ForXStatement?: VisitNode; + Function?: VisitNode; + FunctionParent?: VisitNode; + Pureish?: VisitNode; + Literal?: VisitNode; + Immutable?: VisitNode; + UserWhitespacable?: VisitNode; + Method?: VisitNode; + ObjectMember?: VisitNode; + Property?: VisitNode; + UnaryLike?: VisitNode; + Pattern?: VisitNode; + Class?: VisitNode; + ModuleDeclaration?: VisitNode; + ExportDeclaration?: VisitNode; + ModuleSpecifier?: VisitNode; + Flow?: VisitNode; + FlowBaseAnnotation?: VisitNode; + FlowDeclaration?: VisitNode; + JSX?: VisitNode; + } + + export type VisitNode = VisitNodeFunction | VisitNodeObject; + + export type VisitNodeFunction = (path: NodePath, state: any) => void; + + export interface VisitNodeObject { + enter?(path: NodePath, state: any): void; + exit?(path: NodePath, state: any): void; + } + + export class NodePath { + constructor(hub: Hub, parent: Node); + parent: Node; + hub: Hub; + contexts: TraversalContext[]; + data: Object; + shouldSkip: boolean; + shouldStop: boolean; + removed: boolean; + state: any; + opts: Object; + skipKeys: Object; + parentPath: NodePath; + context: TraversalContext; + container: Object | Object[]; + listKey: string; + inList: boolean; + parentKey: string; + key: string; + node: T; + scope: Scope; + type: string; + typeAnnotation: Object; + + getScope(scope: Scope): Scope; + + setData(key: string, val: any): any; + + getData(key: string, def?: any): any; + + buildCodeFrameError(msg: string, Error: Error): Error; + + traverse(visitor: Visitor, state?: any): void; + + set(key: string, node: Node): void; + + getPathLocation(): string; + + debug(buildMessage: Function): void; + + // ------------------------- ancestry ------------------------- + /** + * Call the provided `callback` with the `NodePath`s of all the parents. + * When the `callback` returns a truthy value, we return that node path. + */ + findParent(callback: (path: NodePath) => boolean): NodePath; + + find(callback: (path: NodePath) => boolean): NodePath; + + /** Get the parent function of the current path. */ + getFunctionParent(): NodePath; + + /** Walk up the tree until we hit a parent node path in a list. */ + getStatementParent(): NodePath; + + /** + * Get the deepest common ancestor and then from it, get the earliest relationship path + * to that ancestor. + * + * Earliest is defined as being "before" all the other nodes in terms of list container + * position and visiting key. + */ + getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath; + + /** Get the earliest path in the tree where the provided `paths` intersect. */ + getDeepestCommonAncestorFrom(paths: NodePath[], filter?: Function): NodePath; + + /** + * Build an array of node paths containing the entire ancestry of the current node path. + * + * NOTE: The current node path is included in this. + */ + getAncestry(): NodePath[]; + + inType(...candidateTypes: string[]): boolean; + + // ------------------------- inference ------------------------- + /** Infer the type of the current `NodePath`. */ + getTypeAnnotation(): t.FlowTypeAnnotation; + + isBaseType(baseName: string, soft?: boolean): boolean; + + couldBeBaseType(name: string): boolean; + + baseTypeStrictlyMatches(right: NodePath): boolean; + + isGenericType(genericName: string): boolean; + + // ------------------------- replacement ------------------------- + /** + * Replace a node with an array of multiple. This method performs the following steps: + * + * - Inherit the comments of first provided node with that of the current node. + * - Insert the provided nodes after the current node. + * - Remove the current node. + */ + replaceWithMultiple(nodes: Node[]): void; + + /** + * Parse a string as an expression and replace the current node with the result. + * + * NOTE: This is typically not a good idea to use. Building source strings when + * transforming ASTs is an antipattern and SHOULD NOT be encouraged. Even if it's + * easier to use, your transforms will be extremely brittle. + */ + replaceWithSourceString(replacement: any): void; + + /** Replace the current node with another. */ + replaceWith(replacement: Node | NodePath): void; + + /** + * This method takes an array of statements nodes and then explodes it + * into expressions. This method retains completion records which is + * extremely important to retain original semantics. + */ + replaceExpressionWithStatements(nodes: Node[]): Node; + + replaceInline(nodes: Node | Node[]): void; + + // ------------------------- evaluation ------------------------- + /** + * Walk the input `node` and statically evaluate if it's truthy. + * + * Returning `true` when we're sure that the expression will evaluate to a + * truthy value, `false` if we're sure that it will evaluate to a falsy + * value and `undefined` if we aren't sure. Because of this please do not + * rely on coercion when using this method and check with === if it's false. + */ + evaluateTruthy(): boolean; + + /** + * Walk the input `node` and statically evaluate it. + * + * Returns an object in the form `{ confident, value }`. `confident` indicates + * whether or not we had to drop out of evaluating the expression because of + * hitting an unknown node that we couldn't confidently find the value of. + * + * Example: + * + * t.evaluate(parse("5 + 5")) // { confident: true, value: 10 } + * t.evaluate(parse("!true")) // { confident: true, value: false } + * t.evaluate(parse("foo + foo")) // { confident: false, value: undefined } + */ + evaluate(): { confident: boolean; value: any }; + + // ------------------------- introspection ------------------------- + /** + * Match the current node if it matches the provided `pattern`. + * + * For example, given the match `React.createClass` it would match the + * parsed nodes of `React.createClass` and `React["createClass"]`. + */ + matchesPattern(pattern: string, allowPartial?: boolean): boolean; + + /** + * Check whether we have the input `key`. If the `key` references an array then we check + * if the array has any items, otherwise we just check if it's falsy. + */ + has(key: string): boolean; + + isStatic(): boolean; + + /** Alias of `has`. */ + is(key: string): boolean; + + /** Opposite of `has`. */ + isnt(key: string): boolean; + + /** Check whether the path node `key` strict equals `value`. */ + equals(key: string, value: any): boolean; + + /** + * Check the type against our stored internal type of the node. This is handy when a node has + * been removed yet we still internally know the type and need it to calculate node replacement. + */ + isNodeType(type: string): boolean; + + /** + * This checks whether or not we're in one of the following positions: + * + * for (KEY in right); + * for (KEY;;); + * + * This is because these spots allow VariableDeclarations AND normal expressions so we need + * to tell the path replacement that it's ok to replace this with an expression. + */ + canHaveVariableDeclarationOrExpression(): boolean; + + /** + * This checks whether we are swapping an arrow function's body between an + * expression and a block statement (or vice versa). + * + * This is because arrow functions may implicitly return an expression, which + * is the same as containing a block statement. + */ + canSwapBetweenExpressionAndStatement(replacement: Node): boolean; + + /** Check whether the current path references a completion record */ + isCompletionRecord(allowInsideFunction?: boolean): boolean; + + /** + * Check whether or not the current `key` allows either a single statement or block statement + * so we can explode it if necessary. + */ + isStatementOrBlock(): boolean; + + /** Check if the currently assigned path references the `importName` of `moduleSource`. */ + referencesImport(moduleSource: string, importName: string): boolean; + + /** Get the source code associated with this node. */ + getSource(): string; + + // ------------------------- context ------------------------- + call(key: string): boolean; + + isBlacklisted(): boolean; + + visit(): boolean; + + skip(): void; + + skipKey(key: string): void; + + stop(): void; + + setScope(): void; + + setContext(context: TraversalContext): NodePath; + + popContext(): void; + + pushContext(context: TraversalContext): void; + + // ------------------------- removal ------------------------- + remove(): void; + + // ------------------------- modification ------------------------- + /** Insert the provided nodes before the current one. */ + insertBefore(nodes: Node | Node[]): any; + + /** + * Insert the provided nodes after the current one. When inserting nodes after an + * expression, ensure that the completion record is correct by pushing the current node. + */ + insertAfter(nodes: Node | Node[]): any; + + /** Update all sibling node paths after `fromIndex` by `incrementBy`. */ + updateSiblingKeys(fromIndex: number, incrementBy: number): void; + + /** Hoist the current node to the highest scope possible and return a UID referencing it. */ + hoist(scope: Scope): void; + + // ------------------------- family ------------------------- + getStatementParent(): NodePath; + + getOpposite(): NodePath; + + getCompletionRecords(): NodePath[]; + + getSibling(key: string): NodePath; + + get(key: string, context?: boolean | TraversalContext): NodePath; + + getBindingIdentifiers(duplicates?: boolean): Node[]; + + getOuterBindingIdentifiers(duplicates?: boolean): Node[]; + + // ------------------------- comments ------------------------- + /** Share comments amongst siblings. */ + shareCommentsWithSiblings(): void; + + addComment(type: string, content: string, line?: boolean): void; + + /** Give node `comments` of the specified `type`. */ + addComments(type: string, comments: any[]): void; + + // ------------------------- isXXX ------------------------- + isArrayExpression(opts?: Object): boolean; + isAssignmentExpression(opts?: Object): boolean; + isBinaryExpression(opts?: Object): boolean; + isDirective(opts?: Object): boolean; + isDirectiveLiteral(opts?: Object): boolean; + isBlockStatement(opts?: Object): boolean; + isBreakStatement(opts?: Object): boolean; + isCallExpression(opts?: Object): boolean; + isCatchClause(opts?: Object): boolean; + isConditionalExpression(opts?: Object): boolean; + isContinueStatement(opts?: Object): boolean; + isDebuggerStatement(opts?: Object): boolean; + isDoWhileStatement(opts?: Object): boolean; + isEmptyStatement(opts?: Object): boolean; + isExpressionStatement(opts?: Object): boolean; + isFile(opts?: Object): boolean; + isForInStatement(opts?: Object): boolean; + isForStatement(opts?: Object): boolean; + isFunctionDeclaration(opts?: Object): boolean; + isFunctionExpression(opts?: Object): boolean; + isIdentifier(opts?: Object): boolean; + isIfStatement(opts?: Object): boolean; + isLabeledStatement(opts?: Object): boolean; + isStringLiteral(opts?: Object): boolean; + isNumericLiteral(opts?: Object): boolean; + isNullLiteral(opts?: Object): boolean; + isBooleanLiteral(opts?: Object): boolean; + isRegExpLiteral(opts?: Object): boolean; + isLogicalExpression(opts?: Object): boolean; + isMemberExpression(opts?: Object): boolean; + isNewExpression(opts?: Object): boolean; + isProgram(opts?: Object): boolean; + isObjectExpression(opts?: Object): boolean; + isObjectMethod(opts?: Object): boolean; + isObjectProperty(opts?: Object): boolean; + isRestElement(opts?: Object): boolean; + isReturnStatement(opts?: Object): boolean; + isSequenceExpression(opts?: Object): boolean; + isSwitchCase(opts?: Object): boolean; + isSwitchStatement(opts?: Object): boolean; + isThisExpression(opts?: Object): boolean; + isThrowStatement(opts?: Object): boolean; + isTryStatement(opts?: Object): boolean; + isUnaryExpression(opts?: Object): boolean; + isUpdateExpression(opts?: Object): boolean; + isVariableDeclaration(opts?: Object): boolean; + isVariableDeclarator(opts?: Object): boolean; + isWhileStatement(opts?: Object): boolean; + isWithStatement(opts?: Object): boolean; + isAssignmentPattern(opts?: Object): boolean; + isArrayPattern(opts?: Object): boolean; + isArrowFunctionExpression(opts?: Object): boolean; + isClassBody(opts?: Object): boolean; + isClassDeclaration(opts?: Object): boolean; + isClassExpression(opts?: Object): boolean; + isExportAllDeclaration(opts?: Object): boolean; + isExportDefaultDeclaration(opts?: Object): boolean; + isExportNamedDeclaration(opts?: Object): boolean; + isExportSpecifier(opts?: Object): boolean; + isForOfStatement(opts?: Object): boolean; + isImportDeclaration(opts?: Object): boolean; + isImportDefaultSpecifier(opts?: Object): boolean; + isImportNamespaceSpecifier(opts?: Object): boolean; + isImportSpecifier(opts?: Object): boolean; + isMetaProperty(opts?: Object): boolean; + isClassMethod(opts?: Object): boolean; + isObjectPattern(opts?: Object): boolean; + isSpreadElement(opts?: Object): boolean; + isSuper(opts?: Object): boolean; + isTaggedTemplateExpression(opts?: Object): boolean; + isTemplateElement(opts?: Object): boolean; + isTemplateLiteral(opts?: Object): boolean; + isYieldExpression(opts?: Object): boolean; + isAnyTypeAnnotation(opts?: Object): boolean; + isArrayTypeAnnotation(opts?: Object): boolean; + isBooleanTypeAnnotation(opts?: Object): boolean; + isBooleanLiteralTypeAnnotation(opts?: Object): boolean; + isNullLiteralTypeAnnotation(opts?: Object): boolean; + isClassImplements(opts?: Object): boolean; + isClassProperty(opts?: Object): boolean; + isDeclareClass(opts?: Object): boolean; + isDeclareFunction(opts?: Object): boolean; + isDeclareInterface(opts?: Object): boolean; + isDeclareModule(opts?: Object): boolean; + isDeclareTypeAlias(opts?: Object): boolean; + isDeclareVariable(opts?: Object): boolean; + isExistentialTypeParam(opts?: Object): boolean; + isFunctionTypeAnnotation(opts?: Object): boolean; + isFunctionTypeParam(opts?: Object): boolean; + isGenericTypeAnnotation(opts?: Object): boolean; + isInterfaceExtends(opts?: Object): boolean; + isInterfaceDeclaration(opts?: Object): boolean; + isIntersectionTypeAnnotation(opts?: Object): boolean; + isMixedTypeAnnotation(opts?: Object): boolean; + isNullableTypeAnnotation(opts?: Object): boolean; + isNumericLiteralTypeAnnotation(opts?: Object): boolean; + isNumberTypeAnnotation(opts?: Object): boolean; + isStringLiteralTypeAnnotation(opts?: Object): boolean; + isStringTypeAnnotation(opts?: Object): boolean; + isThisTypeAnnotation(opts?: Object): boolean; + isTupleTypeAnnotation(opts?: Object): boolean; + isTypeofTypeAnnotation(opts?: Object): boolean; + isTypeAlias(opts?: Object): boolean; + isTypeAnnotation(opts?: Object): boolean; + isTypeCastExpression(opts?: Object): boolean; + isTypeParameterDeclaration(opts?: Object): boolean; + isTypeParameterInstantiation(opts?: Object): boolean; + isObjectTypeAnnotation(opts?: Object): boolean; + isObjectTypeCallProperty(opts?: Object): boolean; + isObjectTypeIndexer(opts?: Object): boolean; + isObjectTypeProperty(opts?: Object): boolean; + isQualifiedTypeIdentifier(opts?: Object): boolean; + isUnionTypeAnnotation(opts?: Object): boolean; + isVoidTypeAnnotation(opts?: Object): boolean; + isJSXAttribute(opts?: Object): boolean; + isJSXClosingElement(opts?: Object): boolean; + isJSXElement(opts?: Object): boolean; + isJSXEmptyExpression(opts?: Object): boolean; + isJSXExpressionContainer(opts?: Object): boolean; + isJSXIdentifier(opts?: Object): boolean; + isJSXMemberExpression(opts?: Object): boolean; + isJSXNamespacedName(opts?: Object): boolean; + isJSXOpeningElement(opts?: Object): boolean; + isJSXSpreadAttribute(opts?: Object): boolean; + isJSXText(opts?: Object): boolean; + isNoop(opts?: Object): boolean; + isParenthesizedExpression(opts?: Object): boolean; + isAwaitExpression(opts?: Object): boolean; + isBindExpression(opts?: Object): boolean; + isDecorator(opts?: Object): boolean; + isDoExpression(opts?: Object): boolean; + isExportDefaultSpecifier(opts?: Object): boolean; + isExportNamespaceSpecifier(opts?: Object): boolean; + isRestProperty(opts?: Object): boolean; + isSpreadProperty(opts?: Object): boolean; + isExpression(opts?: Object): boolean; + isBinary(opts?: Object): boolean; + isScopable(opts?: Object): boolean; + isBlockParent(opts?: Object): boolean; + isBlock(opts?: Object): boolean; + isStatement(opts?: Object): boolean; + isTerminatorless(opts?: Object): boolean; + isCompletionStatement(opts?: Object): boolean; + isConditional(opts?: Object): boolean; + isLoop(opts?: Object): boolean; + isWhile(opts?: Object): boolean; + isExpressionWrapper(opts?: Object): boolean; + isFor(opts?: Object): boolean; + isForXStatement(opts?: Object): boolean; + isFunction(opts?: Object): boolean; + isFunctionParent(opts?: Object): boolean; + isPureish(opts?: Object): boolean; + isDeclaration(opts?: Object): boolean; + isLVal(opts?: Object): boolean; + isLiteral(opts?: Object): boolean; + isImmutable(opts?: Object): boolean; + isUserWhitespacable(opts?: Object): boolean; + isMethod(opts?: Object): boolean; + isObjectMember(opts?: Object): boolean; + isProperty(opts?: Object): boolean; + isUnaryLike(opts?: Object): boolean; + isPattern(opts?: Object): boolean; + isClass(opts?: Object): boolean; + isModuleDeclaration(opts?: Object): boolean; + isExportDeclaration(opts?: Object): boolean; + isModuleSpecifier(opts?: Object): boolean; + isFlow(opts?: Object): boolean; + isFlowBaseAnnotation(opts?: Object): boolean; + isFlowDeclaration(opts?: Object): boolean; + isJSX(opts?: Object): boolean; + isNumberLiteral(opts?: Object): boolean; + isRegexLiteral(opts?: Object): boolean; + isReferencedIdentifier(opts?: Object): boolean; + isReferencedMemberExpression(opts?: Object): boolean; + isBindingIdentifier(opts?: Object): boolean; + isScope(opts?: Object): boolean; + isReferenced(opts?: Object): boolean; + isBlockScoped(opts?: Object): boolean; + isVar(opts?: Object): boolean; + isUser(opts?: Object): boolean; + isGenerated(opts?: Object): boolean; + isPure(opts?: Object): boolean; + + // ------------------------- assertXXX ------------------------- + assertArrayExpression(opts?: Object): void; + assertAssignmentExpression(opts?: Object): void; + assertBinaryExpression(opts?: Object): void; + assertDirective(opts?: Object): void; + assertDirectiveLiteral(opts?: Object): void; + assertBlockStatement(opts?: Object): void; + assertBreakStatement(opts?: Object): void; + assertCallExpression(opts?: Object): void; + assertCatchClause(opts?: Object): void; + assertConditionalExpression(opts?: Object): void; + assertContinueStatement(opts?: Object): void; + assertDebuggerStatement(opts?: Object): void; + assertDoWhileStatement(opts?: Object): void; + assertEmptyStatement(opts?: Object): void; + assertExpressionStatement(opts?: Object): void; + assertFile(opts?: Object): void; + assertForInStatement(opts?: Object): void; + assertForStatement(opts?: Object): void; + assertFunctionDeclaration(opts?: Object): void; + assertFunctionExpression(opts?: Object): void; + assertIdentifier(opts?: Object): void; + assertIfStatement(opts?: Object): void; + assertLabeledStatement(opts?: Object): void; + assertStringLiteral(opts?: Object): void; + assertNumericLiteral(opts?: Object): void; + assertNullLiteral(opts?: Object): void; + assertBooleanLiteral(opts?: Object): void; + assertRegExpLiteral(opts?: Object): void; + assertLogicalExpression(opts?: Object): void; + assertMemberExpression(opts?: Object): void; + assertNewExpression(opts?: Object): void; + assertProgram(opts?: Object): void; + assertObjectExpression(opts?: Object): void; + assertObjectMethod(opts?: Object): void; + assertObjectProperty(opts?: Object): void; + assertRestElement(opts?: Object): void; + assertReturnStatement(opts?: Object): void; + assertSequenceExpression(opts?: Object): void; + assertSwitchCase(opts?: Object): void; + assertSwitchStatement(opts?: Object): void; + assertThisExpression(opts?: Object): void; + assertThrowStatement(opts?: Object): void; + assertTryStatement(opts?: Object): void; + assertUnaryExpression(opts?: Object): void; + assertUpdateExpression(opts?: Object): void; + assertVariableDeclaration(opts?: Object): void; + assertVariableDeclarator(opts?: Object): void; + assertWhileStatement(opts?: Object): void; + assertWithStatement(opts?: Object): void; + assertAssignmentPattern(opts?: Object): void; + assertArrayPattern(opts?: Object): void; + assertArrowFunctionExpression(opts?: Object): void; + assertClassBody(opts?: Object): void; + assertClassDeclaration(opts?: Object): void; + assertClassExpression(opts?: Object): void; + assertExportAllDeclaration(opts?: Object): void; + assertExportDefaultDeclaration(opts?: Object): void; + assertExportNamedDeclaration(opts?: Object): void; + assertExportSpecifier(opts?: Object): void; + assertForOfStatement(opts?: Object): void; + assertImportDeclaration(opts?: Object): void; + assertImportDefaultSpecifier(opts?: Object): void; + assertImportNamespaceSpecifier(opts?: Object): void; + assertImportSpecifier(opts?: Object): void; + assertMetaProperty(opts?: Object): void; + assertClassMethod(opts?: Object): void; + assertObjectPattern(opts?: Object): void; + assertSpreadElement(opts?: Object): void; + assertSuper(opts?: Object): void; + assertTaggedTemplateExpression(opts?: Object): void; + assertTemplateElement(opts?: Object): void; + assertTemplateLiteral(opts?: Object): void; + assertYieldExpression(opts?: Object): void; + assertAnyTypeAnnotation(opts?: Object): void; + assertArrayTypeAnnotation(opts?: Object): void; + assertBooleanTypeAnnotation(opts?: Object): void; + assertBooleanLiteralTypeAnnotation(opts?: Object): void; + assertNullLiteralTypeAnnotation(opts?: Object): void; + assertClassImplements(opts?: Object): void; + assertClassProperty(opts?: Object): void; + assertDeclareClass(opts?: Object): void; + assertDeclareFunction(opts?: Object): void; + assertDeclareInterface(opts?: Object): void; + assertDeclareModule(opts?: Object): void; + assertDeclareTypeAlias(opts?: Object): void; + assertDeclareVariable(opts?: Object): void; + assertExistentialTypeParam(opts?: Object): void; + assertFunctionTypeAnnotation(opts?: Object): void; + assertFunctionTypeParam(opts?: Object): void; + assertGenericTypeAnnotation(opts?: Object): void; + assertInterfaceExtends(opts?: Object): void; + assertInterfaceDeclaration(opts?: Object): void; + assertIntersectionTypeAnnotation(opts?: Object): void; + assertMixedTypeAnnotation(opts?: Object): void; + assertNullableTypeAnnotation(opts?: Object): void; + assertNumericLiteralTypeAnnotation(opts?: Object): void; + assertNumberTypeAnnotation(opts?: Object): void; + assertStringLiteralTypeAnnotation(opts?: Object): void; + assertStringTypeAnnotation(opts?: Object): void; + assertThisTypeAnnotation(opts?: Object): void; + assertTupleTypeAnnotation(opts?: Object): void; + assertTypeofTypeAnnotation(opts?: Object): void; + assertTypeAlias(opts?: Object): void; + assertTypeAnnotation(opts?: Object): void; + assertTypeCastExpression(opts?: Object): void; + assertTypeParameterDeclaration(opts?: Object): void; + assertTypeParameterInstantiation(opts?: Object): void; + assertObjectTypeAnnotation(opts?: Object): void; + assertObjectTypeCallProperty(opts?: Object): void; + assertObjectTypeIndexer(opts?: Object): void; + assertObjectTypeProperty(opts?: Object): void; + assertQualifiedTypeIdentifier(opts?: Object): void; + assertUnionTypeAnnotation(opts?: Object): void; + assertVoidTypeAnnotation(opts?: Object): void; + assertJSXAttribute(opts?: Object): void; + assertJSXClosingElement(opts?: Object): void; + assertJSXElement(opts?: Object): void; + assertJSXEmptyExpression(opts?: Object): void; + assertJSXExpressionContainer(opts?: Object): void; + assertJSXIdentifier(opts?: Object): void; + assertJSXMemberExpression(opts?: Object): void; + assertJSXNamespacedName(opts?: Object): void; + assertJSXOpeningElement(opts?: Object): void; + assertJSXSpreadAttribute(opts?: Object): void; + assertJSXText(opts?: Object): void; + assertNoop(opts?: Object): void; + assertParenthesizedExpression(opts?: Object): void; + assertAwaitExpression(opts?: Object): void; + assertBindExpression(opts?: Object): void; + assertDecorator(opts?: Object): void; + assertDoExpression(opts?: Object): void; + assertExportDefaultSpecifier(opts?: Object): void; + assertExportNamespaceSpecifier(opts?: Object): void; + assertRestProperty(opts?: Object): void; + assertSpreadProperty(opts?: Object): void; + assertExpression(opts?: Object): void; + assertBinary(opts?: Object): void; + assertScopable(opts?: Object): void; + assertBlockParent(opts?: Object): void; + assertBlock(opts?: Object): void; + assertStatement(opts?: Object): void; + assertTerminatorless(opts?: Object): void; + assertCompletionStatement(opts?: Object): void; + assertConditional(opts?: Object): void; + assertLoop(opts?: Object): void; + assertWhile(opts?: Object): void; + assertExpressionWrapper(opts?: Object): void; + assertFor(opts?: Object): void; + assertForXStatement(opts?: Object): void; + assertFunction(opts?: Object): void; + assertFunctionParent(opts?: Object): void; + assertPureish(opts?: Object): void; + assertDeclaration(opts?: Object): void; + assertLVal(opts?: Object): void; + assertLiteral(opts?: Object): void; + assertImmutable(opts?: Object): void; + assertUserWhitespacable(opts?: Object): void; + assertMethod(opts?: Object): void; + assertObjectMember(opts?: Object): void; + assertProperty(opts?: Object): void; + assertUnaryLike(opts?: Object): void; + assertPattern(opts?: Object): void; + assertClass(opts?: Object): void; + assertModuleDeclaration(opts?: Object): void; + assertExportDeclaration(opts?: Object): void; + assertModuleSpecifier(opts?: Object): void; + assertFlow(opts?: Object): void; + assertFlowBaseAnnotation(opts?: Object): void; + assertFlowDeclaration(opts?: Object): void; + assertJSX(opts?: Object): void; + assertNumberLiteral(opts?: Object): void; + assertRegexLiteral(opts?: Object): void; + } + + export class Hub { + constructor(file: any, options: any); + file: any; + options: any; + } + + interface TraversalContext { + parentPath: NodePath; + scope: Scope; + state: any; + opts: any; + } +} diff --git a/babel-traverse/tsconfig.json b/babel-traverse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babel-traverse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babel-types/babel-types-tests.ts b/babel-types/babel-types-tests.ts new file mode 100644 index 0000000000..2a8a25a961 --- /dev/null +++ b/babel-types/babel-types-tests.ts @@ -0,0 +1,26 @@ +/// +/// + + +// Examples from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-types +import traverse from "babel-traverse"; +import * as t from "babel-types"; + +let ast: t.Node; + +traverse(ast, { + enter(path) { + let node = path.node; + if (t.isIdentifier(node, { name: "n" })) { + node.name = "x"; + } + } +}); + +if (t.isBinaryExpression(ast)) { + ast.left; + ast.right; + ast.operator; +} +t.assertBinaryExpression(ast); +t.assertBinaryExpression(ast, { operator: "*" }); diff --git a/babel-types/babel-types.d.ts b/babel-types/babel-types.d.ts new file mode 100644 index 0000000000..d10302370a --- /dev/null +++ b/babel-types/babel-types.d.ts @@ -0,0 +1,1403 @@ +// Type definitions for babel-types v6.7 +// Project: https://github.com/babel/babel/tree/master/packages/babel-types +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "babel-types" { + + export interface Comment { + value: string; + start: number; + end: number; + loc: SourceLocation; + } + + export interface CommentBlock extends Comment { + type: "CommentBlock"; + } + + export interface CommentLine extends Comment { + type: "CommentLine"; + } + + export interface SourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; + } + + export interface Node { + type: string; + leadingComments?: Array; + innerComments?: Array; + trailingComments?: Array; + start: number; + end: number; + loc: SourceLocation; + } + + export interface ArrayExpression extends Node { + type: "ArrayExpression"; + elements: Array; + } + + export interface AssignmentExpression extends Node { + type: "AssignmentExpression"; + operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&="; + left: LVal; + right: Expression; + } + + export interface BinaryExpression extends Node { + type: "BinaryExpression"; + operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<="; + left: Expression; + right: Expression; + } + + export interface Directive extends Node { + type: "Directive"; + value: DirectiveLiteral; + } + + export interface DirectiveLiteral extends Node { + type: "DirectiveLiteral"; + value: string; + } + + export interface BlockStatement extends Node { + type: "BlockStatement"; + directives?: Directive[]; + body: Statement[]; + } + + export interface BreakStatement extends Node { + type: "BreakStatement"; + label: Identifier; + } + + export interface CallExpression extends Node { + type: "CallExpression"; + callee: Expression | Super; + arguments: Array; + } + + export interface CatchClause extends Node { + type: "CatchClause"; + param: Pattern; + body: BlockStatement; + } + + export interface ConditionalExpression extends Node { + type: "ConditionalExpression"; + test: Expression; + consequent: Expression; + alternate: Expression; + } + + export interface ContinueStatement extends Node { + type: "ContinueStatement"; + label: Identifier; + } + + export interface DebuggerStatement extends Node { + type: "DebuggerStatement"; + } + + export interface DoWhileStatement extends Node { + type: "DoWhileStatement"; + test: Expression; + body: Statement; + } + + export interface EmptyStatement extends Node { + type: "EmptyStatement"; + } + + export interface ExpressionStatement extends Node { + type: "ExpressionStatement"; + expression: Expression; + } + + export interface File extends Node { + type: "File"; + program: Program; + comments: Comment[]; + tokens: any[]; + } + + export interface ForInStatement extends Node { + type: "ForInStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; + } + + export interface ForStatement extends Node { + type: "ForStatement"; + init: VariableDeclaration | Expression; + test: Expression; + update: Expression; + body: Statement; + } + + export interface FunctionDeclaration extends Node { + type: "FunctionDeclaration"; + id: Identifier; + params: Pattern[]; + body: BlockStatement; + generator: boolean; + async: boolean; + returnType?: TypeAnnotation; + typeParameters?: TypeParameterDeclaration; + } + + export interface FunctionExpression extends Node { + type: "FunctionExpression"; + id: Identifier; + params: Pattern[]; + body: BlockStatement; + generator: boolean; + async: boolean; + returnType?: TypeAnnotation; + typeParameters?: TypeParameterDeclaration; + } + + export interface Identifier extends Node { + type: "Identifier"; + name: string; + typeAnnotation?: TypeAnnotation; + } + + export interface IfStatement extends Node { + type: "IfStatement"; + test: Expression; + consequent: Statement; + alternate: Statement; + } + + export interface LabeledStatement extends Node { + type: "LabeledStatement"; + label: Identifier; + body: Statement; + } + + export interface StringLiteral extends Node { + type: "StringLiteral"; + value: string; + } + + export interface NumericLiteral extends Node { + type: "NumericLiteral"; + value: number; + } + + export interface NullLiteral extends Node { + type: "NullLiteral"; + } + + export interface BooleanLiteral extends Node { + type: "BooleanLiteral"; + value: boolean; + } + + export interface RegExpLiteral extends Node { + type: "RegExpLiteral"; + pattern: string; + flags?: string; + } + + export interface LogicalExpression extends Node { + type: "LogicalExpression"; + operator: "||" | "&&"; + left: Expression; + right: Expression; + } + + export interface MemberExpression extends Node { + type: "MemberExpression"; + object: Expression | Super; + property: Expression; + computed: boolean; + } + + export interface NewExpression extends Node { + type: "NewExpression"; + callee: Expression | Super; + arguments: Array; + } + + export interface Program extends Node { + type: "Program"; + sourceType: "script" | "module"; + directives?: Directive[]; + body: Array; + } + + export interface ObjectExpression extends Node { + type: "ObjectExpression"; + properties: Array; + } + + export interface ObjectMethod extends Node { + type: "ObjectMethod"; + key: Expression; + kind: "get" | "set" | "method"; + shorthand: boolean; + computed: boolean; + value: Expression; + decorators?: Decorator[]; + id: Identifier; + params: Pattern[]; + body: BlockStatement; + generator: boolean; + async: boolean; + returnType?: TypeAnnotation; + typeParameters?: TypeParameterDeclaration; + } + + export interface ObjectProperty extends Node { + type: "ObjectProperty"; + key: Expression; + computed: boolean; + value: Expression; + decorators?: Decorator[]; + shorthand: boolean; + } + + export interface RestElement extends Node { + type: "RestElement"; + argument: LVal; + typeAnnotation?: TypeAnnotation; + } + + export interface ReturnStatement extends Node { + type: "ReturnStatement"; + argument: Expression; + } + + export interface SequenceExpression extends Node { + type: "SequenceExpression"; + expressions: Expression[]; + } + + export interface SwitchCase extends Node { + type: "SwitchCase"; + test: Expression; + consequent: Statement[]; + } + + export interface SwitchStatement extends Node { + type: "SwitchStatement"; + discriminant: Expression; + cases: SwitchCase[]; + } + + export interface ThisExpression extends Node { + type: "ThisExpression"; + } + + export interface ThrowStatement extends Node { + type: "ThrowStatement"; + argument: Expression; + } + + export interface TryStatement extends Node { + type: "TryStatement"; + block: BlockStatement; + handler: CatchClause; + finalizer: BlockStatement; + } + + export interface UnaryExpression extends Node { + type: "UnaryExpression"; + operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; + prefix: boolean; + argument: Expression; + } + + export interface UpdateExpression extends Node { + type: "UpdateExpression"; + operator: "++" | "--"; + prefix: boolean; + argument: Expression; + } + + export interface VariableDeclaration extends Node { + type: "VariableDeclaration"; + declarations: VariableDeclarator[]; + kind: "var" | "let" | "const"; + } + + export interface VariableDeclarator extends Node { + type: "VariableDeclarator"; + id: LVal; + init: Expression; + } + + export interface WhileStatement extends Node { + type: "WhileStatement"; + test: Expression; + body: Statement; + } + + export interface WithStatement extends Node { + type: "WithStatement"; + object: Expression; + body: BlockStatement | Statement; + } + + export interface AssignmentPattern extends Node { + type: "AssignmentPattern"; + left: Pattern; + right: Expression; + } + + export interface ArrayPattern extends Node { + type: "ArrayPattern"; + elements: Array; + typeAnnotation?: TypeAnnotation; + } + + export interface ArrowFunctionExpression extends Node { + type: "ArrowFunctionExpression"; + id: Identifier; + params: Pattern[]; + body: BlockStatement | Expression; + generator: boolean; + async: boolean; + expression: boolean; + returnType?: TypeAnnotation; + typeParameters?: TypeParameterDeclaration; + } + + export interface ClassBody extends Node { + type: "ClassBody"; + body: Array; + } + + export interface ClassDeclaration extends Node { + type: "ClassDeclaration"; + id: Identifier; + superClass: Expression; + body: ClassBody; + decorators?: Decorator[]; + implements?: ClassImplements[]; + mixins?: any[]; + typeParameters?: TypeParameterDeclaration; + superTypeParameters?: TypeParameterInstantiation; + } + + export interface ClassExpression extends Node { + type: "ClassExpression"; + id: Identifier; + superClass: Expression; + body: ClassBody; + decorators?: Decorator[]; + implements?: ClassImplements[]; + mixins?: any[]; + typeParameters?: TypeParameterDeclaration; + superTypeParameters?: TypeParameterInstantiation; + } + + export interface ExportAllDeclaration extends Node { + type: "ExportAllDeclaration"; + source: StringLiteral; + } + + export interface ExportDefaultDeclaration extends Node { + type: "ExportDefaultDeclaration"; + declaration: Declaration | Expression; + } + + export interface ExportNamedDeclaration extends Node { + type: "ExportNamedDeclaration"; + declaration: Declaration; + specifiers: ExportSpecifier[]; + source: StringLiteral; + } + + export interface ExportSpecifier extends Node { + type: "ExportSpecifier"; + local: Identifier; + imported: Identifier; + exported: Identifier; + } + + export interface ForOfStatement extends Node { + type: "ForOfStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; + } + + export interface ImportDeclaration extends Node { + type: "ImportDeclaration"; + specifiers: Array; + source: StringLiteral; + } + + export interface ImportDefaultSpecifier extends Node { + type: "ImportDefaultSpecifier"; + local: Identifier; + } + + export interface ImportNamespaceSpecifier extends Node { + type: "ImportNamespaceSpecifier"; + local: Identifier; + } + + export interface ImportSpecifier extends Node { + type: "ImportSpecifier"; + local: Identifier; + imported: Identifier; + } + + export interface MetaProperty extends Node { + type: "MetaProperty"; + meta: Identifier; + property: Identifier; + } + + export interface ClassMethod extends Node { + type: "ClassMethod"; + key: Expression; + value?: FunctionExpression; + kind: "constructor" | "method" | "get" | "set"; + computed: boolean; + static: boolean; + decorators?: Decorator[]; + id: Identifier; + params: Pattern[]; + body: BlockStatement; + generator: boolean; + async: boolean; + expression: boolean; + returnType?: TypeAnnotation; + typeParameters?: TypeParameterDeclaration; + } + + // See: https://github.com/babel/babel/blob/master/doc/ast/spec.md#objectpattern + export interface AssignmentProperty extends Node { + type: "ObjectProperty"; + key: Expression; + computed: boolean; + value: Pattern; + decorators?: Decorator[]; + shorthand: boolean; + } + + export interface ObjectPattern extends Node { + type: "ObjectPattern"; + properties: Array; + typeAnnotation?: TypeAnnotation; + } + + export interface SpreadElement extends Node { + type: "SpreadElement"; + argument: Expression; + } + + export interface Super extends Node { + type: "Super"; + } + + export interface TaggedTemplateExpression extends Node { + type: "TaggedTemplateExpression"; + tag: Expression; + quasi: TemplateLiteral; + } + + export interface TemplateElement extends Node { + type: "TemplateElement"; + tail: boolean; + value: { + cooked: string; + raw: string; + }; + } + + export interface TemplateLiteral extends Node { + type: "TemplateLiteral"; + quasis: TemplateElement[]; + expressions: Expression[]; + } + + export interface YieldExpression extends Node { + type: "YieldExpression"; + argument: Expression; + delegate: boolean; + } + + export interface AnyTypeAnnotation extends Node { + type: "AnyTypeAnnotation"; + } + + export interface ArrayTypeAnnotation extends Node { + type: "ArrayTypeAnnotation"; + elementType: FlowTypeAnnotation; + } + + export interface BooleanTypeAnnotation extends Node { + type: "BooleanTypeAnnotation"; + } + + export interface BooleanLiteralTypeAnnotation extends Node { + type: "BooleanLiteralTypeAnnotation"; + } + + export interface NullLiteralTypeAnnotation extends Node { + type: "NullLiteralTypeAnnotation"; + } + + export interface ClassImplements extends Node { + type: "ClassImplements"; + id: Identifier; + typeParameters: TypeParameterInstantiation; + } + + export interface ClassProperty extends Node { + type: "ClassProperty"; + key: Identifier; + value: Expression; + decorators?: Decorator[]; + typeAnnotation?: TypeAnnotation; + } + + export interface DeclareClass extends Node { + type: "DeclareClass"; + id: Identifier; + typeParameters: TypeParameterDeclaration; + extends: InterfaceExtends[]; + body: ObjectTypeAnnotation; + } + + export interface DeclareFunction extends Node { + type: "DeclareFunction"; + id: Identifier; + } + + export interface DeclareInterface extends Node { + type: "DeclareInterface"; + id: Identifier; + typeParameters: TypeParameterDeclaration; + extends: InterfaceExtends[]; + body: ObjectTypeAnnotation; + } + + export interface DeclareModule extends Node { + type: "DeclareModule"; + id: StringLiteral | Identifier; + body: BlockStatement; + } + + export interface DeclareTypeAlias extends Node { + type: "DeclareTypeAlias"; + id: Identifier; + typeParameters: TypeParameterDeclaration; + right: FlowTypeAnnotation; + } + + export interface DeclareVariable extends Node { + type: "DeclareVariable"; + id: Identifier; + } + + export interface ExistentialTypeParam extends Node { + type: "ExistentialTypeParam"; + } + + export interface FunctionTypeAnnotation extends Node { + type: "FunctionTypeAnnotation"; + typeParameters: TypeParameterDeclaration; + params: FunctionTypeParam[]; + rest: FunctionTypeParam; + returnType: FlowTypeAnnotation; + } + + export interface FunctionTypeParam extends Node { + type: "FunctionTypeParam"; + name: Identifier; + typeAnnotation: FlowTypeAnnotation; + } + + export interface GenericTypeAnnotation extends Node { + type: "GenericTypeAnnotation"; + id: Identifier; + typeParameters: TypeParameterInstantiation; + } + + export interface InterfaceExtends extends Node { + type: "InterfaceExtends"; + id: Identifier; + typeParameters: TypeParameterInstantiation; + } + + export interface InterfaceDeclaration extends Node { + type: "InterfaceDeclaration"; + id: Identifier; + typeParameters: TypeParameterDeclaration; + extends: InterfaceExtends[]; + mixins?: any[]; + body: ObjectTypeAnnotation; + } + + export interface IntersectionTypeAnnotation extends Node { + type: "IntersectionTypeAnnotation"; + types: FlowTypeAnnotation[]; + } + + export interface MixedTypeAnnotation extends Node { + type: "MixedTypeAnnotation"; + } + + export interface NullableTypeAnnotation extends Node { + type: "NullableTypeAnnotation"; + typeAnnotation: FlowTypeAnnotation; + } + + export interface NumericLiteralTypeAnnotation extends Node { + type: "NumericLiteralTypeAnnotation"; + } + + export interface NumberTypeAnnotation extends Node { + type: "NumberTypeAnnotation"; + } + + export interface StringLiteralTypeAnnotation extends Node { + type: "StringLiteralTypeAnnotation"; + } + + export interface StringTypeAnnotation extends Node { + type: "StringTypeAnnotation"; + } + + export interface ThisTypeAnnotation extends Node { + type: "ThisTypeAnnotation"; + } + + export interface TupleTypeAnnotation extends Node { + type: "TupleTypeAnnotation"; + types: FlowTypeAnnotation[]; + } + + export interface TypeofTypeAnnotation extends Node { + type: "TypeofTypeAnnotation"; + argument: FlowTypeAnnotation; + } + + export interface TypeAlias extends Node { + type: "TypeAlias"; + id: Identifier; + typeParameters: TypeParameterDeclaration; + right: FlowTypeAnnotation; + } + + export interface TypeAnnotation extends Node { + type: "TypeAnnotation"; + typeAnnotation: FlowTypeAnnotation; + } + + export interface TypeCastExpression extends Node { + type: "TypeCastExpression"; + expression: Expression; + typeAnnotation: FlowTypeAnnotation; + } + + export interface TypeParameterDeclaration extends Node { + type: "TypeParameterDeclaration"; + params: Identifier[]; + } + + export interface TypeParameterInstantiation extends Node { + type: "TypeParameterInstantiation"; + params: FlowTypeAnnotation[]; + } + + export interface ObjectTypeAnnotation extends Node { + type: "ObjectTypeAnnotation"; + properties: ObjectTypeProperty[]; + indexers: ObjectTypeIndexer[]; + callProperties: ObjectTypeCallProperty[]; + } + + export interface ObjectTypeCallProperty extends Node { + type: "ObjectTypeCallProperty"; + value: FlowTypeAnnotation; + } + + export interface ObjectTypeIndexer extends Node { + type: "ObjectTypeIndexer"; + id: Expression; + key: FlowTypeAnnotation; + value: FlowTypeAnnotation; + } + + export interface ObjectTypeProperty extends Node { + type: "ObjectTypeProperty"; + key: Expression; + value: FlowTypeAnnotation; + } + + export interface QualifiedTypeIdentifier extends Node { + type: "QualifiedTypeIdentifier"; + id: Identifier; + qualification: Identifier | QualifiedTypeIdentifier; + } + + export interface UnionTypeAnnotation extends Node { + type: "UnionTypeAnnotation"; + types: FlowTypeAnnotation[]; + } + + export interface VoidTypeAnnotation extends Node { + type: "VoidTypeAnnotation"; + } + + export interface JSXAttribute extends Node { + type: "JSXAttribute"; + name: JSXIdentifier | JSXNamespacedName; + value: JSXElement | StringLiteral | JSXExpressionContainer; + } + + export interface JSXClosingElement extends Node { + type: "JSXClosingElement"; + name: JSXIdentifier | JSXMemberExpression; + } + + export interface JSXElement extends Node { + type: "JSXElement"; + openingElement: JSXOpeningElement; + closingElement: JSXClosingElement; + children: Array; + selfClosing?: boolean; + } + + export interface JSXEmptyExpression extends Node { + type: "JSXEmptyExpression"; + } + + export interface JSXExpressionContainer extends Node { + type: "JSXExpressionContainer"; + expression: Expression; + } + + export interface JSXIdentifier extends Node { + type: "JSXIdentifier"; + name: string; + } + + export interface JSXMemberExpression extends Node { + type: "JSXMemberExpression"; + object: JSXMemberExpression | JSXIdentifier; + property: JSXIdentifier; + } + + export interface JSXNamespacedName extends Node { + type: "JSXNamespacedName"; + namespace: JSXIdentifier; + name: JSXIdentifier; + } + + export interface JSXOpeningElement extends Node { + type: "JSXOpeningElement"; + name: JSXIdentifier | JSXMemberExpression; + selfClosing: boolean; + attributes: JSXAttribute[]; + } + + export interface JSXSpreadAttribute extends Node { + type: "JSXSpreadAttribute"; + argument: Expression; + } + + export interface JSXText extends Node { + type: "JSXText"; + value: string; + } + + export interface Noop extends Node { + type: "Noop"; + } + + export interface ParenthesizedExpression extends Node { + type: "ParenthesizedExpression"; + expression: Expression; + } + + export interface AwaitExpression extends Node { + type: "AwaitExpression"; + argument: Expression; + } + + export interface BindExpression extends Node { + type: "BindExpression"; + object: Expression; + callee: Expression; + } + + export interface Decorator extends Node { + type: "Decorator"; + expression: Expression; + } + + export interface DoExpression extends Node { + type: "DoExpression"; + body: BlockStatement; + } + + export interface ExportDefaultSpecifier extends Node { + type: "ExportDefaultSpecifier"; + exported: Identifier; + } + + export interface ExportNamespaceSpecifier extends Node { + type: "ExportNamespaceSpecifier"; + exported: Identifier; + } + + export interface RestProperty extends Node { + type: "RestProperty"; + argument: LVal; + } + + export interface SpreadProperty extends Node { + type: "SpreadProperty"; + argument: Expression; + } + + export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | TypeCastExpression | JSXElement | JSXEmptyExpression | JSXIdentifier | JSXMemberExpression | ParenthesizedExpression | AwaitExpression | BindExpression | DoExpression; + export type Binary = BinaryExpression | LogicalExpression; + export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassDeclaration | ClassExpression | ForOfStatement | ClassMethod; + export type BlockParent = BlockStatement | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod; + export type Block = BlockStatement | Program; + export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias; + export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression; + export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement; + export type Conditional = ConditionalExpression | IfStatement; + export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement; + export type While = DoWhileStatement | WhileStatement; + export type ExpressionWrapper = ExpressionStatement | TypeCastExpression | ParenthesizedExpression; + export type For = ForInStatement | ForStatement | ForOfStatement; + export type ForXStatement = ForInStatement | ForOfStatement; + export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod; + export type FunctionParent = FunctionDeclaration | FunctionExpression | Program | ObjectMethod | ArrowFunctionExpression | ClassMethod; + export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | BooleanLiteral | ArrowFunctionExpression | ClassDeclaration | ClassExpression; + export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias; + export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern; + export type Literal = StringLiteral | NumericLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral; + export type Immutable = StringLiteral | NumericLiteral | BooleanLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXOpeningElement; + export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty; + export type Method = ObjectMethod | ClassMethod; + export type ObjectMember = ObjectMethod | ObjectProperty; + export type Property = ObjectProperty | ClassProperty; + export type UnaryLike = UnaryExpression | SpreadElement | RestProperty | SpreadProperty; + export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern; + export type Class = ClassDeclaration | ClassExpression; + export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration; + export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration; + export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier; + export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | ClassImplements | ClassProperty | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | ExistentialTypeParam | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InterfaceExtends | InterfaceDeclaration | IntersectionTypeAnnotation | MixedTypeAnnotation | NullableTypeAnnotation | NumericLiteralTypeAnnotation | NumberTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameterDeclaration | TypeParameterInstantiation | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | QualifiedTypeIdentifier | UnionTypeAnnotation | VoidTypeAnnotation; + export type FlowTypeAnnotation = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | NullableTypeAnnotation | NumericLiteralTypeAnnotation | NumberTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAnnotation | ObjectTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation; + export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | MixedTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation; + export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias; + export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText; + + export function arrayExpression(elements?: Array): ArrayExpression; + export function assignmentExpression(operator?: string, left?: LVal, right?: Expression): AssignmentExpression; + export function binaryExpression(operator?: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left?: Expression, right?: Expression): BinaryExpression; + export function directive(value?: DirectiveLiteral): Directive; + export function directiveLiteral(value?: string): DirectiveLiteral; + export function blockStatement(body?: Statement[], directives?: Directive[]): BlockStatement; + export function breakStatement(label?: Identifier): BreakStatement; + export function callExpression(callee?: Expression, _arguments?: Array): CallExpression; + export function catchClause(param?: Identifier, body?: BlockStatement): CatchClause; + export function conditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression; + export function continueStatement(label?: Identifier): ContinueStatement; + export function debuggerStatement(): DebuggerStatement; + export function doWhileStatement(test?: Expression, body?: Statement): DoWhileStatement; + export function emptyStatement(): EmptyStatement; + export function expressionStatement(expression?: Expression): ExpressionStatement; + export function file(program?: Program, comments?: Comment[], tokens?: any[]): File; + export function forInStatement(left?: VariableDeclaration | LVal, right?: Expression, body?: Statement): ForInStatement; + export function forStatement(init?: VariableDeclaration | Expression, test?: Expression, update?: Expression, body?: Statement): ForStatement; + export function functionDeclaration(id?: Identifier, params?: Pattern[], body?: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration; + export function functionExpression(id?: Identifier, params?: Pattern[], body?: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression; + export function identifier(name?: string): Identifier; + export function ifStatement(test?: Expression, consequent?: Statement, alternate?: Statement): IfStatement; + export function labeledStatement(label?: Identifier, body?: Statement): LabeledStatement; + export function stringLiteral(value?: string): StringLiteral; + export function numericLiteral(value?: number): NumericLiteral; + export function nullLiteral(): NullLiteral; + export function booleanLiteral(value?: boolean): BooleanLiteral; + export function regExpLiteral(pattern?: string, flags?: string): RegExpLiteral; + export function logicalExpression(operator?: "||" | "&&", left?: Expression, right?: Expression): LogicalExpression; + export function memberExpression(object?: Expression | Super, property?: Expression, computed?: boolean): MemberExpression; + export function newExpression(callee?: Expression | Super, _arguments?: Array): NewExpression; + export function program(body?: Array, directives?: Directive[]): Program; + export function objectExpression(properties?: Array): ObjectExpression; + export function objectMethod(kind?: "get" | "set" | "method", key?: Expression, params?: Pattern[], body?: BlockStatement, computed?: boolean): ObjectMethod; + export function objectProperty(key?: Expression, value?: Expression, computed?: boolean, shorthand?: boolean, decorators?: Decorator[]): ObjectProperty; + export function restElement(argument?: LVal, typeAnnotation?: TypeAnnotation): RestElement; + export function returnStatement(argument?: Expression): ReturnStatement; + export function sequenceExpression(expressions?: Expression[]): SequenceExpression; + export function switchCase(test?: Expression, consequent?: Statement[]): SwitchCase; + export function switchStatement(discriminant?: Expression, cases?: SwitchCase[]): SwitchStatement; + export function thisExpression(): ThisExpression; + export function throwStatement(argument?: Expression): ThrowStatement; + export function tryStatement(block?: BlockStatement, handler?: CatchClause, finalizer?: BlockStatement): TryStatement; + export function unaryExpression(operator?: "void" | "delete" | "!" | "+" | "-" | "++" | "--" | "~" | "typeof", argument?: Expression, prefix?: boolean): UnaryExpression; + export function updateExpression(operator?: "++" | "--", argument?: Expression, prefix?: boolean): UpdateExpression; + export function variableDeclaration(kind?: "var" | "let" | "const", declarations?: VariableDeclarator[]): VariableDeclaration; + export function variableDeclarator(id?: LVal, init?: Expression): VariableDeclarator; + export function whileStatement(test?: Expression, body?: BlockStatement | Statement): WhileStatement; + export function withStatement(object?: Expression, body?: BlockStatement | Statement): WithStatement; + export function assignmentPattern(left?: Identifier, right?: Expression): AssignmentPattern; + export function arrayPattern(elements?: Array, typeAnnotation?: TypeAnnotation): ArrayPattern; + export function arrowFunctionExpression(params?: Pattern[], body?: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression; + export function classBody(body?: Array): ClassBody; + export function classDeclaration(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassDeclaration; + export function classExpression(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassExpression; + export function exportAllDeclaration(source?: StringLiteral): ExportAllDeclaration; + export function exportDefaultDeclaration(declaration?: FunctionDeclaration | ClassDeclaration | Expression): ExportDefaultDeclaration; + export function exportNamedDeclaration(declaration?: Declaration, specifiers?: ExportSpecifier[], source?: StringLiteral): ExportNamedDeclaration; + export function exportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier; + export function forOfStatement(left?: VariableDeclaration | LVal, right?: Expression, body?: Statement): ForOfStatement; + export function importDeclaration(specifiers?: Array, source?: StringLiteral): ImportDeclaration; + export function importDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier; + export function importNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier; + export function importSpecifier(local?: Identifier, imported?: Identifier): ImportSpecifier; + export function metaProperty(meta?: string, property?: string): MetaProperty; + export function classMethod(kind?: "constructor" | "method" | "get" | "set", key?: Expression, params?: Pattern[], body?: BlockStatement, computed?: boolean, _static?: boolean): ClassMethod; + export function objectPattern(properties?: Array, typeAnnotation?: TypeAnnotation): ObjectPattern; + export function spreadElement(argument?: Expression): SpreadElement; + export function taggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral): TaggedTemplateExpression; + export function templateElement(value?: {cooked?: string; raw?: string;}, tail?: boolean): TemplateElement; + export function templateLiteral(quasis?: TemplateElement[], expressions?: Expression[]): TemplateLiteral; + export function yieldExpression(argument?: Expression, delegate?: boolean): YieldExpression; + export function anyTypeAnnotation(): AnyTypeAnnotation; + export function arrayTypeAnnotation(elementType?: FlowTypeAnnotation): ArrayTypeAnnotation; + export function booleanTypeAnnotation(): BooleanTypeAnnotation; + export function booleanLiteralTypeAnnotation(): BooleanLiteralTypeAnnotation; + export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation; + export function classImplements(id?: Identifier, typeParameters?: TypeParameterInstantiation): ClassImplements; + export function classProperty(key?: Identifier, value?: Expression, typeAnnotation?: TypeAnnotation, decorators?: Decorator[]): ClassProperty; + export function declareClass(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): DeclareClass; + export function declareFunction(id?: Identifier): DeclareFunction; + export function declareInterface(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): DeclareInterface; + export function declareModule(id?: StringLiteral | Identifier, body?: BlockStatement): DeclareModule; + export function declareTypeAlias(id?: Identifier, typeParameters?: TypeParameterDeclaration, right?: FlowTypeAnnotation): DeclareTypeAlias; + export function declareVariable(id?: Identifier): DeclareVariable; + export function existentialTypeParam(): ExistentialTypeParam; + export function functionTypeAnnotation(typeParameters?: TypeParameterDeclaration, params?: FunctionTypeParam[], rest?: FunctionTypeParam, returnType?: FlowTypeAnnotation): FunctionTypeAnnotation; + export function functionTypeParam(name?: Identifier, typeAnnotation?: FlowTypeAnnotation): FunctionTypeParam; + export function genericTypeAnnotation(id?: Identifier, typeParameters?: TypeParameterInstantiation): GenericTypeAnnotation; + export function interfaceExtends(id?: Identifier, typeParameters?: TypeParameterInstantiation): InterfaceExtends; + export function interfaceDeclaration(id?: Identifier, typeParameters?: TypeParameterDeclaration, _extends?: InterfaceExtends[], body?: ObjectTypeAnnotation): InterfaceDeclaration; + export function intersectionTypeAnnotation(types?: FlowTypeAnnotation[]): IntersectionTypeAnnotation; + export function mixedTypeAnnotation(): MixedTypeAnnotation; + export function nullableTypeAnnotation(typeAnnotation?: FlowTypeAnnotation): NullableTypeAnnotation; + export function numericLiteralTypeAnnotation(): NumericLiteralTypeAnnotation; + export function numberTypeAnnotation(): NumberTypeAnnotation; + export function stringLiteralTypeAnnotation(): StringLiteralTypeAnnotation; + export function stringTypeAnnotation(): StringTypeAnnotation; + export function thisTypeAnnotation(): ThisTypeAnnotation; + export function tupleTypeAnnotation(types?: FlowTypeAnnotation[]): TupleTypeAnnotation; + export function typeofTypeAnnotation(argument?: FlowTypeAnnotation): TypeofTypeAnnotation; + export function typeAlias(id?: Identifier, typeParameters?: TypeParameterDeclaration, right?: FlowTypeAnnotation): TypeAlias; + export function typeAnnotation(typeAnnotation?: FlowTypeAnnotation): TypeAnnotation; + export function typeCastExpression(expression?: Expression, typeAnnotation?: FlowTypeAnnotation): TypeCastExpression; + export function typeParameterDeclaration(params?: Identifier[]): TypeParameterDeclaration; + export function typeParameterInstantiation(params?: FlowTypeAnnotation[]): TypeParameterInstantiation; + export function objectTypeAnnotation(properties?: ObjectTypeProperty[], indexers?: ObjectTypeIndexer[], callProperties?: ObjectTypeCallProperty[]): ObjectTypeAnnotation; + export function objectTypeCallProperty(value?: FlowTypeAnnotation): ObjectTypeCallProperty; + export function objectTypeIndexer(id?: Expression, key?: FlowTypeAnnotation, value?: FlowTypeAnnotation): ObjectTypeIndexer; + export function objectTypeProperty(key?: Expression, value?: FlowTypeAnnotation): ObjectTypeProperty; + export function qualifiedTypeIdentifier(id?: Identifier, qualification?: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier; + export function unionTypeAnnotation(types?: FlowTypeAnnotation[]): UnionTypeAnnotation; + export function voidTypeAnnotation(): VoidTypeAnnotation; + export function jSXAttribute(name?: JSXIdentifier | JSXNamespacedName, value?: JSXElement | StringLiteral | JSXExpressionContainer): JSXAttribute; + export function jSXClosingElement(name?: JSXIdentifier | JSXMemberExpression): JSXClosingElement; + export function jSXElement(openingElement?: JSXOpeningElement, closingElement?: JSXClosingElement, children?: Array, selfClosing?: boolean): JSXElement; + export function jSXEmptyExpression(): JSXEmptyExpression; + export function jSXExpressionContainer(expression?: Expression): JSXExpressionContainer; + export function jSXIdentifier(name?: string): JSXIdentifier; + export function jSXMemberExpression(object?: JSXMemberExpression | JSXIdentifier, property?: JSXIdentifier): JSXMemberExpression; + export function jSXNamespacedName(namespace?: JSXIdentifier, name?: JSXIdentifier): JSXNamespacedName; + export function jSXOpeningElement(name?: JSXIdentifier | JSXMemberExpression, attributes?: JSXAttribute[], selfClosing?: boolean): JSXOpeningElement; + export function jSXSpreadAttribute(argument?: Expression): JSXSpreadAttribute; + export function jSXText(value?: string): JSXText; + export function noop(): Noop; + export function parenthesizedExpression(expression?: Expression): ParenthesizedExpression; + export function awaitExpression(argument?: Expression): AwaitExpression; + export function bindExpression(object?: Expression, callee?: Expression): BindExpression; + export function decorator(expression?: Expression): Decorator; + export function doExpression(body?: BlockStatement): DoExpression; + export function exportDefaultSpecifier(exported?: Identifier): ExportDefaultSpecifier; + export function exportNamespaceSpecifier(exported?: Identifier): ExportNamespaceSpecifier; + export function restProperty(argument?: LVal): RestProperty; + export function spreadProperty(argument?: Expression): SpreadProperty; + + export function isArrayExpression(node: Object, opts?: Object): node is ArrayExpression; + export function isAssignmentExpression(node: Object, opts?: Object): node is AssignmentExpression; + export function isBinaryExpression(node: Object, opts?: Object): node is BinaryExpression; + export function isDirective(node: Object, opts?: Object): node is Directive; + export function isDirectiveLiteral(node: Object, opts?: Object): node is DirectiveLiteral; + export function isBlockStatement(node: Object, opts?: Object): node is BlockStatement; + export function isBreakStatement(node: Object, opts?: Object): node is BreakStatement; + export function isCallExpression(node: Object, opts?: Object): node is CallExpression; + export function isCatchClause(node: Object, opts?: Object): node is CatchClause; + export function isConditionalExpression(node: Object, opts?: Object): node is ConditionalExpression; + export function isContinueStatement(node: Object, opts?: Object): node is ContinueStatement; + export function isDebuggerStatement(node: Object, opts?: Object): node is DebuggerStatement; + export function isDoWhileStatement(node: Object, opts?: Object): node is DoWhileStatement; + export function isEmptyStatement(node: Object, opts?: Object): node is EmptyStatement; + export function isExpressionStatement(node: Object, opts?: Object): node is ExpressionStatement; + export function isFile(node: Object, opts?: Object): node is File; + export function isForInStatement(node: Object, opts?: Object): node is ForInStatement; + export function isForStatement(node: Object, opts?: Object): node is ForStatement; + export function isFunctionDeclaration(node: Object, opts?: Object): node is FunctionDeclaration; + export function isFunctionExpression(node: Object, opts?: Object): node is FunctionExpression; + export function isIdentifier(node: Object, opts?: Object): node is Identifier; + export function isIfStatement(node: Object, opts?: Object): node is IfStatement; + export function isLabeledStatement(node: Object, opts?: Object): node is LabeledStatement; + export function isStringLiteral(node: Object, opts?: Object): node is StringLiteral; + export function isNumericLiteral(node: Object, opts?: Object): node is NumericLiteral; + export function isNullLiteral(node: Object, opts?: Object): node is NullLiteral; + export function isBooleanLiteral(node: Object, opts?: Object): node is BooleanLiteral; + export function isRegExpLiteral(node: Object, opts?: Object): node is RegExpLiteral; + export function isLogicalExpression(node: Object, opts?: Object): node is LogicalExpression; + export function isMemberExpression(node: Object, opts?: Object): node is MemberExpression; + export function isNewExpression(node: Object, opts?: Object): node is NewExpression; + export function isProgram(node: Object, opts?: Object): node is Program; + export function isObjectExpression(node: Object, opts?: Object): node is ObjectExpression; + export function isObjectMethod(node: Object, opts?: Object): node is ObjectMethod; + export function isObjectProperty(node: Object, opts?: Object): node is ObjectProperty; + export function isRestElement(node: Object, opts?: Object): node is RestElement; + export function isReturnStatement(node: Object, opts?: Object): node is ReturnStatement; + export function isSequenceExpression(node: Object, opts?: Object): node is SequenceExpression; + export function isSwitchCase(node: Object, opts?: Object): node is SwitchCase; + export function isSwitchStatement(node: Object, opts?: Object): node is SwitchStatement; + export function isThisExpression(node: Object, opts?: Object): node is ThisExpression; + export function isThrowStatement(node: Object, opts?: Object): node is ThrowStatement; + export function isTryStatement(node: Object, opts?: Object): node is TryStatement; + export function isUnaryExpression(node: Object, opts?: Object): node is UnaryExpression; + export function isUpdateExpression(node: Object, opts?: Object): node is UpdateExpression; + export function isVariableDeclaration(node: Object, opts?: Object): node is VariableDeclaration; + export function isVariableDeclarator(node: Object, opts?: Object): node is VariableDeclarator; + export function isWhileStatement(node: Object, opts?: Object): node is WhileStatement; + export function isWithStatement(node: Object, opts?: Object): node is WithStatement; + export function isAssignmentPattern(node: Object, opts?: Object): node is AssignmentPattern; + export function isArrayPattern(node: Object, opts?: Object): node is ArrayPattern; + export function isArrowFunctionExpression(node: Object, opts?: Object): node is ArrowFunctionExpression; + export function isClassBody(node: Object, opts?: Object): node is ClassBody; + export function isClassDeclaration(node: Object, opts?: Object): node is ClassDeclaration; + export function isClassExpression(node: Object, opts?: Object): node is ClassExpression; + export function isExportAllDeclaration(node: Object, opts?: Object): node is ExportAllDeclaration; + export function isExportDefaultDeclaration(node: Object, opts?: Object): node is ExportDefaultDeclaration; + export function isExportNamedDeclaration(node: Object, opts?: Object): node is ExportNamedDeclaration; + export function isExportSpecifier(node: Object, opts?: Object): node is ExportSpecifier; + export function isForOfStatement(node: Object, opts?: Object): node is ForOfStatement; + export function isImportDeclaration(node: Object, opts?: Object): node is ImportDeclaration; + export function isImportDefaultSpecifier(node: Object, opts?: Object): node is ImportDefaultSpecifier; + export function isImportNamespaceSpecifier(node: Object, opts?: Object): node is ImportNamespaceSpecifier; + export function isImportSpecifier(node: Object, opts?: Object): node is ImportSpecifier; + export function isMetaProperty(node: Object, opts?: Object): node is MetaProperty; + export function isClassMethod(node: Object, opts?: Object): node is ClassMethod; + export function isObjectPattern(node: Object, opts?: Object): node is ObjectPattern; + export function isSpreadElement(node: Object, opts?: Object): node is SpreadElement; + export function isSuper(node: Object, opts?: Object): node is Super; + export function isTaggedTemplateExpression(node: Object, opts?: Object): node is TaggedTemplateExpression; + export function isTemplateElement(node: Object, opts?: Object): node is TemplateElement; + export function isTemplateLiteral(node: Object, opts?: Object): node is TemplateLiteral; + export function isYieldExpression(node: Object, opts?: Object): node is YieldExpression; + export function isAnyTypeAnnotation(node: Object, opts?: Object): node is AnyTypeAnnotation; + export function isArrayTypeAnnotation(node: Object, opts?: Object): node is ArrayTypeAnnotation; + export function isBooleanTypeAnnotation(node: Object, opts?: Object): node is BooleanTypeAnnotation; + export function isBooleanLiteralTypeAnnotation(node: Object, opts?: Object): node is BooleanLiteralTypeAnnotation; + export function isNullLiteralTypeAnnotation(node: Object, opts?: Object): node is NullLiteralTypeAnnotation; + export function isClassImplements(node: Object, opts?: Object): node is ClassImplements; + export function isClassProperty(node: Object, opts?: Object): node is ClassProperty; + export function isDeclareClass(node: Object, opts?: Object): node is DeclareClass; + export function isDeclareFunction(node: Object, opts?: Object): node is DeclareFunction; + export function isDeclareInterface(node: Object, opts?: Object): node is DeclareInterface; + export function isDeclareModule(node: Object, opts?: Object): node is DeclareModule; + export function isDeclareTypeAlias(node: Object, opts?: Object): node is DeclareTypeAlias; + export function isDeclareVariable(node: Object, opts?: Object): node is DeclareVariable; + export function isExistentialTypeParam(node: Object, opts?: Object): node is ExistentialTypeParam; + export function isFunctionTypeAnnotation(node: Object, opts?: Object): node is FunctionTypeAnnotation; + export function isFunctionTypeParam(node: Object, opts?: Object): node is FunctionTypeParam; + export function isGenericTypeAnnotation(node: Object, opts?: Object): node is GenericTypeAnnotation; + export function isInterfaceExtends(node: Object, opts?: Object): node is InterfaceExtends; + export function isInterfaceDeclaration(node: Object, opts?: Object): node is InterfaceDeclaration; + export function isIntersectionTypeAnnotation(node: Object, opts?: Object): node is IntersectionTypeAnnotation; + export function isMixedTypeAnnotation(node: Object, opts?: Object): node is MixedTypeAnnotation; + export function isNullableTypeAnnotation(node: Object, opts?: Object): node is NullableTypeAnnotation; + export function isNumericLiteralTypeAnnotation(node: Object, opts?: Object): node is NumericLiteralTypeAnnotation; + export function isNumberTypeAnnotation(node: Object, opts?: Object): node is NumberTypeAnnotation; + export function isStringLiteralTypeAnnotation(node: Object, opts?: Object): node is StringLiteralTypeAnnotation; + export function isStringTypeAnnotation(node: Object, opts?: Object): node is StringTypeAnnotation; + export function isThisTypeAnnotation(node: Object, opts?: Object): node is ThisTypeAnnotation; + export function isTupleTypeAnnotation(node: Object, opts?: Object): node is TupleTypeAnnotation; + export function isTypeofTypeAnnotation(node: Object, opts?: Object): node is TypeofTypeAnnotation; + export function isTypeAlias(node: Object, opts?: Object): node is TypeAlias; + export function isTypeAnnotation(node: Object, opts?: Object): node is TypeAnnotation; + export function isTypeCastExpression(node: Object, opts?: Object): node is TypeCastExpression; + export function isTypeParameterDeclaration(node: Object, opts?: Object): node is TypeParameterDeclaration; + export function isTypeParameterInstantiation(node: Object, opts?: Object): node is TypeParameterInstantiation; + export function isObjectTypeAnnotation(node: Object, opts?: Object): node is ObjectTypeAnnotation; + export function isObjectTypeCallProperty(node: Object, opts?: Object): node is ObjectTypeCallProperty; + export function isObjectTypeIndexer(node: Object, opts?: Object): node is ObjectTypeIndexer; + export function isObjectTypeProperty(node: Object, opts?: Object): node is ObjectTypeProperty; + export function isQualifiedTypeIdentifier(node: Object, opts?: Object): node is QualifiedTypeIdentifier; + export function isUnionTypeAnnotation(node: Object, opts?: Object): node is UnionTypeAnnotation; + export function isVoidTypeAnnotation(node: Object, opts?: Object): node is VoidTypeAnnotation; + export function isJSXAttribute(node: Object, opts?: Object): node is JSXAttribute; + export function isJSXClosingElement(node: Object, opts?: Object): node is JSXClosingElement; + export function isJSXElement(node: Object, opts?: Object): node is JSXElement; + export function isJSXEmptyExpression(node: Object, opts?: Object): node is JSXEmptyExpression; + export function isJSXExpressionContainer(node: Object, opts?: Object): node is JSXExpressionContainer; + export function isJSXIdentifier(node: Object, opts?: Object): node is JSXIdentifier; + export function isJSXMemberExpression(node: Object, opts?: Object): node is JSXMemberExpression; + export function isJSXNamespacedName(node: Object, opts?: Object): node is JSXNamespacedName; + export function isJSXOpeningElement(node: Object, opts?: Object): node is JSXOpeningElement; + export function isJSXSpreadAttribute(node: Object, opts?: Object): node is JSXSpreadAttribute; + export function isJSXText(node: Object, opts?: Object): node is JSXText; + export function isNoop(node: Object, opts?: Object): node is Noop; + export function isParenthesizedExpression(node: Object, opts?: Object): node is ParenthesizedExpression; + export function isAwaitExpression(node: Object, opts?: Object): node is AwaitExpression; + export function isBindExpression(node: Object, opts?: Object): node is BindExpression; + export function isDecorator(node: Object, opts?: Object): node is Decorator; + export function isDoExpression(node: Object, opts?: Object): node is DoExpression; + export function isExportDefaultSpecifier(node: Object, opts?: Object): node is ExportDefaultSpecifier; + export function isExportNamespaceSpecifier(node: Object, opts?: Object): node is ExportNamespaceSpecifier; + export function isRestProperty(node: Object, opts?: Object): node is RestProperty; + export function isSpreadProperty(node: Object, opts?: Object): node is SpreadProperty; + export function isExpression(node: Object, opts?: Object): node is Expression; + export function isBinary(node: Object, opts?: Object): node is Binary; + export function isScopable(node: Object, opts?: Object): node is Scopable; + export function isBlockParent(node: Object, opts?: Object): node is BlockParent; + export function isBlock(node: Object, opts?: Object): node is Block; + export function isStatement(node: Object, opts?: Object): node is Statement; + export function isTerminatorless(node: Object, opts?: Object): node is Terminatorless; + export function isCompletionStatement(node: Object, opts?: Object): node is CompletionStatement; + export function isConditional(node: Object, opts?: Object): node is Conditional; + export function isLoop(node: Object, opts?: Object): node is Loop; + export function isWhile(node: Object, opts?: Object): node is While; + export function isExpressionWrapper(node: Object, opts?: Object): node is ExpressionWrapper; + export function isFor(node: Object, opts?: Object): node is For; + export function isForXStatement(node: Object, opts?: Object): node is ForXStatement; + export function isFunction(node: Object, opts?: Object): node is Function; + export function isFunctionParent(node: Object, opts?: Object): node is FunctionParent; + export function isPureish(node: Object, opts?: Object): node is Pureish; + export function isDeclaration(node: Object, opts?: Object): node is Declaration; + export function isLVal(node: Object, opts?: Object): node is LVal; + export function isLiteral(node: Object, opts?: Object): node is Literal; + export function isImmutable(node: Object, opts?: Object): node is Immutable; + export function isUserWhitespacable(node: Object, opts?: Object): node is UserWhitespacable; + export function isMethod(node: Object, opts?: Object): node is Method; + export function isObjectMember(node: Object, opts?: Object): node is ObjectMember; + export function isProperty(node: Object, opts?: Object): node is Property; + export function isUnaryLike(node: Object, opts?: Object): node is UnaryLike; + export function isPattern(node: Object, opts?: Object): node is Pattern; + export function isClass(node: Object, opts?: Object): node is Class; + export function isModuleDeclaration(node: Object, opts?: Object): node is ModuleDeclaration; + export function isExportDeclaration(node: Object, opts?: Object): node is ExportDeclaration; + export function isModuleSpecifier(node: Object, opts?: Object): node is ModuleSpecifier; + export function isFlow(node: Object, opts?: Object): node is Flow; + export function isFlowBaseAnnotation(node: Object, opts?: Object): node is FlowBaseAnnotation; + export function isFlowDeclaration(node: Object, opts?: Object): node is FlowDeclaration; + export function isJSX(node: Object, opts?: Object): node is JSX; + export function isNumberLiteral(node: Object, opts?: Object): node is NumericLiteral; + export function isRegexLiteral(node: Object, opts?: Object): node is RegExpLiteral; + + export function isReferencedIdentifier(node: Object, opts?: Object): boolean; + export function isReferencedMemberExpression(node: Object, opts?: Object): boolean; + export function isBindingIdentifier(node: Object, opts?: Object): boolean; + export function isScope(node: Object, opts?: Object): boolean; + export function isReferenced(node: Object, opts?: Object): boolean; + export function isBlockScoped(node: Object, opts?: Object): boolean; + export function isVar(node: Object, opts?: Object): boolean; + export function isUser(node: Object, opts?: Object): boolean; + export function isGenerated(node: Object, opts?: Object): boolean; + export function isPure(node: Object, opts?: Object): boolean; + + export function assertArrayExpression(node: Object, opts?: Object): void; + export function assertAssignmentExpression(node: Object, opts?: Object): void; + export function assertBinaryExpression(node: Object, opts?: Object): void; + export function assertDirective(node: Object, opts?: Object): void; + export function assertDirectiveLiteral(node: Object, opts?: Object): void; + export function assertBlockStatement(node: Object, opts?: Object): void; + export function assertBreakStatement(node: Object, opts?: Object): void; + export function assertCallExpression(node: Object, opts?: Object): void; + export function assertCatchClause(node: Object, opts?: Object): void; + export function assertConditionalExpression(node: Object, opts?: Object): void; + export function assertContinueStatement(node: Object, opts?: Object): void; + export function assertDebuggerStatement(node: Object, opts?: Object): void; + export function assertDoWhileStatement(node: Object, opts?: Object): void; + export function assertEmptyStatement(node: Object, opts?: Object): void; + export function assertExpressionStatement(node: Object, opts?: Object): void; + export function assertFile(node: Object, opts?: Object): void; + export function assertForInStatement(node: Object, opts?: Object): void; + export function assertForStatement(node: Object, opts?: Object): void; + export function assertFunctionDeclaration(node: Object, opts?: Object): void; + export function assertFunctionExpression(node: Object, opts?: Object): void; + export function assertIdentifier(node: Object, opts?: Object): void; + export function assertIfStatement(node: Object, opts?: Object): void; + export function assertLabeledStatement(node: Object, opts?: Object): void; + export function assertStringLiteral(node: Object, opts?: Object): void; + export function assertNumericLiteral(node: Object, opts?: Object): void; + export function assertNullLiteral(node: Object, opts?: Object): void; + export function assertBooleanLiteral(node: Object, opts?: Object): void; + export function assertRegExpLiteral(node: Object, opts?: Object): void; + export function assertLogicalExpression(node: Object, opts?: Object): void; + export function assertMemberExpression(node: Object, opts?: Object): void; + export function assertNewExpression(node: Object, opts?: Object): void; + export function assertProgram(node: Object, opts?: Object): void; + export function assertObjectExpression(node: Object, opts?: Object): void; + export function assertObjectMethod(node: Object, opts?: Object): void; + export function assertObjectProperty(node: Object, opts?: Object): void; + export function assertRestElement(node: Object, opts?: Object): void; + export function assertReturnStatement(node: Object, opts?: Object): void; + export function assertSequenceExpression(node: Object, opts?: Object): void; + export function assertSwitchCase(node: Object, opts?: Object): void; + export function assertSwitchStatement(node: Object, opts?: Object): void; + export function assertThisExpression(node: Object, opts?: Object): void; + export function assertThrowStatement(node: Object, opts?: Object): void; + export function assertTryStatement(node: Object, opts?: Object): void; + export function assertUnaryExpression(node: Object, opts?: Object): void; + export function assertUpdateExpression(node: Object, opts?: Object): void; + export function assertVariableDeclaration(node: Object, opts?: Object): void; + export function assertVariableDeclarator(node: Object, opts?: Object): void; + export function assertWhileStatement(node: Object, opts?: Object): void; + export function assertWithStatement(node: Object, opts?: Object): void; + export function assertAssignmentPattern(node: Object, opts?: Object): void; + export function assertArrayPattern(node: Object, opts?: Object): void; + export function assertArrowFunctionExpression(node: Object, opts?: Object): void; + export function assertClassBody(node: Object, opts?: Object): void; + export function assertClassDeclaration(node: Object, opts?: Object): void; + export function assertClassExpression(node: Object, opts?: Object): void; + export function assertExportAllDeclaration(node: Object, opts?: Object): void; + export function assertExportDefaultDeclaration(node: Object, opts?: Object): void; + export function assertExportNamedDeclaration(node: Object, opts?: Object): void; + export function assertExportSpecifier(node: Object, opts?: Object): void; + export function assertForOfStatement(node: Object, opts?: Object): void; + export function assertImportDeclaration(node: Object, opts?: Object): void; + export function assertImportDefaultSpecifier(node: Object, opts?: Object): void; + export function assertImportNamespaceSpecifier(node: Object, opts?: Object): void; + export function assertImportSpecifier(node: Object, opts?: Object): void; + export function assertMetaProperty(node: Object, opts?: Object): void; + export function assertClassMethod(node: Object, opts?: Object): void; + export function assertObjectPattern(node: Object, opts?: Object): void; + export function assertSpreadElement(node: Object, opts?: Object): void; + export function assertSuper(node: Object, opts?: Object): void; + export function assertTaggedTemplateExpression(node: Object, opts?: Object): void; + export function assertTemplateElement(node: Object, opts?: Object): void; + export function assertTemplateLiteral(node: Object, opts?: Object): void; + export function assertYieldExpression(node: Object, opts?: Object): void; + export function assertAnyTypeAnnotation(node: Object, opts?: Object): void; + export function assertArrayTypeAnnotation(node: Object, opts?: Object): void; + export function assertBooleanTypeAnnotation(node: Object, opts?: Object): void; + export function assertBooleanLiteralTypeAnnotation(node: Object, opts?: Object): void; + export function assertNullLiteralTypeAnnotation(node: Object, opts?: Object): void; + export function assertClassImplements(node: Object, opts?: Object): void; + export function assertClassProperty(node: Object, opts?: Object): void; + export function assertDeclareClass(node: Object, opts?: Object): void; + export function assertDeclareFunction(node: Object, opts?: Object): void; + export function assertDeclareInterface(node: Object, opts?: Object): void; + export function assertDeclareModule(node: Object, opts?: Object): void; + export function assertDeclareTypeAlias(node: Object, opts?: Object): void; + export function assertDeclareVariable(node: Object, opts?: Object): void; + export function assertExistentialTypeParam(node: Object, opts?: Object): void; + export function assertFunctionTypeAnnotation(node: Object, opts?: Object): void; + export function assertFunctionTypeParam(node: Object, opts?: Object): void; + export function assertGenericTypeAnnotation(node: Object, opts?: Object): void; + export function assertInterfaceExtends(node: Object, opts?: Object): void; + export function assertInterfaceDeclaration(node: Object, opts?: Object): void; + export function assertIntersectionTypeAnnotation(node: Object, opts?: Object): void; + export function assertMixedTypeAnnotation(node: Object, opts?: Object): void; + export function assertNullableTypeAnnotation(node: Object, opts?: Object): void; + export function assertNumericLiteralTypeAnnotation(node: Object, opts?: Object): void; + export function assertNumberTypeAnnotation(node: Object, opts?: Object): void; + export function assertStringLiteralTypeAnnotation(node: Object, opts?: Object): void; + export function assertStringTypeAnnotation(node: Object, opts?: Object): void; + export function assertThisTypeAnnotation(node: Object, opts?: Object): void; + export function assertTupleTypeAnnotation(node: Object, opts?: Object): void; + export function assertTypeofTypeAnnotation(node: Object, opts?: Object): void; + export function assertTypeAlias(node: Object, opts?: Object): void; + export function assertTypeAnnotation(node: Object, opts?: Object): void; + export function assertTypeCastExpression(node: Object, opts?: Object): void; + export function assertTypeParameterDeclaration(node: Object, opts?: Object): void; + export function assertTypeParameterInstantiation(node: Object, opts?: Object): void; + export function assertObjectTypeAnnotation(node: Object, opts?: Object): void; + export function assertObjectTypeCallProperty(node: Object, opts?: Object): void; + export function assertObjectTypeIndexer(node: Object, opts?: Object): void; + export function assertObjectTypeProperty(node: Object, opts?: Object): void; + export function assertQualifiedTypeIdentifier(node: Object, opts?: Object): void; + export function assertUnionTypeAnnotation(node: Object, opts?: Object): void; + export function assertVoidTypeAnnotation(node: Object, opts?: Object): void; + export function assertJSXAttribute(node: Object, opts?: Object): void; + export function assertJSXClosingElement(node: Object, opts?: Object): void; + export function assertJSXElement(node: Object, opts?: Object): void; + export function assertJSXEmptyExpression(node: Object, opts?: Object): void; + export function assertJSXExpressionContainer(node: Object, opts?: Object): void; + export function assertJSXIdentifier(node: Object, opts?: Object): void; + export function assertJSXMemberExpression(node: Object, opts?: Object): void; + export function assertJSXNamespacedName(node: Object, opts?: Object): void; + export function assertJSXOpeningElement(node: Object, opts?: Object): void; + export function assertJSXSpreadAttribute(node: Object, opts?: Object): void; + export function assertJSXText(node: Object, opts?: Object): void; + export function assertNoop(node: Object, opts?: Object): void; + export function assertParenthesizedExpression(node: Object, opts?: Object): void; + export function assertAwaitExpression(node: Object, opts?: Object): void; + export function assertBindExpression(node: Object, opts?: Object): void; + export function assertDecorator(node: Object, opts?: Object): void; + export function assertDoExpression(node: Object, opts?: Object): void; + export function assertExportDefaultSpecifier(node: Object, opts?: Object): void; + export function assertExportNamespaceSpecifier(node: Object, opts?: Object): void; + export function assertRestProperty(node: Object, opts?: Object): void; + export function assertSpreadProperty(node: Object, opts?: Object): void; + export function assertExpression(node: Object, opts?: Object): void; + export function assertBinary(node: Object, opts?: Object): void; + export function assertScopable(node: Object, opts?: Object): void; + export function assertBlockParent(node: Object, opts?: Object): void; + export function assertBlock(node: Object, opts?: Object): void; + export function assertStatement(node: Object, opts?: Object): void; + export function assertTerminatorless(node: Object, opts?: Object): void; + export function assertCompletionStatement(node: Object, opts?: Object): void; + export function assertConditional(node: Object, opts?: Object): void; + export function assertLoop(node: Object, opts?: Object): void; + export function assertWhile(node: Object, opts?: Object): void; + export function assertExpressionWrapper(node: Object, opts?: Object): void; + export function assertFor(node: Object, opts?: Object): void; + export function assertForXStatement(node: Object, opts?: Object): void; + export function assertFunction(node: Object, opts?: Object): void; + export function assertFunctionParent(node: Object, opts?: Object): void; + export function assertPureish(node: Object, opts?: Object): void; + export function assertDeclaration(node: Object, opts?: Object): void; + export function assertLVal(node: Object, opts?: Object): void; + export function assertLiteral(node: Object, opts?: Object): void; + export function assertImmutable(node: Object, opts?: Object): void; + export function assertUserWhitespacable(node: Object, opts?: Object): void; + export function assertMethod(node: Object, opts?: Object): void; + export function assertObjectMember(node: Object, opts?: Object): void; + export function assertProperty(node: Object, opts?: Object): void; + export function assertUnaryLike(node: Object, opts?: Object): void; + export function assertPattern(node: Object, opts?: Object): void; + export function assertClass(node: Object, opts?: Object): void; + export function assertModuleDeclaration(node: Object, opts?: Object): void; + export function assertExportDeclaration(node: Object, opts?: Object): void; + export function assertModuleSpecifier(node: Object, opts?: Object): void; + export function assertFlow(node: Object, opts?: Object): void; + export function assertFlowBaseAnnotation(node: Object, opts?: Object): void; + export function assertFlowDeclaration(node: Object, opts?: Object): void; + export function assertJSX(node: Object, opts?: Object): void; + export function assertNumberLiteral(node: Object, opts?: Object): void; + export function assertRegexLiteral(node: Object, opts?: Object): void; +} diff --git a/babel-types/tsconfig.json b/babel-types/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babel-types/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babylon/babylon-tests.ts b/babylon/babylon-tests.ts new file mode 100644 index 0000000000..16a6998037 --- /dev/null +++ b/babylon/babylon-tests.ts @@ -0,0 +1,24 @@ +/// +/// +/// + + +// Example from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babylon +import * as babylon from "babylon"; +declare function assert(expr: boolean): void; + +const code = `function square(n) { + return n * n; +}`; + +let node = babylon.parse(code); +assert(node.type === "File"); +assert(node.start === 0); +assert(node.end === 38); +assert(node.loc.start > node.loc.end); + + +babylon.parse(code, { + sourceType: "module", // default: "script" + plugins: ["jsx"] // default: [] +}); diff --git a/babylon/babylon.d.ts b/babylon/babylon.d.ts new file mode 100644 index 0000000000..88be6dab84 --- /dev/null +++ b/babylon/babylon.d.ts @@ -0,0 +1,48 @@ +// Type definitions for babylon v6.7 +// Project: https://github.com/babel/babylon +// Definitions by: Troy Gerwien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "babylon" { + import * as t from 'babel-types'; + type Node = t.Node; + + export function parse(code: string, opts?: BabylonOptions): Node; + + export interface BabylonOptions { + /** + * By default, import and export declarations can only appear at a program's top level. + * Setting this option to true allows them anywhere where a statement is allowed. + */ + allowImportExportEverywhere?: boolean; + + /** + * By default, a return statement at the top level raises an error. Set this to true to accept such code. + */ + allowReturnOutsideFunction?: boolean; + + allowSuperOutsideMethod?: boolean; + + /** + * Indicate the mode the code should be parsed in. Can be either "script" or "module". + */ + sourceType?: 'script' | 'module'; + + /** + * Correlate output AST nodes with their source filename. Useful when + * generating code and source maps from the ASTs of multiple input files. + */ + sourceFilename?: string; + + /** + * Array containing the plugins that you want to enable. + */ + plugins?: PluginName[]; + } + + export type PluginName = 'jsx' | 'flow' | 'asyncFunctions' | 'classConstructorCall' | 'doExpressions' + | 'trailingFunctionCommas' | 'objectRestSpread' | 'decorators' | 'classProperties' | 'exportExtensions' + | 'exponentiationOperator' | 'asyncGenerators' | 'functionBind' | 'functionSent'; +} diff --git a/babylon/tsconfig.json b/babylon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babylon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babylonjs/tsconfig.json b/babylonjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babylonjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/babyparse/tsconfig.json b/babyparse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/babyparse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone-associations/tsconfig.json b/backbone-associations/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone-associations/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone-relational/tsconfig.json b/backbone-relational/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone-relational/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone.layoutmanager/tsconfig.json b/backbone.layoutmanager/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone.layoutmanager/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone.localstorage/tsconfig.json b/backbone.localstorage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone.localstorage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone.marionette/tsconfig.json b/backbone.marionette/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone.marionette/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone.paginator/tsconfig.json b/backbone.paginator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone.paginator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone.radio/tsconfig.json b/backbone.radio/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone.radio/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backbone/tsconfig.json b/backbone/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backbone/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/backgrid/tsconfig.json b/backgrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/backgrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/baconjs/tsconfig.json b/baconjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/baconjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/barcode/tsconfig.json b/barcode/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/barcode/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bardjs/tsconfig.json b/bardjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bardjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/base-x/tsconfig.json b/base-x/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/base-x/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/basic-auth/tsconfig.json b/basic-auth/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/basic-auth/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/batch-stream/tsconfig.json b/batch-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/batch-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bcrypt-nodejs/tsconfig.json b/bcrypt-nodejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bcrypt-nodejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bcrypt/tsconfig.json b/bcrypt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bcrypt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bcryptjs/tsconfig.json b/bcryptjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bcryptjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/benchmark/tsconfig.json b/benchmark/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/benchmark/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/better-curry/tsconfig.json b/better-curry/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/better-curry/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bezier-easing/tsconfig.json b/bezier-easing/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bezier-easing/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bgiframe/tsconfig.json b/bgiframe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bgiframe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/big-integer/tsconfig.json b/big-integer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/big-integer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/big.js/tsconfig.json b/big.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/big.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bigint/tsconfig.json b/bigint/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bigint/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bignum/tsconfig.json b/bignum/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bignum/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bigscreen/tsconfig.json b/bigscreen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bigscreen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bingmaps/tsconfig.json b/bingmaps/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bingmaps/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bip21/tsconfig.json b/bip21/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bip21/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bitwise-xor/tsconfig.json b/bitwise-xor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bitwise-xor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bl/tsconfig.json b/bl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blazy/tsconfig.json b/blazy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blazy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blissfuljs/tsconfig.json b/blissfuljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blissfuljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blob-stream/tsconfig.json b/blob-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blob-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blocks/tsconfig.json b/blocks/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blocks/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blue-tape/tsconfig.json b/blue-tape/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blue-tape/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bluebird-retry/tsconfig.json b/bluebird-retry/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bluebird-retry/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bluebird/tsconfig.json b/bluebird/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bluebird/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/blueimp-md5/tsconfig.json b/blueimp-md5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/blueimp-md5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/body-parser/tsconfig.json b/body-parser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/body-parser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bookshelf/bookshelf-tests.ts b/bookshelf/bookshelf-tests.ts index 42faf0909e..92758e143a 100644 --- a/bookshelf/bookshelf-tests.ts +++ b/bookshelf/bookshelf-tests.ts @@ -15,6 +15,9 @@ var knex = Knex({ var bookshelf = Bookshelf(knex); +bookshelf.plugin('registry'); +bookshelf.plugin(['virtuals']); + class User extends bookshelf.Model { get tableName() { return 'users'; } messages() : Bookshelf.Collection { diff --git a/bookshelf/bookshelf.d.ts b/bookshelf/bookshelf.d.ts index bb877c6745..cf70220840 100644 --- a/bookshelf/bookshelf.d.ts +++ b/bookshelf/bookshelf.d.ts @@ -7,307 +7,308 @@ /// /// +declare module 'bookshelf' { + import knex = require('knex'); + import Promise = require('bluebird'); + import Lodash = require('lodash'); -import knex = require('knex'); -import Promise = require('bluebird'); -import Lodash = require('lodash'); + interface Bookshelf extends Bookshelf.Events { + VERSION : string; + knex : knex; + Model : typeof Bookshelf.Model; + Collection : typeof Bookshelf.Collection; -interface Bookshelf extends Bookshelf.Events { - VERSION: string; - knex: knex; - Model: typeof Bookshelf.Model; - Collection: typeof Bookshelf.Collection; + plugin(name: string | string[] | Function, options?: any) : Bookshelf; + transaction(callback : (transaction : knex.Transaction) => T) : Promise; + } - plugin(name: string): Bookshelf; - transaction(callback: (transaction: knex.Transaction) => T): Promise; + function Bookshelf(knex : knex) : Bookshelf; + + namespace Bookshelf { + abstract class Events { + on(event? : string, callback? : EventFunction, context? : any) : void; + off(event? : string) : void; + trigger(event? : string, ...args : any[]) : void; + triggerThen(name : string, ...args : any[]) : Promise; + once(event : string, callback : EventFunction, context? : any) : void; + } + + interface IModelBase { + /** Should be declared as a getter instead of a plain property. */ + hasTimestamps? : boolean|string[]; + /** Should be declared as a getter instead of a plain property. Should be required, but cannot have abstract properties yet. */ + tableName? : string; + } + + abstract class ModelBase> extends Events> implements IModelBase { + /** If overriding, must use a getter instead of a plain property. */ + idAttribute : string; + + constructor(attributes? : any, options? : ModelOptions); + + clear() : T; + clone() : T; + escape(attribute : string) : string; + format(attributes : any) : any; + get(attribute : string) : any; + has(attribute : string) : boolean; + hasChanged(attribute? : string) : boolean; + isNew() : boolean; + parse(response : any) : any; + previousAttributes() : any; + previous(attribute : string) : any; + related>(relation : string) : R | Collection; + serialize(options? : SerializeOptions) : any; + set(attribute?: {[key : string] : any}, options? : SetOptions) : T; + set(attribute : string, value? : any, options? : SetOptions) : T; + timestamp(options? : TimestampOptions) : any; + toJSON(options? : SerializeOptions) : any; + unset(attribute : string) : T; + + // lodash methods + invert() : R; + keys() : string[]; + omit(predicate? : Lodash.ObjectIterator, thisArg? : any) : R; + omit(...attributes : string[]) : R; + pairs() : any[][]; + pick(predicate? : Lodash.ObjectIterator, thisArg? : any) : R; + pick(...attributes : string[]) : R; + values() : any[]; + } + + class Model> extends ModelBase { + static collection>(models? : T[], options? : CollectionOptions) : Collection; + static count(column? : string, options? : SyncOptions) : Promise; + /** @deprecated use Typescript classes */ + static extend>(prototypeProperties? : any, classProperties? : any) : Function; // should return a type + static fetchAll>() : Promise>; + /** @deprecated should use `new` objects instead. */ + static forge(attributes? : any, options? : ModelOptions) : T; + + belongsTo>(target : {new(...args : any[]) : R}, foreignKey? : string) : R; + belongsToMany>(target : {new(...args : any[]) : R}, table? : string, foreignKey? : string, otherKey? : string) : Collection; + count(column? : string, options? : SyncOptions) : Promise; + destroy(options? : SyncOptions) : Promise; + fetch(options? : FetchOptions) : Promise; + fetchAll(options? : FetchAllOptions) : Promise>; + hasMany>(target : {new(...args : any[]) : R}, foreignKey? : string) : Collection; + hasOne>(target : {new(...args : any[]) : R}, foreignKey? : string) : R; + load(relations : string|string[], options? : LoadOptions) : Promise; + morphMany>(target : {new(...args : any[]) : R}, name? : string, columnNames? : string[], morphValue? : string) : Collection; + morphOne>(target : {new(...args : any[]) : R}, name? : string, columnNames? : string[], morphValue? : string) : R; + morphTo(name : string, columnNames? : string[], ...target : typeof Model[]) : T; + morphTo(name : string, ...target : typeof Model[]) : T; + query(...query : string[]) : T; + query(query : {[key : string] : any}) : T; + query(callback : (qb : knex.QueryBuilder) => void) : T; + query() : knex.QueryBuilder; + refresh(options? : FetchOptions) : Promise; + resetQuery() : T; + save(key? : string, val? : string, options? : SaveOptions) : Promise; + save(attrs? : {[key : string] : any}, options? : SaveOptions) : Promise; + through>(interim : typeof Model, throughForeignKey? : string, otherKey? : string) : R | Collection; + where(properties : {[key : string] : any}) : T; + where(key : string, operatorOrValue : string|number|boolean, valueIfOperator? : string|number|boolean) : T; + } + + abstract class CollectionBase> extends Events { + add(models : T[]|{[key : string] : any}[], options? : CollectionAddOptions) : Collection; + at(index : number) : T; + clone() : Collection; + fetch(options? : CollectionFetchOptions) : Promise>; + findWhere(match : {[key : string] : any}) : T; + get(id : any) : T; + invokeThen(name : string, ...args : any[]) : Promise; + parse(response : any) : any; + pluck(attribute : string) : any[]; + pop() : void; + push(model : any) : Collection; + reduceThen(iterator : (prev : R, cur : T, idx : number, array : T[]) => R, initialValue : R, context : any) : Promise; + remove(model : T, options? : EventOptions) : T; + remove(model : T[], options? : EventOptions) : T[]; + reset(model : any[], options? : CollectionAddOptions) : T[]; + serialize(options? : SerializeOptions) : any; + set(models : T[]|{[key : string] : any}[], options? : CollectionSetOptions) : Collection; + shift(options? : EventOptions) : void; + slice(begin? : number, end? : number) : void; + toJSON(options? : SerializeOptions) : any; + unshift(model : any, options? : CollectionAddOptions) : void; + where(match : {[key : string] : any}, firstOnly : boolean) : T|Collection; + + // lodash methods + all(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : boolean; + all(predicate? : R) : boolean; + any(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : boolean; + any(predicate? : R) : boolean; + chain() : Lodash.LoDashExplicitObjectWrapper; + collect(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + collect(predicate? : R) : T[]; + contains(value : any, fromIndex? : number) : boolean; + countBy(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : Lodash.Dictionary; + countBy(predicate? : R) : Lodash.Dictionary; + detect(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T; + detect(predicate? : R) : T; + difference(...values : T[]) : T[]; + drop(n? : number) : T[]; + each(callback? : Lodash.ListIterator, thisArg? : any) : Lodash.List; + each(callback? : Lodash.DictionaryIterator, thisArg? : any) : Lodash.Dictionary; + each(callback? : Lodash.ObjectIterator, thisArg? : any) : T; + every(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : boolean; + every(predicate? : R) : boolean; + filter(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + filter(predicate? : R) : T[]; + find(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T; + find(predicate? : R) : T; + first() : T; + foldl(callback? : Lodash.MemoIterator, accumulator? : R, thisArg? : any) : R; + foldr(callback? : Lodash.MemoIterator, accumulator? : R, thisArg? : any) : R; + forEach(callback? : Lodash.ListIterator, thisArg? : any) : Lodash.List; + forEach(callback? : Lodash.DictionaryIterator, thisArg? : any) : Lodash.Dictionary; + forEach(callback? : Lodash.ObjectIterator, thisArg? : any) : T; + groupBy(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : Lodash.Dictionary; + groupBy(predicate? : R) : Lodash.Dictionary; + head() : T; + include(value : any, fromIndex? : number) : boolean; + indexOf(value : any, fromIndex? : number) : number; + initial() : T[]; + inject(callback? : Lodash.MemoIterator, accumulator? : R, thisArg? : any) : R; + invoke(methodName : string|Function, ...args : any[]) : any; + isEmpty() : boolean; + keys() : string[]; + last() : T; + lastIndexOf(value : any, fromIndex? : number) : number; + map(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + map(predicate? : R) : T[]; + max(predicate? : Lodash.ListIterator|string, thisArg? : any) : T; + max(predicate? : R) : T; + min(predicate? : Lodash.ListIterator|string, thisArg? : any) : T; + min(predicate? : R) : T; + reduce(callback? : Lodash.MemoIterator, accumulator? : R, thisArg? : any) : R; + reduceRight(callback? : Lodash.MemoIterator, accumulator? : R, thisArg? : any) : R; + reject(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + reject(predicate? : R) : T[]; + rest() : T[]; + select(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + select(predicate? : R) : T[]; + shuffle() : T[]; + size() : number; + some(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : boolean; + some(predicate? : R) : boolean; + sortBy(predicate? : Lodash.ListIterator|Lodash.DictionaryIterator|string, thisArg? : any) : T[]; + sortBy(predicate? : R) : T[]; + tail() : T[]; + take(n? : number) : T[]; + toArray() : T[]; + without(...values : any[]) : T[]; + } + + class Collection> extends CollectionBase { + /** @deprecated use Typescript classes */ + static extend(prototypeProperties? : any, classProperties? : any) : Function; + /** @deprecated should use `new` objects instead. */ + static forge(attributes? : any, options? : ModelOptions) : T; + + attach(ids : any[], options? : SyncOptions) : Promise>; + count(column? : string, options? : SyncOptions) : Promise; + create(model : {[key : string] : any}, options? : CollectionCreateOptions) : Promise; + detach(ids : any[], options? : SyncOptions) : Promise; + fetchOne(options? : CollectionFetchOneOptions) : Promise; + load(relations : string|string[], options? : SyncOptions) : Promise>; + query(...query : string[]) : Collection; + query(query : {[key : string] : any}) : Collection; + query(callback : (qb : knex.QueryBuilder) => void) : Collection; + query() : knex.QueryBuilder; + resetQuery() : Collection; + through>(interim : typeof Model, throughForeignKey? : string, otherKey? : string) : R | Collection; + updatePivot(attributes : any, options? : PivotOptions) : Promise; + withPivot(columns : string[]) : Collection; + } + + interface ModelOptions { + tableName? : string; + hasTimestamps? : boolean; + parse? : boolean; + } + + interface LoadOptions extends SyncOptions { + withRelated: string|any|any[]; + } + + interface FetchOptions extends SyncOptions { + require? : boolean; + columns? : string|string[]; + withRelated? : string|any|any[]; + } + + interface FetchAllOptions extends SyncOptions { + require? : boolean; + } + + interface SaveOptions extends SyncOptions { + method? : string; + defaults? : string; + patch? : boolean; + require? : boolean; + } + + interface SerializeOptions { + shallow? : boolean; + omitPivot? : boolean; + } + + interface SetOptions { + unset? : boolean; + } + + interface TimestampOptions { + method? : string; + } + + interface SyncOptions { + transacting? : knex.Transaction; + debug? : boolean; + } + + interface CollectionOptions { + comparator? : boolean|string|((a : T, b : T) => number); + } + + interface CollectionAddOptions extends EventOptions { + at? : number; + merge? : boolean; + } + + interface CollectionFetchOptions { + require? : boolean; + withRelated? : string|string[]; + } + + interface CollectionFetchOneOptions { + require? : boolean; + columns? : string|string[]; + } + + interface CollectionSetOptions extends EventOptions { + add? : boolean; + remove? : boolean; + merge?: boolean; + } + + interface PivotOptions { + query? : Function|any; + require? : boolean; + } + + interface EventOptions { + silent? : boolean; + } + + interface EventFunction { + (model: T, attrs: any, options: any) : Promise|void; + } + + interface CollectionCreateOptions extends ModelOptions, SyncOptions, CollectionAddOptions, SaveOptions {} + } + + export = Bookshelf; } - -declare function Bookshelf(knex: knex): Bookshelf; - -declare namespace Bookshelf { - abstract class Events { - on(event?: string, callback?: EventFunction, context?: any): void; - off(event?: string): void; - trigger(event?: string, ...args: any[]): void; - triggerThen(name: string, ...args: any[]): Promise; - once(event: string, callback: EventFunction, context?: any): void; - } - - interface IModelBase { - /** Should be declared as a getter instead of a plain property. */ - hasTimestamps?: boolean | string[]; - /** Should be declared as a getter instead of a plain property. Should be required, but cannot have abstract properties yet. */ - tableName?: string; - } - - abstract class ModelBase> extends Events> implements IModelBase { - /** If overriding, must use a getter instead of a plain property. */ - idAttribute: string; - - constructor(attributes?: any, options?: ModelOptions); - - clear(): T; - clone(): T; - escape(attribute: string): string; - format(attributes: any): any; - get(attribute: string): any; - has(attribute: string): boolean; - hasChanged(attribute?: string): boolean; - isNew(): boolean; - parse(response: any): any; - previousAttributes(): any; - previous(attribute: string): any; - related>(relation: string): R | Collection; - serialize(options?: SerializeOptions): any; - set(attribute?: { [key: string]: any }, options?: SetOptions): T; - set(attribute: string, value?: any, options?: SetOptions): T; - timestamp(options?: TimestampOptions): any; - toJSON(options?: SerializeOptions): any; - unset(attribute: string): T; - - // lodash methods - invert(): R; - keys(): string[]; - omit(predicate?: Lodash.ObjectIterator, thisArg?: any): R; - omit(...attributes: string[]): R; - pairs(): any[][]; - pick(predicate?: Lodash.ObjectIterator, thisArg?: any): R; - pick(...attributes: string[]): R; - values(): any[]; - } - - class Model> extends ModelBase { - static collection>(models?: T[], options?: CollectionOptions): Collection; - static count(column?: string, options?: SyncOptions): Promise; - /** @deprecated use Typescript classes */ - static extend>(prototypeProperties?: any, classProperties?: any): Function; // should return a type - static fetchAll>(): Promise>; - /** @deprecated should use `new` objects instead. */ - static forge(attributes?: any, options?: ModelOptions): T; - - belongsTo>(target: { new (...args: any[]): R }, foreignKey?: string): R; - belongsToMany>(target: { new (...args: any[]): R }, table?: string, foreignKey?: string, otherKey?: string): Collection; - count(column?: string, options?: SyncOptions): Promise; - destroy(options?: SyncOptions): Promise; - fetch(options?: FetchOptions): Promise; - fetchAll(options?: FetchAllOptions): Promise>; - hasMany>(target: { new (...args: any[]): R }, foreignKey?: string): Collection; - hasOne>(target: { new (...args: any[]): R }, foreignKey?: string): R; - load(relations: string | string[], options?: LoadOptions): Promise; - morphMany>(target: { new (...args: any[]): R }, name?: string, columnNames?: string[], morphValue?: string): Collection; - morphOne>(target: { new (...args: any[]): R }, name?: string, columnNames?: string[], morphValue?: string): R; - morphTo(name: string, columnNames?: string[], ...target: typeof Model[]): T; - morphTo(name: string, ...target: typeof Model[]): T; - query(...query: string[]): T; - query(query: { [key: string]: any }): T; - query(callback: (qb: knex.QueryBuilder) => void): T; - query(): knex.QueryBuilder; - refresh(options?: FetchOptions): Promise; - resetQuery(): T; - save(key?: string, val?: string, options?: SaveOptions): Promise; - save(attrs?: { [key: string]: any }, options?: SaveOptions): Promise; - through>(interim: typeof Model, throughForeignKey?: string, otherKey?: string): R | Collection; - where(properties: { [key: string]: any }): T; - where(key: string, operatorOrValue: string | number | boolean, valueIfOperator?: string | number | boolean): T; - } - - abstract class CollectionBase> extends Events { - add(models: T[] | { [key: string]: any }[], options?: CollectionAddOptions): Collection; - at(index: number): T; - clone(): Collection; - fetch(options?: CollectionFetchOptions): Promise>; - findWhere(match: { [key: string]: any }): T; - get(id: any): T; - invokeThen(name: string, ...args: any[]): Promise; - parse(response: any): any; - pluck(attribute: string): any[]; - pop(): void; - push(model: any): Collection; - reduceThen(iterator: (prev: R, cur: T, idx: number, array: T[]) => R, initialValue: R, context: any): Promise; - remove(model: T, options?: EventOptions): T; - remove(model: T[], options?: EventOptions): T[]; - reset(model: any[], options?: CollectionAddOptions): T[]; - serialize(options?: SerializeOptions): any; - set(models: T[] | { [key: string]: any }[], options?: CollectionSetOptions): Collection; - shift(options?: EventOptions): void; - slice(begin?: number, end?: number): void; - toJSON(options?: SerializeOptions): any; - unshift(model: any, options?: CollectionAddOptions): void; - where(match: { [key: string]: any }, firstOnly: boolean): T | Collection; - - // lodash methods - all(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): boolean; - all(predicate?: R): boolean; - any(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): boolean; - any(predicate?: R): boolean; - chain(): Lodash.LoDashExplicitObjectWrapper; - collect(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - collect(predicate?: R): T[]; - contains(value: any, fromIndex?: number): boolean; - countBy(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): Lodash.Dictionary; - countBy(predicate?: R): Lodash.Dictionary; - detect(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T; - detect(predicate?: R): T; - difference(...values: T[]): T[]; - drop(n?: number): T[]; - each(callback?: Lodash.ListIterator, thisArg?: any): Lodash.List; - each(callback?: Lodash.DictionaryIterator, thisArg?: any): Lodash.Dictionary; - each(callback?: Lodash.ObjectIterator, thisArg?: any): T; - every(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): boolean; - every(predicate?: R): boolean; - filter(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - filter(predicate?: R): T[]; - find(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T; - find(predicate?: R): T; - first(): T; - foldl(callback?: Lodash.MemoIterator, accumulator?: R, thisArg?: any): R; - foldr(callback?: Lodash.MemoIterator, accumulator?: R, thisArg?: any): R; - forEach(callback?: Lodash.ListIterator, thisArg?: any): Lodash.List; - forEach(callback?: Lodash.DictionaryIterator, thisArg?: any): Lodash.Dictionary; - forEach(callback?: Lodash.ObjectIterator, thisArg?: any): T; - groupBy(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): Lodash.Dictionary; - groupBy(predicate?: R): Lodash.Dictionary; - head(): T; - include(value: any, fromIndex?: number): boolean; - indexOf(value: any, fromIndex?: number): number; - initial(): T[]; - inject(callback?: Lodash.MemoIterator, accumulator?: R, thisArg?: any): R; - invoke(methodName: string | Function, ...args: any[]): any; - isEmpty(): boolean; - keys(): string[]; - last(): T; - lastIndexOf(value: any, fromIndex?: number): number; - map(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - map(predicate?: R): T[]; - max(predicate?: Lodash.ListIterator | string, thisArg?: any): T; - max(predicate?: R): T; - min(predicate?: Lodash.ListIterator | string, thisArg?: any): T; - min(predicate?: R): T; - reduce(callback?: Lodash.MemoIterator, accumulator?: R, thisArg?: any): R; - reduceRight(callback?: Lodash.MemoIterator, accumulator?: R, thisArg?: any): R; - reject(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - reject(predicate?: R): T[]; - rest(): T[]; - select(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - select(predicate?: R): T[]; - shuffle(): T[]; - size(): number; - some(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): boolean; - some(predicate?: R): boolean; - sortBy(predicate?: Lodash.ListIterator | Lodash.DictionaryIterator | string, thisArg?: any): T[]; - sortBy(predicate?: R): T[]; - tail(): T[]; - take(n?: number): T[]; - toArray(): T[]; - without(...values: any[]): T[]; - } - - class Collection> extends CollectionBase { - /** @deprecated use Typescript classes */ - static extend(prototypeProperties?: any, classProperties?: any): Function; - /** @deprecated should use `new` objects instead. */ - static forge(attributes?: any, options?: ModelOptions): T; - - attach(ids: any[], options?: SyncOptions): Promise>; - count(column?: string, options?: SyncOptions): Promise; - create(model: { [key: string]: any }, options?: CollectionCreateOptions): Promise; - detach(ids: any[], options?: SyncOptions): Promise; - fetchOne(options?: CollectionFetchOneOptions): Promise; - load(relations: string | string[], options?: SyncOptions): Promise>; - query(...query: string[]): Collection; - query(query: { [key: string]: any }): Collection; - query(callback: (qb: knex.QueryBuilder) => void): Collection; - query(): knex.QueryBuilder; - resetQuery(): Collection; - through>(interim: typeof Model, throughForeignKey?: string, otherKey?: string): R | Collection; - updatePivot(attributes: any, options?: PivotOptions): Promise; - withPivot(columns: string[]): Collection; - } - - interface ModelOptions { - tableName?: string; - hasTimestamps?: boolean; - parse?: boolean; - } - - interface LoadOptions extends SyncOptions { - withRelated: string | any | any[]; - } - - interface FetchOptions extends SyncOptions { - require?: boolean; - columns?: string | string[]; - withRelated?: string | any | any[]; - } - - interface FetchAllOptions extends SyncOptions { - require?: boolean; - } - - interface SaveOptions extends SyncOptions { - method?: string; - defaults?: string; - patch?: boolean; - require?: boolean; - } - - interface SerializeOptions { - shallow?: boolean; - omitPivot?: boolean; - } - - interface SetOptions { - unset?: boolean; - } - - interface TimestampOptions { - method?: string; - } - - interface SyncOptions { - transacting?: knex.Transaction; - debug?: boolean; - } - - interface CollectionOptions { - comparator?: boolean | string | ((a: T, b: T) => number); - } - - interface CollectionAddOptions extends EventOptions { - at?: number; - merge?: boolean; - } - - interface CollectionFetchOptions { - require?: boolean; - withRelated?: string | string[]; - } - - interface CollectionFetchOneOptions { - require?: boolean; - columns?: string | string[]; - } - - interface CollectionSetOptions extends EventOptions { - add?: boolean; - remove?: boolean; - merge?: boolean; - } - - interface PivotOptions { - query?: Function | any; - require?: boolean; - } - - interface EventOptions { - silent?: boolean; - } - - interface EventFunction { - (model: T, attrs: any, options: any): Promise | void; - } - - interface CollectionCreateOptions extends ModelOptions, SyncOptions, CollectionAddOptions, SaveOptions { } -} - -export = Bookshelf; diff --git a/bookshelf/tsconfig.json b/bookshelf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bookshelf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/boolify-string/tsconfig.json b/boolify-string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/boolify-string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/boom/tsconfig.json b/boom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/boom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootbox/tsconfig.json b/bootbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootpag/tsconfig.json b/bootpag/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootpag/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap-maxlength/tsconfig.json b/bootstrap-maxlength/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap-maxlength/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap-notify/tsconfig.json b/bootstrap-notify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap-notify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap-slider/tsconfig.json b/bootstrap-slider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap-slider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap-switch/tsconfig.json b/bootstrap-switch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap-switch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap-touchspin/tsconfig.json b/bootstrap-touchspin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap-touchspin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap.datepicker/tsconfig.json b/bootstrap.datepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap.datepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap.paginator/tsconfig.json b/bootstrap.paginator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap.paginator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap.timepicker/tsconfig.json b/bootstrap.timepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap.timepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap.v3.datetimepicker/tsconfig.json b/bootstrap.v3.datetimepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap.v3.datetimepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bootstrap/tsconfig.json b/bootstrap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bootstrap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bounce.js/tsconfig.json b/bounce.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bounce.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bowser/tsconfig.json b/bowser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bowser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/box2d/tsconfig.json b/box2d/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/box2d/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/breeze/tsconfig.json b/breeze/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/breeze/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/brorand/tsconfig.json b/brorand/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/brorand/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/browser-harness/tsconfig.json b/browser-harness/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/browser-harness/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/browser-sync/tsconfig.json b/browser-sync/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/browser-sync/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/browserify/tsconfig.json b/browserify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/browserify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bs58/tsconfig.json b/bs58/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bs58/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bson/tsconfig.json b/bson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bucks/tsconfig.json b/bucks/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bucks/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/buffer-compare/tsconfig.json b/buffer-compare/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/buffer-compare/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/buffer-equal/tsconfig.json b/buffer-equal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/buffer-equal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/buffers/tsconfig.json b/buffers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/buffers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bufferstream/tsconfig.json b/bufferstream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bufferstream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bugsnag/tsconfig.json b/bugsnag/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bugsnag/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bull/tsconfig.json b/bull/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bull/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bunyan-logentries/tsconfig.json b/bunyan-logentries/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bunyan-logentries/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bunyan-prettystream/tsconfig.json b/bunyan-prettystream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bunyan-prettystream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bunyan/tsconfig.json b/bunyan/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bunyan/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/business-rules-engine/tsconfig.json b/business-rules-engine/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/business-rules-engine/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/byline/tsconfig.json b/byline/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/byline/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bytebuffer/tsconfig.json b/bytebuffer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bytebuffer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/bytes/tsconfig.json b/bytes/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/bytes/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/c3/tsconfig.json b/c3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/c3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cal-heatmap/tsconfig.json b/cal-heatmap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cal-heatmap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/callsite/tsconfig.json b/callsite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/callsite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/calq/tsconfig.json b/calq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/calq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/camel-case/tsconfig.json b/camel-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/camel-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/camelcase/tsconfig.json b/camelcase/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/camelcase/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/camljs/tsconfig.json b/camljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/camljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/camo/tsconfig.json b/camo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/camo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/canvasjs/tsconfig.json b/canvasjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/canvasjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/casperjs/tsconfig.json b/casperjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/casperjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-as-promised/chai-as-promised.d.ts b/chai-as-promised/chai-as-promised.d.ts index 91a46f9033..6b2882b338 100644 --- a/chai-as-promised/chai-as-promised.d.ts +++ b/chai-as-promised/chai-as-promised.d.ts @@ -36,6 +36,7 @@ declare namespace Chai { // From chai not: PromisedAssertion; deep: PromisedDeep; + all: PromisedKeyFilter; a: PromisedTypeComparison; an: PromisedTypeComparison; include: PromisedInclude; @@ -129,6 +130,10 @@ declare namespace Chai { property: PromisedProperty; } + interface PromisedKeyFilter { + keys: PromisedKeys; + } + interface PromisedEqual { (value: any, message?: string): PromisedAssertion; } @@ -151,6 +156,7 @@ declare namespace Chai { (value: number, message?: string): PromisedAssertion; keys: PromisedKeys; members: PromisedMembers; + all: PromisedKeyFilter; } interface PromisedKeys { diff --git a/chai-as-promised/tsconfig.json b/chai-as-promised/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-as-promised/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-datetime/tsconfig.json b/chai-datetime/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-datetime/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-fuzzy/tsconfig.json b/chai-fuzzy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-fuzzy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-http/tsconfig.json b/chai-http/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-http/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-jquery/tsconfig.json b/chai-jquery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-jquery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-string/tsconfig.json b/chai-string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-subset/tsconfig.json b/chai-subset/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-subset/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai-things/tsconfig.json b/chai-things/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai-things/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chai/tsconfig.json b/chai/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chai/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chalk/tsconfig.json b/chalk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chalk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chance/tsconfig.json b/chance/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chance/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/change-case/tsconfig.json b/change-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/change-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chartist/tsconfig.json b/chartist/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chartist/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chartjs/tsconfig.json b/chartjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chartjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/checksum/tsconfig.json b/checksum/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/checksum/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cheerio/tsconfig.json b/cheerio/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cheerio/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chocolatechipjs/tsconfig.json b/chocolatechipjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chocolatechipjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chokidar/tsconfig.json b/chokidar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chokidar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chosen/tsconfig.json b/chosen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chosen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chroma-js/tsconfig.json b/chroma-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chroma-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chrome/tsconfig.json b/chrome/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chrome/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/chui/tsconfig.json b/chui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/chui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/circular-json/tsconfig.json b/circular-json/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/circular-json/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ckeditor/tsconfig.json b/ckeditor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ckeditor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/classnames/tsconfig.json b/classnames/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/classnames/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cldrjs/tsconfig.json b/cldrjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cldrjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/clean-css/tsconfig.json b/clean-css/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/clean-css/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cli-color/tsconfig.json b/cli-color/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cli-color/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cli/tsconfig.json b/cli/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cli/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/clipboard/tsconfig.json b/clipboard/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/clipboard/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/clone/tsconfig.json b/clone/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/clone/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/closure-compiler/tsconfig.json b/closure-compiler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/closure-compiler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/codemirror/codemirror.d.ts b/codemirror/codemirror.d.ts index 6196d015c6..bade422821 100644 --- a/codemirror/codemirror.d.ts +++ b/codemirror/codemirror.d.ts @@ -1063,6 +1063,12 @@ declare namespace CodeMirror { */ function defineMode(id: string, modefactory: ModeFactory): void; + /** + * id will be the id for the defined mode. Typically, you should use this second argument to defineMode as your module scope function + * (modes should not leak anything into the global scope!), i.e. write your whole mode inside this function. + */ + function defineMode(id: string, modefactory: ModeFactory): void; + /** * The first argument is a configuration object as passed to the mode constructor function, and the second argument * is a mode specification as in the EditorConfiguration mode option. diff --git a/codemirror/tsconfig.json b/codemirror/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/codemirror/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/coffeeify/tsconfig.json b/coffeeify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/coffeeify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/colorbrewer/tsconfig.json b/colorbrewer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/colorbrewer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/colors/colors.d.ts b/colors/colors.d.ts index cc6b307c03..07c4c19e06 100644 --- a/colors/colors.d.ts +++ b/colors/colors.d.ts @@ -41,6 +41,7 @@ declare module "colors" { america: Color; trap: Color; random: Color; + zalgo: Color; } namespace e { diff --git a/colors/tsconfig.json b/colors/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/colors/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cometd/tsconfig.json b/cometd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cometd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/commander/tsconfig.json b/commander/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/commander/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/commonmark/tsconfig.json b/commonmark/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/commonmark/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/compare-version/tsconfig.json b/compare-version/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/compare-version/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/complex/tsconfig.json b/complex/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/complex/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/compose-function/tsconfig.json b/compose-function/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/compose-function/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/compression/tsconfig.json b/compression/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/compression/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/confidence/tsconfig.json b/confidence/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/confidence/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/config/tsconfig.json b/config/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/config/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/configstore/tsconfig.json b/configstore/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/configstore/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-flash/tsconfig.json b/connect-flash/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-flash/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-livereload/tsconfig.json b/connect-livereload/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-livereload/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-modrewrite/tsconfig.json b/connect-modrewrite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-modrewrite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-mongo/tsconfig.json b/connect-mongo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-mongo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-slashes/tsconfig.json b/connect-slashes/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-slashes/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect-timeout/tsconfig.json b/connect-timeout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect-timeout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/connect/tsconfig.json b/connect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/connect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/console-stamp/tsconfig.json b/console-stamp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/console-stamp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/consolidate/tsconfig.json b/consolidate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/consolidate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/constant-case/tsconfig.json b/constant-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/constant-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/consul/tsconfig.json b/consul/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/consul/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/content-type/tsconfig.json b/content-type/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/content-type/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/contentful-resolve-response/tsconfig.json b/contentful-resolve-response/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/contentful-resolve-response/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/contextjs/tsconfig.json b/contextjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/contextjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/convert-source-map/tsconfig.json b/convert-source-map/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/convert-source-map/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/convict/tsconfig.json b/convict/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/convict/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cookie-parser/tsconfig.json b/cookie-parser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cookie-parser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cookie-session/tsconfig.json b/cookie-session/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cookie-session/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cookie/tsconfig.json b/cookie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cookie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cookiejs/tsconfig.json b/cookiejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cookiejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cookies/tsconfig.json b/cookies/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cookies/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/copy-paste/tsconfig.json b/copy-paste/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/copy-paste/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-ionic/tsconfig.json b/cordova-ionic/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-ionic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-app-version/tsconfig.json b/cordova-plugin-app-version/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-app-version/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-background-mode/tsconfig.json b/cordova-plugin-background-mode/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-background-mode/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-email-composer/tsconfig.json b/cordova-plugin-email-composer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-email-composer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-ibeacon/tsconfig.json b/cordova-plugin-ibeacon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-ibeacon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-insomnia/tsconfig.json b/cordova-plugin-insomnia/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-insomnia/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-mapsforge/tsconfig.json b/cordova-plugin-mapsforge/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-mapsforge/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-ms-adal/tsconfig.json b/cordova-plugin-ms-adal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-ms-adal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-ouralabs/tsconfig.json b/cordova-plugin-ouralabs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-ouralabs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-qrscanner/tsconfig.json b/cordova-plugin-qrscanner/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-qrscanner/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-spinner/tsconfig.json b/cordova-plugin-spinner/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-spinner/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova-plugin-x-socialsharing/tsconfig.json b/cordova-plugin-x-socialsharing/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova-plugin-x-socialsharing/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordova/tsconfig.json b/cordova/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordova/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cordovarduino/tsconfig.json b/cordovarduino/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cordovarduino/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/core-decorators/tsconfig.json b/core-decorators/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/core-decorators/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/core-js/tsconfig.json b/core-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/core-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cors/tsconfig.json b/cors/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cors/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/couchbase/tsconfig.json b/couchbase/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/couchbase/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cradle/tsconfig.json b/cradle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cradle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/create-error/tsconfig.json b/create-error/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/create-error/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/createjs-lib/tsconfig.json b/createjs-lib/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/createjs-lib/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/createjs/tsconfig.json b/createjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/createjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/credential/tsconfig.json b/credential/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/credential/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cron/tsconfig.json b/cron/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cron/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cropperjs/tsconfig.json b/cropperjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cropperjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cross-storage/tsconfig.json b/cross-storage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cross-storage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/crossfilter/tsconfig.json b/crossfilter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/crossfilter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/crossroads/tsconfig.json b/crossroads/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/crossroads/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/crypto-js/tsconfig.json b/crypto-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/crypto-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cryptojs/tsconfig.json b/cryptojs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cryptojs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cson/tsconfig.json b/cson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/css/tsconfig.json b/css/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/css/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/csurf/tsconfig.json b/csurf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/csurf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/csv-stringify/tsconfig.json b/csv-stringify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/csv-stringify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cucumber/tsconfig.json b/cucumber/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cucumber/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/cuid/tsconfig.json b/cuid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/cuid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/custom-error-generator/tsconfig.json b/custom-error-generator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/custom-error-generator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/d3-dsv/tsconfig.json b/d3-dsv/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/d3-dsv/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/d3.cloud.layout/tsconfig.json b/d3.cloud.layout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/d3.cloud.layout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/d3/tsconfig.json b/d3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/d3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dagre-d3/tsconfig.json b/dagre-d3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dagre-d3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dagre/tsconfig.json b/dagre/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dagre/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dat-gui/tsconfig.json b/dat-gui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dat-gui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/data-driven/tsconfig.json b/data-driven/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/data-driven/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/datatables-buttons/tsconfig.json b/datatables-buttons/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/datatables-buttons/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/date.format.js/tsconfig.json b/date.format.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/date.format.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/datejs/tsconfig.json b/datejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/datejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dc/tsconfig.json b/dc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/debounce/tsconfig.json b/debounce/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/debounce/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/debug/tsconfig.json b/debug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/debug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/decamelize/tsconfig.json b/decamelize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/decamelize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/decimal.js/tsconfig.json b/decimal.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/decimal.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/decorum/tsconfig.json b/decorum/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/decorum/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/deep-diff/tsconfig.json b/deep-diff/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/deep-diff/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/deep-equal/tsconfig.json b/deep-equal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/deep-equal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/deep-extend/tsconfig.json b/deep-extend/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/deep-extend/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/deep-freeze/tsconfig.json b/deep-freeze/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/deep-freeze/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/del/tsconfig.json b/del/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/del/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/denodeify/tsconfig.json b/denodeify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/denodeify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/depd/tsconfig.json b/depd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/depd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/deployJava/tsconfig.json b/deployJava/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/deployJava/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/detect-indent/tsconfig.json b/detect-indent/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/detect-indent/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/devexpress-web/tsconfig.json b/devexpress-web/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/devexpress-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/devextreme/tsconfig.json b/devextreme/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/devextreme/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dexie/tsconfig.json b/dexie/tsconfig.json index 4ec77382dc..ac08134cd7 100644 --- a/dexie/tsconfig.json +++ b/dexie/tsconfig.json @@ -1,10 +1,9 @@ { "compilerOptions": { - "module": "es6", - "target": "es6", + "module": "commonjs", + "target": "es2015", "noImplicitAny": true, - "removeComments": false, - "sourceMap": true, - "outDir": "out/ts" + "strictNullChecks": true, + "baseUrl": "../" } } \ No newline at end of file diff --git a/dhtmlxgantt/tsconfig.json b/dhtmlxgantt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dhtmlxgantt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dhtmlxscheduler/tsconfig.json b/dhtmlxscheduler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dhtmlxscheduler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/di-lite/tsconfig.json b/di-lite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/di-lite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/diff-match-patch/tsconfig.json b/diff-match-patch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/diff-match-patch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/diff/tsconfig.json b/diff/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/diff/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/docCookies/tsconfig.json b/docCookies/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/docCookies/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dock-spawn/tsconfig.json b/dock-spawn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dock-spawn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/docopt/tsconfig.json b/docopt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/docopt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/documentdb-server/tsconfig.json b/documentdb-server/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/documentdb-server/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/documentdb/tsconfig.json b/documentdb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/documentdb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dojo/tsconfig.json b/dojo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dojo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dom4/tsconfig.json b/dom4/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dom4/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/domo/tsconfig.json b/domo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/domo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dompurify/tsconfig.json b/dompurify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dompurify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/domready/tsconfig.json b/domready/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/domready/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/donna/tsconfig.json b/donna/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/donna/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dot-case/tsconfig.json b/dot-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dot-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dot-prop/tsconfig.json b/dot-prop/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dot-prop/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dot/tsconfig.json b/dot/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dot/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dotdotdot/tsconfig.json b/dotdotdot/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dotdotdot/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dotenv/tsconfig.json b/dotenv/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dotenv/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/doublearray/tsconfig.json b/doublearray/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/doublearray/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/draft-js/tsconfig.json b/draft-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/draft-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dragula/tsconfig.json b/dragula/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dragula/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/drop/tsconfig.json b/drop/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/drop/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dropboxjs/tsconfig.json b/dropboxjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dropboxjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dropzone/tsconfig.json b/dropzone/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dropzone/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dsv/tsconfig.json b/dsv/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dsv/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dts-bundle/tsconfig.json b/dts-bundle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dts-bundle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/durandal/tsconfig.json b/durandal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/durandal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dustjs-linkedin/tsconfig.json b/dustjs-linkedin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dustjs-linkedin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dw-bxslider-4/tsconfig.json b/dw-bxslider-4/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dw-bxslider-4/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dymo-label-framework/tsconfig.json b/dymo-label-framework/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dymo-label-framework/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/dynatable/tsconfig.json b/dynatable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/dynatable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/each/tsconfig.json b/each/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/each/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easeljs/tsconfig.json b/easeljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easeljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-api-request/tsconfig.json b/easy-api-request/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-api-request/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-jsend/tsconfig.json b/easy-jsend/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-jsend/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-session/tsconfig.json b/easy-session/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-session/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-table/tsconfig.json b/easy-table/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-table/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-x-headers/tsconfig.json b/easy-x-headers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-x-headers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-xapi-supertest/tsconfig.json b/easy-xapi-supertest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-xapi-supertest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-xapi-utils/tsconfig.json b/easy-xapi-utils/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-xapi-utils/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easy-xapi/tsconfig.json b/easy-xapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easy-xapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/easystarjs/tsconfig.json b/easystarjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/easystarjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/egg.js/tsconfig.json b/egg.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/egg.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ejs-locals/tsconfig.json b/ejs-locals/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ejs-locals/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ejs/tsconfig.json b/ejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/electron-builder/tsconfig.json b/electron-builder/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/electron-builder/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/electron-json-storage/tsconfig.json b/electron-json-storage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/electron-json-storage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/electron-packager/tsconfig.json b/electron-packager/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/electron-packager/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/electron-window-state/tsconfig.json b/electron-window-state/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/electron-window-state/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/electron/github-electron-main-tests.ts b/electron/github-electron-main-tests.ts index 1366a82022..27d6599596 100644 --- a/electron/github-electron-main-tests.ts +++ b/electron/github-electron-main-tests.ts @@ -65,7 +65,7 @@ app.on('ready', () => { mainWindow.webContents.openDevTools(); mainWindow.webContents.toggleDevTools(); - mainWindow.webContents.openDevTools({detach: true}); + mainWindow.webContents.openDevTools({mode: 'detach'}); mainWindow.webContents.closeDevTools(); mainWindow.webContents.addWorkSpace('/path/to/workspace'); mainWindow.webContents.removeWorkSpace('/path/to/workspace'); @@ -337,6 +337,9 @@ win.on('closed', () => { win.loadURL('https://github.com'); win.show(); +var toolbarRect = document.getElementById('toolbar').getBoundingClientRect(); +win.setSheetOffset(toolbarRect.height); + // content-tracing // https://github.com/atom/electron/blob/master/docs/api/content-tracing.md @@ -517,12 +520,20 @@ var template = [ { label: 'Reload', accelerator: 'Command+R', - click: () => { BrowserWindow.getFocusedWindow().webContents.reloadIgnoringCache(); } + click: (item, focusedWindow) => { + if (focusedWindow) { + focusedWindow.webContents.reloadIgnoringCache(); + } + } }, { label: 'Toggle DevTools', accelerator: 'Alt+Command+I', - click: () => { BrowserWindow.getFocusedWindow().webContents.toggleDevTools(); } + click: (item, focusedWindow) => { + if (focusedWindow) { + focusedWindow.webContents.toggleDevTools(); + } + } } ] }, @@ -703,6 +714,18 @@ var image = clipboard.readImage(); var appIcon3 = new Tray(image); var appIcon4 = new Tray('/Users/somebody/images/icon.png'); +// process +// https://github.com/electron/electron/blob/master/docs/api/process.md + +console.log(process.type); +console.log(process.resourcesPath); +console.log(process.mas); +console.log(process.windowsStore); +process.noAsar = true; +process.crash(); +process.hang(); +process.setFdLimit(8192); + // screen // https://github.com/atom/electron/blob/master/docs/api/screen.md diff --git a/electron/github-electron-renderer-tests.ts b/electron/github-electron-renderer-tests.ts index 37faae9dbb..42d034c5c7 100644 --- a/electron/github-electron-renderer-tests.ts +++ b/electron/github-electron-renderer-tests.ts @@ -171,6 +171,16 @@ var image = clipboard.readImage(); var appIcon3 = new Tray(image); var appIcon4 = new Tray('/Users/somebody/images/icon.png'); +// https://github.com/electron/electron/blob/master/docs/api/process.md + +// preload.js +var _setImmediate = setImmediate; +var _clearImmediate = clearImmediate; +process.once('loaded', function() { + global.setImmediate = _setImmediate; + global.clearImmediate = _clearImmediate; +}); + // screen // https://github.com/atom/electron/blob/master/docs/api/screen.md diff --git a/electron/github-electron.d.ts b/electron/github-electron.d.ts index ec53909d50..3d4bd89835 100644 --- a/electron/github-electron.d.ts +++ b/electron/github-electron.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Electron v0.37.6 +// Type definitions for Electron v0.37.7 // Project: http://electron.atom.io/ // Definitions by: jedmao , rhysd , Milan Burda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -297,6 +297,14 @@ declare namespace Electron { * Note: This is only implemented on OS X. */ isDarkMode(): boolean; + /** + * Imports the certificate in pkcs12 format into the platform certificate store. + * @param callback Called with the result of import operation, a value of 0 indicates success + * while any other value indicates failure according to chromium net_error_list. + * + * Note: This API is only available on Linux. + */ + importCertificate(options: ImportCertificateOptions, callback: (result: number) => void): void; commandLine: CommandLine; /** * Note: This API is only available on Mac. @@ -306,6 +314,17 @@ declare namespace Electron { type AppPathName = 'home'|'appData'|'userData'|'temp'|'exe'|'module'|'desktop'|'documents'|'downloads'|'music'|'pictures'|'videos'; + interface ImportCertificateOptions { + /** + * Path for the pkcs12 file. + */ + certificate: string; + /** + * Passphrase for the certificate. + */ + password: string; + } + interface CommandLine { /** * Append a switch [with optional value] to Chromium's command line. @@ -814,6 +833,11 @@ declare namespace Electron { * @returns The title of the native window. */ getTitle(): string; + /** + * Changes the attachment point for sheets on Mac OS X. + * Note: This API is available only on OS X. + */ + setSheetOffset(offset: number): void; /** * Starts or stops flashing the window to attract user's attention. */ @@ -2419,7 +2443,7 @@ declare namespace Electron { /** * The screen module retrieves information about screen size, displays, cursor position, etc. - * You should not use this module until the ready event of the app module is emitted. + * You can not use this module until the ready event of the app module is emitted. */ interface Screen extends NodeJS.EventEmitter { /** @@ -2547,7 +2571,7 @@ declare namespace Electron { webRequest: WebRequest; } - type Permission = 'media' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen'; + type Permission = 'media' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal'; interface ClearStorageDataOptions { /** @@ -3253,6 +3277,10 @@ declare namespace Electron { * @returns Whether web page is still loading resources. */ isLoading(): boolean; + /** + * @returns Whether the main frame (and not just iframes or frames within it) is still loading. + */ + isLoadingMainFrame(): boolean; /** * @returns Whether web page is waiting for a first-response for the main * resource of the page. @@ -3420,9 +3448,9 @@ declare namespace Electron { */ openDevTools(options?: { /** - * Opens devtools in a new window. + * Opens the devtools with specified dock state. Defaults to last used dock state. */ - detach?: boolean; + mode?: 'right' | 'bottom' | 'undocked' | 'detach' }): void; /** * Closes the developer tools. @@ -4234,7 +4262,7 @@ declare namespace Electron { * Emitted when a page's theme color changes. This is usually due to encountering a meta tag: * */ - addEventListener(type: 'did-change-theme-color', listener: (event: WebViewElement.Event) => void, useCapture?: boolean): void; + addEventListener(type: 'did-change-theme-color', listener: (event: WebViewElement.DidChangeThemeColorEvent) => void, useCapture?: boolean): void; /** * Emitted when DevTools is opened. */ @@ -4330,6 +4358,10 @@ declare namespace Electron { name: string; version: string; } + + interface DidChangeThemeColorEvent extends Event { + themeColor: string; + } } /** @@ -4424,6 +4456,54 @@ interface File { path: string; } +// https://github.com/electron/electron/blob/master/docs/api/process.md + +declare namespace NodeJS { + interface Process { + /** + * Process's type + */ + type: 'browser' | 'renderer'; + /** + * Path to JavaScript source code. + */ + resourcesPath: string; + /** + * For Mac App Store build, this value is true, for other builds it is undefined. + */ + mas?: boolean; + /** + * If the app is running as a Windows Store app (appx), this value is true, for other builds it is undefined. + */ + windowsStore?: boolean; + /** + * Emitted when Electron has loaded its internal initialization script + * and is beginning to load the web page or the main script. + */ + on(event: 'loaded', listener: Function): this; + on(event: string, listener: Function): this; + /** + * Setting this to true can disable the support for asar archives in Node's built-in modules. + */ + noAsar?: boolean; + /** + * Causes the main thread of the current process crash; + */ + crash(): void; + /** + * Causes the main thread of the current process hang. + */ + hang(): void; + /** + * Sets the file descriptor soft limit to maxDescriptors or the OS hard limit, + * whichever is lower for the current process. + * + * Note: This API is only available on Mac and Linux. + */ + setFdLimit(maxDescriptors: number): void; + } +} + declare module 'electron' { var electron: Electron.ElectronMainAndRenderer; export = electron; diff --git a/electron/tsconfig.json b/electron/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/electron/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/element-resize-event/tsconfig.json b/element-resize-event/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/element-resize-event/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/elm/tsconfig.json b/elm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/elm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/email-addresses/tsconfig.json b/email-addresses/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/email-addresses/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/email-templates/tsconfig.json b/email-templates/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/email-templates/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/email-validator/tsconfig.json b/email-validator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/email-validator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ember/tsconfig.json b/ember/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ember/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/emissary/tsconfig.json b/emissary/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/emissary/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/empower/tsconfig.json b/empower/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/empower/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/emscripten/tsconfig.json b/emscripten/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/emscripten/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/encoding-japanese/tsconfig.json b/encoding-japanese/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/encoding-japanese/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/envify/tsconfig.json b/envify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/envify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/enzyme/tsconfig.json b/enzyme/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/enzyme/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/eonasdan-bootstrap-datetimepicker/tsconfig.json b/eonasdan-bootstrap-datetimepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/eonasdan-bootstrap-datetimepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/epiceditor/tsconfig.json b/epiceditor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/epiceditor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/eq.js/tsconfig.json b/eq.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/eq.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/error-stack-parser/tsconfig.json b/error-stack-parser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/error-stack-parser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/errorhandler/tsconfig.json b/errorhandler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/errorhandler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/es6-collections/tsconfig.json b/es6-collections/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/es6-collections/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/es6-promise/es6-promise-tests.ts b/es6-promise/es6-promise-tests.ts index ac4f92d3d5..ee88cbc96f 100644 --- a/es6-promise/es6-promise-tests.ts +++ b/es6-promise/es6-promise-tests.ts @@ -80,9 +80,8 @@ promiseNumber = catchWithSimpleResult; var catchWithPromiseResult = promiseString.catch(error => Promise.resolve(10)); promiseNumber = catchWithPromiseResult; -promiseString = promiseString.catch(function () { +promiseString = promiseString.catch(function (): string { throw new Error('Better error msg'); - return null; }); //examples coming from http://www.html5rocks.com/en/tutorials/es6/promises/ diff --git a/es6-promise/es6-promise.d.ts b/es6-promise/es6-promise.d.ts index ec0c222385..001330fd24 100644 --- a/es6-promise/es6-promise.d.ts +++ b/es6-promise/es6-promise.d.ts @@ -58,7 +58,16 @@ declare namespace Promise { * the array passed to all can be a mixture of promise-like objects and other objects. * The fulfillment value is an array (in order) of fulfillment values. The rejection value is the first rejection value. */ - function all(promises: (T | Thenable)[]): Promise; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable, T10 | Thenable]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable]): Promise<[T1, T2, T3, T4, T5, T6]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable]): Promise<[T1, T2, T3, T4, T5]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable ]): Promise<[T1, T2, T3, T4]>; + function all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable]): Promise<[T1, T2, T3]>; + function all(values: [T1 | Thenable, T2 | Thenable]): Promise<[T1, T2]>; + function all(values: (T | Thenable)[]): Promise; /** * Make a Promise that fulfills when any item fulfills, and rejects if any item rejects. diff --git a/es6-promise/tsconfig.json b/es6-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/es6-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/es6-shim/tsconfig.json b/es6-shim/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/es6-shim/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/escape-html/tsconfig.json b/escape-html/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/escape-html/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/escape-latex/tsconfig.json b/escape-latex/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/escape-latex/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/escape-string-regexp/tsconfig.json b/escape-string-regexp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/escape-string-regexp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/esprima/tsconfig.json b/esprima/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/esprima/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/estree/tsconfig.json b/estree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/estree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/evaporate/tsconfig.json b/evaporate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/evaporate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/event-kit/tsconfig.json b/event-kit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/event-kit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/event-loop-lag/tsconfig.json b/event-loop-lag/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/event-loop-lag/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/event-stream/tsconfig.json b/event-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/event-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/eventemitter2/tsconfig.json b/eventemitter2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/eventemitter2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/eventemitter3/tsconfig.json b/eventemitter3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/eventemitter3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/evernote/tsconfig.json b/evernote/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/evernote/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/exit/tsconfig.json b/exit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/exit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/expect.js/tsconfig.json b/expect.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/expect.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/expect/tsconfig.json b/expect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/expect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/expectations/tsconfig.json b/expectations/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/expectations/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-brute-memcached/tsconfig.json b/express-brute-memcached/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-brute-memcached/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-brute-mongo/tsconfig.json b/express-brute-mongo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-brute-mongo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-brute/tsconfig.json b/express-brute/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-brute/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-debug/tsconfig.json b/express-debug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-debug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-graphql/tsconfig.json b/express-graphql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-graphql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-handlebars/tsconfig.json b/express-handlebars/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-handlebars/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-jwt/tsconfig.json b/express-jwt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-jwt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-less/tsconfig.json b/express-less/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-less/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-minify/tsconfig.json b/express-minify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-minify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-myconnection/tsconfig.json b/express-myconnection/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-myconnection/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-openapi/tsconfig.json b/express-openapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-openapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-partials/tsconfig.json b/express-partials/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-partials/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-route-fs/tsconfig.json b/express-route-fs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-route-fs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-serve-static-core/tsconfig.json b/express-serve-static-core/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-serve-static-core/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-session/tsconfig.json b/express-session/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-session/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-unless/tsconfig.json b/express-unless/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-unless/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-useragent/tsconfig.json b/express-useragent/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-useragent/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express-validator/tsconfig.json b/express-validator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express-validator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/express/tsconfig.json b/express/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/express/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/extend/tsconfig.json b/extend/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/extend/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/extended-listbox/tsconfig.json b/extended-listbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/extended-listbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/extjs/tsconfig.json b/extjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/extjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/eyes/tsconfig.json b/eyes/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/eyes/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fabric/tsconfig.json b/fabric/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fabric/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/facebook-js-sdk/tsconfig.json b/facebook-js-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/facebook-js-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/facebook-pixel/tsconfig.json b/facebook-pixel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/facebook-pixel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/faker/tsconfig.json b/faker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/faker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/falcor-express/tsconfig.json b/falcor-express/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/falcor-express/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/falcor-http-datasource/tsconfig.json b/falcor-http-datasource/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/falcor-http-datasource/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/falcor-json-graph/tsconfig.json b/falcor-json-graph/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/falcor-json-graph/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/falcor-router/tsconfig.json b/falcor-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/falcor-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/falcor/tsconfig.json b/falcor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/falcor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/famous/tsconfig.json b/famous/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/famous/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fancybox/tsconfig.json b/fancybox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fancybox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/farbtastic/tsconfig.json b/farbtastic/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/farbtastic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fast-stats/tsconfig.json b/fast-stats/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fast-stats/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fastclick/tsconfig.json b/fastclick/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fastclick/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/favico.js/tsconfig.json b/favico.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/favico.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fb/tsconfig.json b/fb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fbemitter/tsconfig.json b/fbemitter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fbemitter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/featherlight/tsconfig.json b/featherlight/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/featherlight/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ffi/tsconfig.json b/ffi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ffi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fhir/tsconfig.json b/fhir/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fhir/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fibers/tsconfig.json b/fibers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fibers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/field/tsconfig.json b/field/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/field/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/file-url/tsconfig.json b/file-url/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/file-url/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/filesize/tsconfig.json b/filesize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/filesize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/filesystem/tsconfig.json b/filesystem/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/filesystem/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/filewriter/tsconfig.json b/filewriter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/filewriter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/finalhandler/tsconfig.json b/finalhandler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/finalhandler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/findup-sync/tsconfig.json b/findup-sync/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/findup-sync/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fingerprintjs/tsconfig.json b/fingerprintjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fingerprintjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/firebase-client/tsconfig.json b/firebase-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/firebase-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/firebase-token-generator/tsconfig.json b/firebase-token-generator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/firebase-token-generator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/firebase/tsconfig.json b/firebase/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/firebase/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/firefox/tsconfig.json b/firefox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/firefox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/first-mate/tsconfig.json b/first-mate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/first-mate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fixed-data-table/fixed-data-table.d.ts b/fixed-data-table/fixed-data-table.d.ts index e4bc79ff51..dcc188e5ba 100644 --- a/fixed-data-table/fixed-data-table.d.ts +++ b/fixed-data-table/fixed-data-table.d.ts @@ -398,7 +398,7 @@ declare namespace FixedDataTable { /** * Component that defines the attributes of a table column group. */ - export interface ColumnGroupProps { + export interface ColumnGroupProps extends __React.Props { /** * The horizontal alignment of the table cell content. * 'left', 'center', 'right' diff --git a/fixed-data-table/tsconfig.json b/fixed-data-table/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fixed-data-table/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flake-idgen/tsconfig.json b/flake-idgen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flake-idgen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flat/tsconfig.json b/flat/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flat/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flexSlider/tsconfig.json b/flexSlider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flexSlider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flickity/tsconfig.json b/flickity/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flickity/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flight/tsconfig.json b/flight/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flight/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flightplan/tsconfig.json b/flightplan/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flightplan/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flipsnap/tsconfig.json b/flipsnap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flipsnap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flot/tsconfig.json b/flot/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flot/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flowjs/tsconfig.json b/flowjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flowjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flux-standard-action/tsconfig.json b/flux-standard-action/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flux-standard-action/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/flux/tsconfig.json b/flux/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/flux/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fluxxor/tsconfig.json b/fluxxor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fluxxor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fontoxml/tsconfig.json b/fontoxml/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fontoxml/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/forge-di/tsconfig.json b/forge-di/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/forge-di/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/form-data/tsconfig.json b/form-data/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/form-data/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/form-serializer/tsconfig.json b/form-serializer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/form-serializer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/format-unicorn/tsconfig.json b/format-unicorn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/format-unicorn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/formidable/tsconfig.json b/formidable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/formidable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/foundation-sites/tsconfig.json b/foundation-sites/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/foundation-sites/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/foundation/tsconfig.json b/foundation/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/foundation/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fpsmeter/tsconfig.json b/fpsmeter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fpsmeter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/freedom/tsconfig.json b/freedom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/freedom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/freeport/tsconfig.json b/freeport/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/freeport/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/from/tsconfig.json b/from/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/from/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fromjs/tsconfig.json b/fromjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fromjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fromnow/tsconfig.json b/fromnow/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fromnow/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fs-ext/tsconfig.json b/fs-ext/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fs-ext/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fs-extra-promise/tsconfig.json b/fs-extra-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fs-extra-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fs-extra/tsconfig.json b/fs-extra/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fs-extra/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fs-finder/tsconfig.json b/fs-finder/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fs-finder/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fs-mock/tsconfig.json b/fs-mock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fs-mock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ftdomdelegate/tsconfig.json b/ftdomdelegate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ftdomdelegate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ftp/tsconfig.json b/ftp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ftp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ftpd/tsconfig.json b/ftpd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ftpd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fullCalendar/tsconfig.json b/fullCalendar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fullCalendar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fullname/tsconfig.json b/fullname/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fullname/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/fuse/tsconfig.json b/fuse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/fuse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gae.channel.api/tsconfig.json b/gae.channel.api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gae.channel.api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gamepad/tsconfig.json b/gamepad/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gamepad/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gamequery/tsconfig.json b/gamequery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gamequery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gandi-livedns/tsconfig.json b/gandi-livedns/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gandi-livedns/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.auth2/tsconfig.json b/gapi.auth2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.auth2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.pagespeedonline/tsconfig.json b/gapi.pagespeedonline/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.pagespeedonline/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.translate/tsconfig.json b/gapi.translate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.translate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.urlshortener/tsconfig.json b/gapi.urlshortener/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.urlshortener/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.youtube/tsconfig.json b/gapi.youtube/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.youtube/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi.youtubeAnalytics/tsconfig.json b/gapi.youtubeAnalytics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi.youtubeAnalytics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gapi/tsconfig.json b/gapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gently/tsconfig.json b/gently/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gently/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/geoip-lite/tsconfig.json b/geoip-lite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/geoip-lite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/geojson/tsconfig.json b/geojson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/geojson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/geometry-dom/tsconfig.json b/geometry-dom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/geometry-dom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/giraffe/tsconfig.json b/giraffe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/giraffe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/git-config/tsconfig.json b/git-config/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/git-config/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/git/tsconfig.json b/git/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/git/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gl-matrix/tsconfig.json b/gl-matrix/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gl-matrix/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gldatepicker/tsconfig.json b/gldatepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gldatepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/glidejs/tsconfig.json b/glidejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/glidejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/glob-expand/tsconfig.json b/glob-expand/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/glob-expand/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/glob-stream/tsconfig.json b/glob-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/glob-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/glob/tsconfig.json b/glob/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/glob/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/globalize/tsconfig.json b/globalize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/globalize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gm/tsconfig.json b/gm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/go/tsconfig.json b/go/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/go/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google-apps-script/tsconfig.json b/google-apps-script/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google-apps-script/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google-closure-compiler/tsconfig.json b/google-closure-compiler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google-closure-compiler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google-drive-realtime-api/tsconfig.json b/google-drive-realtime-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google-drive-realtime-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google-maps/tsconfig.json b/google-maps/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google-maps/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google.analytics/tsconfig.json b/google.analytics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google.analytics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google.feeds/tsconfig.json b/google.feeds/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google.feeds/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google.geolocation/tsconfig.json b/google.geolocation/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google.geolocation/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google.picker/tsconfig.json b/google.picker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google.picker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/google.visualization/tsconfig.json b/google.visualization/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/google.visualization/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/googlemaps.infobubble/tsconfig.json b/googlemaps.infobubble/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/googlemaps.infobubble/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/googlemaps/tsconfig.json b/googlemaps/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/googlemaps/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/graceful-fs/tsconfig.json b/graceful-fs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/graceful-fs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/graham_scan/tsconfig.json b/graham_scan/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/graham_scan/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/graphene-pk11/tsconfig.json b/graphene-pk11/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/graphene-pk11/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/graphviz/tsconfig.json b/graphviz/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/graphviz/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gravatar/tsconfig.json b/gravatar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gravatar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/greasemonkey/tsconfig.json b/greasemonkey/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/greasemonkey/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/grecaptcha/tsconfig.json b/grecaptcha/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/grecaptcha/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/greensock/tsconfig.json b/greensock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/greensock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gridfs-stream/tsconfig.json b/gridfs-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gridfs-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gridstack/tsconfig.json b/gridstack/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gridstack/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/grunt/tsconfig.json b/grunt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/grunt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gsap/tsconfig.json b/gsap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gsap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-autoprefixer/tsconfig.json b/gulp-autoprefixer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-autoprefixer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-babel/tsconfig.json b/gulp-babel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-babel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-cached/tsconfig.json b/gulp-cached/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-cached/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-changed/tsconfig.json b/gulp-changed/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-changed/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-cheerio/tsconfig.json b/gulp-cheerio/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-cheerio/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-coffeeify/tsconfig.json b/gulp-coffeeify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-coffeeify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-coffeelint/tsconfig.json b/gulp-coffeelint/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-coffeelint/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-concat/tsconfig.json b/gulp-concat/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-concat/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-csso/tsconfig.json b/gulp-csso/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-csso/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-debug/tsconfig.json b/gulp-debug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-debug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-dtsm/tsconfig.json b/gulp-dtsm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-dtsm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-espower/tsconfig.json b/gulp-espower/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-espower/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-filter/tsconfig.json b/gulp-filter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-filter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-flatten/tsconfig.json b/gulp-flatten/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-flatten/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-gh-pages/tsconfig.json b/gulp-gh-pages/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-gh-pages/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-gzip/tsconfig.json b/gulp-gzip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-gzip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-help/tsconfig.json b/gulp-help/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-help/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-html-replace/tsconfig.json b/gulp-html-replace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-html-replace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-htmlmin/tsconfig.json b/gulp-htmlmin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-htmlmin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-if/tsconfig.json b/gulp-if/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-if/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-inject/tsconfig.json b/gulp-inject/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-inject/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-install/tsconfig.json b/gulp-install/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-install/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-istanbul/tsconfig.json b/gulp-istanbul/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-istanbul/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-jade/tsconfig.json b/gulp-jade/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-jade/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-jasmine-browser/tsconfig.json b/gulp-jasmine-browser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-jasmine-browser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-json-editor/tsconfig.json b/gulp-json-editor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-json-editor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-jspm/tsconfig.json b/gulp-jspm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-jspm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-less/tsconfig.json b/gulp-less/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-less/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-load-plugins/tsconfig.json b/gulp-load-plugins/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-load-plugins/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-minify-css/tsconfig.json b/gulp-minify-css/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-minify-css/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-minify-html/tsconfig.json b/gulp-minify-html/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-minify-html/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-mocha/tsconfig.json b/gulp-mocha/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-mocha/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-newer/tsconfig.json b/gulp-newer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-newer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-ng-annotate/tsconfig.json b/gulp-ng-annotate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-ng-annotate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-nodemon/tsconfig.json b/gulp-nodemon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-nodemon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-plumber/tsconfig.json b/gulp-plumber/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-plumber/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-protractor/tsconfig.json b/gulp-protractor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-protractor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-remember/tsconfig.json b/gulp-remember/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-remember/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-rename/tsconfig.json b/gulp-rename/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-rename/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-replace/tsconfig.json b/gulp-replace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-replace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-rev-replace/tsconfig.json b/gulp-rev-replace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-rev-replace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-rev/tsconfig.json b/gulp-rev/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-rev/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-ruby-sass/tsconfig.json b/gulp-ruby-sass/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-ruby-sass/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-sass/tsconfig.json b/gulp-sass/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-sass/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-shell/tsconfig.json b/gulp-shell/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-shell/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-size/tsconfig.json b/gulp-size/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-size/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-sort/tsconfig.json b/gulp-sort/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-sort/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-sourcemaps/tsconfig.json b/gulp-sourcemaps/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-sourcemaps/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-strip-debug/tsconfig.json b/gulp-strip-debug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-strip-debug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-svg-sprite/tsconfig.json b/gulp-svg-sprite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-svg-sprite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-task-listing/tsconfig.json b/gulp-task-listing/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-task-listing/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-tsd/tsconfig.json b/gulp-tsd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-tsd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-tslint/tsconfig.json b/gulp-tslint/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-tslint/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-typedoc/tsconfig.json b/gulp-typedoc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-typedoc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-typescript/tsconfig.json b/gulp-typescript/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-typescript/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-uglify/tsconfig.json b/gulp-uglify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-uglify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-useref/tsconfig.json b/gulp-useref/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-useref/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-util/tsconfig.json b/gulp-util/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-util/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp-watch/tsconfig.json b/gulp-watch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp-watch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/gulp/tsconfig.json b/gulp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/gulp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hammerjs/tsconfig.json b/hammerjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hammerjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/handlebars/tsconfig.json b/handlebars/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/handlebars/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/handsontable/handsontable-tests.ts b/handsontable/handsontable-tests.ts index 88cbe587af..25ec4dee0f 100644 --- a/handsontable/handsontable-tests.ts +++ b/handsontable/handsontable-tests.ts @@ -14,14 +14,17 @@ function test_HandsontableInit() { autoRowSize: true, autoWrapCol: true, autoWrapRow: true, + bindRowsWithHeaders: 'foo', cell: [], cells: function() {}, checkedTemplate: true, className: [], colHeaders: true, + collapsibleColumns: true, columnHeaderHeight: 123, columns: [], columnSorting: {}, + columnSummary: {}, colWidths: 123, commentedCellClassName: 'foo', comments: [], @@ -41,15 +44,24 @@ function test_HandsontableInit() { debug: true, defaultDate: 'foo', disableVisualSelection: true, + dropdownMenu: [], editor: true, enterBeginsEditing: true, enterMoves: {}, fillHandle: true, + filter: true, + filteringCaseSensitive: true, + filters: false, fixedColumnsLeft: 123, + fixedRowsBottom: 123, fixedRowsTop: 123, format: 'foo', fragmentSelection: true, + ganttChart: {}, + headerTooltips: true, height: 123, + hiddenColumns: true, + hiddenRows: {}, invalidCellClassName: 'foo', label: {}, language: 'foo', @@ -66,6 +78,7 @@ function test_HandsontableInit() { minSpareCols: 123, minSpareRows: 123, multiSelect: true, + nestedHeaders: [], noWordWrapClassName: 'foo', observeChanges: true, observeDOMVisibility: true, @@ -85,6 +98,7 @@ function test_HandsontableInit() { search: true, selectOptions: [], skipColumnOnPaste: true, + sortByRelevance: true, sortFunction: function() {}, sortIndicator: true, source: [], diff --git a/handsontable/handsontable.d.ts b/handsontable/handsontable.d.ts index 1af41e0125..9c7f87aaa3 100644 --- a/handsontable/handsontable.d.ts +++ b/handsontable/handsontable.d.ts @@ -16,14 +16,17 @@ declare namespace ht { autoRowSize?: Object|boolean; autoWrapCol?: boolean; autoWrapRow?: boolean; + bindRowsWithHeaders?: boolean|string; cell?: any[]; cells?: Function; checkedTemplate?: boolean|string; className?: string|any[]; colHeaders?: boolean|any[]|Function; + collapsibleColumns?: boolean|any[]; columnHeaderHeight?: number|any[]; columns?: any[]; columnSorting?: boolean|Object; + columnSummary?: Object; colWidths?: any[]|Function|number|string; commentedCellClassName?: string; comments?: boolean|any[]; @@ -43,15 +46,24 @@ declare namespace ht { debug?: boolean; defaultDate?: string; disableVisualSelection?: boolean|string|any[]; + dropdownMenu?: boolean|Object|any[]; editor?: string|Function|boolean; enterBeginsEditing?: boolean; enterMoves?: Object|Function; fillHandle?: boolean|string|Object; + filter?: boolean; + filteringCaseSensitive?: boolean; + filters?: boolean; fixedColumnsLeft?: number; + fixedRowsBottom?: number; fixedRowsTop?: number; format?: string; fragmentSelection?: boolean|string; + ganttChart?: Object; + headerTooltips?: boolean|Object; height?: number|Function; + hiddenColumns?: boolean|Object; + hiddenRows?: boolean|Object; invalidCellClassName?: string; label?: Object; language?: string; @@ -68,6 +80,7 @@ declare namespace ht { minSpareCols?: number; minSpareRows?: number; multiSelect?: boolean; + nestedHeaders?: any[]; noWordWrapClassName?: string; observeChanges?: boolean; observeDOMVisibility?: boolean; @@ -87,6 +100,7 @@ declare namespace ht { search?: boolean; selectOptions?: any[]; skipColumnOnPaste?: boolean; + sortByRelevance?: boolean; sortFunction?: Function; sortIndicator?: boolean; source?: any[]|Function; diff --git a/handsontable/tsconfig.json b/handsontable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/handsontable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index abd8de649f..9962dd6c62 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -8,721 +8,722 @@ /// +declare module "hapi" { + import http = require("http"); + import stream = require("stream"); + import Events = require("events"); + import url = require("url"); -import http = require("http"); -import stream = require("stream"); -import Events = require("events"); + interface IDictionary { + [key: string]: T; + } -interface IDictionary { - [key: string]: T; -} + interface IThenable { + then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => U | IThenable): IThenable; + then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => void): IThenable; + } -interface IThenable { - then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => U | IThenable): IThenable; - then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => void): IThenable; -} + interface IPromise extends IThenable { + then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => U | IThenable): IPromise; + then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => void): IPromise; + catch(onRejected?: (error: any) => U | IThenable): IPromise; + } -interface IPromise extends IThenable { - then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => U | IThenable): IPromise; - then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => void): IPromise; - catch(onRejected?: (error: any) => U | IThenable): IPromise; -} + export interface IHeaderOptions { + append?: boolean; + separator?: string; + override?: boolean; + duplicate?: boolean; + } -export interface IHeaderOptions { - append?: boolean; - separator?: string; - override?: boolean; - duplicate?: boolean; -} + /** Boom Module for errors. https://github.com/hapijs/boom + * boom provides a set of utilities for returning HTTP errors. Each utility returns a Boom error response object (instance of Error) which includes the following properties: */ + export interface IBoom extends Error { + /** if true, indicates this is a Boom object instance. */ + isBoom: boolean; + /** convenience bool indicating status code >= 500. */ + isServer: boolean; + /** the error message. */ + message: string; + /** the formatted response.Can be directly manipulated after object construction to return a custom error response.Allowed root keys: */ + output: { + /** the HTTP status code (typically 4xx or 5xx). */ + statusCode: number; + /** an object containing any HTTP headers where each key is a header name and value is the header content. */ + headers: IDictionary; + /** the formatted object used as the response payload (stringified).Can be directly manipulated but any changes will be lost if reformat() is called.Any content allowed and by default includes the following content: */ + payload: { + /** the HTTP status code, derived from error.output.statusCode. */ + statusCode: number; + /** the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from statusCode. */ + error: string; + /** the error message derived from error.message. */ + message: string; + }; + }; + /** reformat()rebuilds error.output using the other object properties. */ + reformat(): void; -/** Boom Module for errors. https://github.com/hapijs/boom - * boom provides a set of utilities for returning HTTP errors. Each utility returns a Boom error response object (instance of Error) which includes the following properties: */ -export interface IBoom extends Error { - /** if true, indicates this is a Boom object instance. */ - isBoom: boolean; - /** convenience bool indicating status code >= 500. */ - isServer: boolean; - /** the error message. */ - message: string; - /** the formatted response.Can be directly manipulated after object construction to return a custom error response.Allowed root keys: */ - output: { - /** the HTTP status code (typically 4xx or 5xx). */ - statusCode: number; - /** an object containing any HTTP headers where each key is a header name and value is the header content. */ - headers: IDictionary; - /** the formatted object used as the response payload (stringified).Can be directly manipulated but any changes will be lost if reformat() is called.Any content allowed and by default includes the following content: */ - payload: { - /** the HTTP status code, derived from error.output.statusCode. */ - statusCode: number; - /** the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from statusCode. */ - error: string; - /** the error message derived from error.message. */ - message: string; - }; - }; - /** reformat()rebuilds error.output using the other object properties. */ - reformat(): void; + } -} + /** cache functionality via the "CatBox" module. */ + export interface ICatBoxCacheOptions { + /** a prototype function or catbox engine object. */ + engine: any; + /** an identifier used later when provisioning or configuring caching for server methods or plugins. Each cache name must be unique. A single item may omit the name option which defines the default cache. If every cache includes a name, a default memory cache is provisions as well. */ + name?: string; + /** if true, allows multiple cache users to share the same segment (e.g. multiple methods using the same cache storage container). Default to false. */ + shared?: boolean; + } -/** cache functionality via the "CatBox" module. */ -export interface ICatBoxCacheOptions { - /** a prototype function or catbox engine object. */ - engine: any; - /** an identifier used later when provisioning or configuring caching for server methods or plugins. Each cache name must be unique. A single item may omit the name option which defines the default cache. If every cache includes a name, a default memory cache is provisions as well. */ - name?: string; - /** if true, allows multiple cache users to share the same segment (e.g. multiple methods using the same cache storage container). Default to false. */ - shared?: boolean; -} + /** Any connections configuration server defaults can be included to override and customize the individual connection. */ + export interface IServerConnectionOptions extends IConnectionConfigurationServerDefaults { + /** - the public hostname or IP address. Used only to set server.info.host and server.info.uri. If not configured, defaults to the operating system hostname and if not available, to 'localhost'.*/ + host?: string; + /** - sets the host name or IP address the connection will listen on.If not configured, defaults to host if present, otherwise to all available network interfaces (i.e. '0.0.0.0').Set to 127.0.0.1 or localhost to restrict connection to only those coming from the same machine.*/ + address?: string; + /** - the TCP port the connection will listen to.Defaults to an ephemeral port (0) which uses an available port when the server is started (and assigned to server.info.port).If port is a string containing a '/' character, it is used as a UNIX domain socket path and if it starts with '\.\pipe' as a Windows named pipe.*/ + port?: string | number; + /** - the full public URI without the path (e.g. 'http://example.com:8080').If present, used as the connection info.uri otherwise constructed from the connection settings.*/ + uri?: string; + /** - optional node.js HTTP (or HTTPS) http.Server object or any compatible object.If the listener needs to be manually started, set autoListen to false.If the listener uses TLS, set tls to true.*/ + listener?: any; + /** - indicates that the connection.listener will be started manually outside the framework.Cannot be specified with a port setting.Defaults to true.*/ + autoListen?: boolean; + /** caching headers configuration: */ + cache?: { + /** - an array of HTTP response status codes (e.g. 200) which are allowed to include a valid caching directive.Defaults to [200]. */ + statuses: number[]; + }; + /** - a string or string array of labels used to server.select() specific connections matching the specified labels.Defaults to an empty array [](no labels).*/ + labels?: string | string[]; + /** - used to create an HTTPS connection.The tls object is passed unchanged as options to the node.js HTTPS server as described in the node.js HTTPS documentation.Set to true when passing a listener object that has been configured to use TLS directly. */ + tls?: boolean | { key?: string; cert?: string; pfx?: string; } | Object; -/** Any connections configuration server defaults can be included to override and customize the individual connection. */ -export interface IServerConnectionOptions extends IConnectionConfigurationServerDefaults { - /** - the public hostname or IP address. Used only to set server.info.host and server.info.uri. If not configured, defaults to the operating system hostname and if not available, to 'localhost'.*/ - host?: string; - /** - sets the host name or IP address the connection will listen on.If not configured, defaults to host if present, otherwise to all available network interfaces (i.e. '0.0.0.0').Set to 127.0.0.1 or localhost to restrict connection to only those coming from the same machine.*/ - address?: string; - /** - the TCP port the connection will listen to.Defaults to an ephemeral port (0) which uses an available port when the server is started (and assigned to server.info.port).If port is a string containing a '/' character, it is used as a UNIX domain socket path and if it starts with '\.\pipe' as a Windows named pipe.*/ - port?: string | number; - /** - the full public URI without the path (e.g. 'http://example.com:8080').If present, used as the connection info.uri otherwise constructed from the connection settings.*/ - uri?: string; - /** - optional node.js HTTP (or HTTPS) http.Server object or any compatible object.If the listener needs to be manually started, set autoListen to false.If the listener uses TLS, set tls to true.*/ - listener?: any; - /** - indicates that the connection.listener will be started manually outside the framework.Cannot be specified with a port setting.Defaults to true.*/ - autoListen?: boolean; - /** caching headers configuration: */ - cache?: { - /** - an array of HTTP response status codes (e.g. 200) which are allowed to include a valid caching directive.Defaults to [200]. */ - statuses: number[]; - }; - /** - a string or string array of labels used to server.select() specific connections matching the specified labels.Defaults to an empty array [](no labels).*/ - labels?: string | string[]; - /** - used to create an HTTPS connection.The tls object is passed unchanged as options to the node.js HTTPS server as described in the node.js HTTPS documentation.Set to true when passing a listener object that has been configured to use TLS directly. */ - tls?: boolean | { key?: string; cert?: string; pfx?: string; } | Object; + } -} + export interface IConnectionConfigurationServerDefaults { + /** application-specific connection configuration which can be accessed via connection.settings.app. Provides a safe place to store application configuration without potential conflicts with the framework internals. Should not be used to configure plugins which should use plugins[name]. Note the difference between connection.settings.app which is used to store configuration values and connection.app which is meant for storing run-time state. */ + app?: any; + /** connection load limits configuration where: */ + load?: { + /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ + maxHeapUsedBytes: number; + /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ + maxRssBytes: number; + /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ + maxEventLoopDelay: number; + }; + /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ + plugins?: any; + /** controls how incoming request URIs are matched against the routing table: */ + router?: { + /** determines whether the paths '/example' and '/EXAMPLE' are considered different resources. Defaults to true. */ + isCaseSensitive: boolean; + /** removes trailing slashes on incoming paths. Defaults to false. */ + stripTrailingSlash: boolean; + }; + /** a route options object used to set the default configuration for every route. */ + routes?: IRouteAdditionalConfigurationOptions; + state?: IServerState; + } -export interface IConnectionConfigurationServerDefaults { - /** application-specific connection configuration which can be accessed via connection.settings.app. Provides a safe place to store application configuration without potential conflicts with the framework internals. Should not be used to configure plugins which should use plugins[name]. Note the difference between connection.settings.app which is used to store configuration values and connection.app which is meant for storing run-time state. */ - app?: any; - /** connection load limits configuration where: */ - load?: { - /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxHeapUsedBytes: number; - /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxRssBytes: number; - /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxEventLoopDelay: number; - }; - /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ - plugins?: any; - /** controls how incoming request URIs are matched against the routing table: */ - router?: { - /** determines whether the paths '/example' and '/EXAMPLE' are considered different resources. Defaults to true. */ - isCaseSensitive: boolean; - /** removes trailing slashes on incoming paths. Defaults to false. */ - stripTrailingSlash: boolean; - }; - /** a route options object used to set the default configuration for every route. */ - routes?: IRouteAdditionalConfigurationOptions; - state?: IServerState; -} + /** Note that the options object is deeply cloned and cannot contain any values that are unsafe to perform deep copy on.*/ + export interface IServerOptions { + /** application-specific configuration which can later be accessed via server.settings.app. Note the difference between server.settings.app which is used to store static configuration values and server.app which is meant for storing run-time state. Defaults to {}. */ + app?: any; + /** sets up server-side caching. Every server includes a default cache for storing application state. By default, a simple memory-based cache is created which has limited capacity and capabilities. hapi uses catbox for its cache which includes support for common storage solutions (e.g. Redis, MongoDB, Memcached, and Riak). Caching is only utilized if methods and plugins explicitly store their state in the cache. The server cache configuration only defines the storage container itself. cache can be assigned: + a prototype function (usually obtained by calling require() on a catbox strategy such as require('catbox-redis')). + a configuration object with the following options: + enginea prototype function or catbox engine object. + namean identifier used later when provisioning or configuring caching for server methods or plugins. Each cache name must be unique. A single item may omit the name option which defines the default cache. If every cache includes a name, a default memory cache is provisions as well. + sharedif true, allows multiple cache users to share the same segment (e.g. multiple methods using the same cache storage container). Default to false. + other options passed to the catbox strategy used. + an array of the above object for configuring multiple cache instances, each with a unique name. When an array of objects is provided, multiple cache connections are established and each array item (except one) must include a name. */ + cache?: string | ICatBoxCacheOptions | Array | any; + /** sets the default connections configuration which can be overridden by each connection where: */ + connections?: IConnectionConfigurationServerDefaults; + /** determines which logged events are sent to the console (this should only be used for development and does not affect which events are actually logged internally and recorded). Set to false to disable all console logging, or to an object*/ + debug?: boolean | { + /** - a string array of server log tags to be displayed via console.error() when the events are logged via server.log() as well as internally generated server logs. For example, to display all errors, set the option to ['error']. To turn off all console debug messages set it to false. Defaults to uncaught errors thrown in external code (these errors are handled automatically and result in an Internal Server Error response) or runtime errors due to developer error. */ + log: string[]; + /** - a string array of request log tags to be displayed via console.error() when the events are logged via request.log() as well as internally generated request logs. For example, to display all errors, set the option to ['error']. To turn off all console debug messages set it to false. Defaults to uncaught errors thrown in external code (these errors are handled automatically and result in an Internal Server Error response) or runtime errors due to developer error.*/ + request: string[]; + }; + /** file system related settings*/ + files?: { + /** sets the maximum number of file etag hash values stored in the etags cache. Defaults to 10000.*/ + etagsCacheMaxSize?: number; + }; + /** process load monitoring*/ + load?: { + /** the frequency of sampling in milliseconds. Defaults to 0 (no sampling).*/ + sampleInterval?: number; + }; -/** Note that the options object is deeply cloned and cannot contain any values that are unsafe to perform deep copy on.*/ -export interface IServerOptions { - /** application-specific configuration which can later be accessed via server.settings.app. Note the difference between server.settings.app which is used to store static configuration values and server.app which is meant for storing run-time state. Defaults to {}. */ - app?: any; - /** sets up server-side caching. Every server includes a default cache for storing application state. By default, a simple memory-based cache is created which has limited capacity and capabilities. hapi uses catbox for its cache which includes support for common storage solutions (e.g. Redis, MongoDB, Memcached, and Riak). Caching is only utilized if methods and plugins explicitly store their state in the cache. The server cache configuration only defines the storage container itself. cache can be assigned: - a prototype function (usually obtained by calling require() on a catbox strategy such as require('catbox-redis')). - a configuration object with the following options: - enginea prototype function or catbox engine object. - namean identifier used later when provisioning or configuring caching for server methods or plugins. Each cache name must be unique. A single item may omit the name option which defines the default cache. If every cache includes a name, a default memory cache is provisions as well. - sharedif true, allows multiple cache users to share the same segment (e.g. multiple methods using the same cache storage container). Default to false. - other options passed to the catbox strategy used. - an array of the above object for configuring multiple cache instances, each with a unique name. When an array of objects is provided, multiple cache connections are established and each array item (except one) must include a name. */ - cache?: string | ICatBoxCacheOptions | Array | any; - /** sets the default connections configuration which can be overridden by each connection where: */ - connections?: IConnectionConfigurationServerDefaults; - /** determines which logged events are sent to the console (this should only be used for development and does not affect which events are actually logged internally and recorded). Set to false to disable all console logging, or to an object*/ - debug?: boolean | { - /** - a string array of server log tags to be displayed via console.error() when the events are logged via server.log() as well as internally generated server logs. For example, to display all errors, set the option to ['error']. To turn off all console debug messages set it to false. Defaults to uncaught errors thrown in external code (these errors are handled automatically and result in an Internal Server Error response) or runtime errors due to developer error. */ - log: string[]; - /** - a string array of request log tags to be displayed via console.error() when the events are logged via request.log() as well as internally generated request logs. For example, to display all errors, set the option to ['error']. To turn off all console debug messages set it to false. Defaults to uncaught errors thrown in external code (these errors are handled automatically and result in an Internal Server Error response) or runtime errors due to developer error.*/ - request: string[]; - }; - /** file system related settings*/ - files?: { - /** sets the maximum number of file etag hash values stored in the etags cache. Defaults to 10000.*/ - etagsCacheMaxSize?: number; - }; - /** process load monitoring*/ - load?: { - /** the frequency of sampling in milliseconds. Defaults to 0 (no sampling).*/ - sampleInterval?: number; - }; + /** options passed to the mimos module (https://github.com/hapijs/mimos) when generating the mime database used by the server and accessed via server.mime.*/ + mime?: any; + /** if true, does not load the inert (file and directory support), h2o2 (proxy support), and vision (views support) plugins automatically. The plugins can be loaded manually after construction. Defaults to false (plugins loaded). */ + minimal?: boolean; + /** plugin-specific configuration which can later be accessed via server.settings.plugins. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between server.settings.plugins which is used to store static configuration values and server.plugins which is meant for storing run-time state. Defaults to {}.*/ + plugins?: IDictionary; - /** options passed to the mimos module (https://github.com/hapijs/mimos) when generating the mime database used by the server and accessed via server.mime.*/ - mime?: any; - /** if true, does not load the inert (file and directory support), h2o2 (proxy support), and vision (views support) plugins automatically. The plugins can be loaded manually after construction. Defaults to false (plugins loaded). */ - minimal?: boolean; - /** plugin-specific configuration which can later be accessed via server.settings.plugins. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between server.settings.plugins which is used to store static configuration values and server.plugins which is meant for storing run-time state. Defaults to {}.*/ - plugins?: IDictionary; + } -} + export interface IServerViewCompile { + (template: string, options: any): void; + (template: string, options: any, callback: (err: any, compiled: (context: any, options: any, callback: (err: any, rendered: boolean) => void) => void) => void): void; + } -export interface IServerViewCompile { - (template: string, options: any): void; - (template: string, options: any, callback: (err: any, compiled: (context: any, options: any, callback: (err: any, rendered: boolean) => void) => void) => void): void; -} + export interface IServerViewsAdditionalOptions { + /** path - the root file path used to resolve and load the templates identified when calling reply.view().Defaults to current working directory.*/ + path?: string; + /**partialsPath - the root file path where partials are located.Partials are small segments of template code that can be nested and reused throughout other templates.Defaults to no partials support (empty path). + */ + partialsPath?: string; + /**helpersPath - the directory path where helpers are located.Helpers are functions used within templates to perform transformations and other data manipulations using the template context or other inputs.Each '.js' file in the helpers directory is loaded and the file name is used as the helper name.The files must export a single method with the signature function(context) and return a string.Sub - folders are not supported and are ignored.Defaults to no helpers support (empty path).Note that jade does not support loading helpers this way.*/ + helpersPath?: string; + /**relativeTo - a base path used as prefix for path and partialsPath.No default.*/ + relativeTo?: string; -export interface IServerViewsAdditionalOptions { - /** path - the root file path used to resolve and load the templates identified when calling reply.view().Defaults to current working directory.*/ - path?: string; - /**partialsPath - the root file path where partials are located.Partials are small segments of template code that can be nested and reused throughout other templates.Defaults to no partials support (empty path). - */ - partialsPath?: string; - /**helpersPath - the directory path where helpers are located.Helpers are functions used within templates to perform transformations and other data manipulations using the template context or other inputs.Each '.js' file in the helpers directory is loaded and the file name is used as the helper name.The files must export a single method with the signature function(context) and return a string.Sub - folders are not supported and are ignored.Defaults to no helpers support (empty path).Note that jade does not support loading helpers this way.*/ - helpersPath?: string; - /**relativeTo - a base path used as prefix for path and partialsPath.No default.*/ - relativeTo?: string; + /**layout - if set to true or a layout filename, layout support is enabled.A layout is a single template file used as the parent template for other view templates in the same engine.If true, the layout template name must be 'layout.ext' where 'ext' is the engine's extension. Otherwise, the provided filename is suffixed with the engine's extension and loaded.Disable layout when using Jade as it will handle including any layout files independently.Defaults to false.*/ + layout?: boolean | string; + /**layoutPath - the root file path where layout templates are located (using the relativeTo prefix if present). Defaults to path.*/ + layoutPath?: string; + /**layoutKeyword - the key used by the template engine to denote where primary template content should go.Defaults to 'content'.*/ + layoutKeywork?: string; + /**encoding - the text encoding used by the templates when reading the files and outputting the result.Defaults to 'utf8'.*/ + encoding?: string; + /**isCached - if set to false, templates will not be cached (thus will be read from file on every use).Defaults to true.*/ + isCached?: boolean; + /**allowAbsolutePaths - if set to true, allows absolute template paths passed to reply.view().Defaults to false.*/ + allowAbsolutePaths?: boolean; + /**allowInsecureAccess - if set to true, allows template paths passed to reply.view() to contain '../'.Defaults to false.*/ + allowInsecureAccess?: boolean; + /**compileOptions - options object passed to the engine's compile function. Defaults to empty options {}.*/ + compileOptions?: any; + /**runtimeOptions - options object passed to the returned function from the compile operation.Defaults to empty options {}.*/ + runtimeOptions?: any; + /**contentType - the content type of the engine results.Defaults to 'text/html'.*/ + contentType?: string; + /**compileMode - specify whether the engine compile() method is 'sync' or 'async'.Defaults to 'sync'.*/ + compileMode?: string; + /**context - a global context used with all templates.The global context option can be either an object or a function that takes no arguments and returns a context object.When rendering views, the global context will be merged with any context object specified on the handler or using reply.view().When multiple context objects are used, values from the global context always have lowest precedence.*/ + context?: any; + } - /**layout - if set to true or a layout filename, layout support is enabled.A layout is a single template file used as the parent template for other view templates in the same engine.If true, the layout template name must be 'layout.ext' where 'ext' is the engine's extension. Otherwise, the provided filename is suffixed with the engine's extension and loaded.Disable layout when using Jade as it will handle including any layout files independently.Defaults to false.*/ - layout?: boolean | string; - /**layoutPath - the root file path where layout templates are located (using the relativeTo prefix if present). Defaults to path.*/ - layoutPath?: string; - /**layoutKeyword - the key used by the template engine to denote where primary template content should go.Defaults to 'content'.*/ - layoutKeywork?: string; - /**encoding - the text encoding used by the templates when reading the files and outputting the result.Defaults to 'utf8'.*/ - encoding?: string; - /**isCached - if set to false, templates will not be cached (thus will be read from file on every use).Defaults to true.*/ - isCached?: boolean; - /**allowAbsolutePaths - if set to true, allows absolute template paths passed to reply.view().Defaults to false.*/ - allowAbsolutePaths?: boolean; - /**allowInsecureAccess - if set to true, allows template paths passed to reply.view() to contain '../'.Defaults to false.*/ - allowInsecureAccess?: boolean; - /**compileOptions - options object passed to the engine's compile function. Defaults to empty options {}.*/ - compileOptions?: any; - /**runtimeOptions - options object passed to the returned function from the compile operation.Defaults to empty options {}.*/ - runtimeOptions?: any; - /**contentType - the content type of the engine results.Defaults to 'text/html'.*/ - contentType?: string; - /**compileMode - specify whether the engine compile() method is 'sync' or 'async'.Defaults to 'sync'.*/ - compileMode?: string; - /**context - a global context used with all templates.The global context option can be either an object or a function that takes no arguments and returns a context object.When rendering views, the global context will be merged with any context object specified on the handler or using reply.view().When multiple context objects are used, values from the global context always have lowest precedence.*/ - context?: any; -} + export interface IServerViewsEnginesOptions extends IServerViewsAdditionalOptions { + /**- the npm module used for rendering the templates.The module object must contain: "module", the rendering function. The required function signature depends on the compileMode settings. + * If the compileMode is 'sync', the signature is compile(template, options), the return value is a function with signature function(context, options), and the method is allowed to throw errors.If the compileMode is 'async', the signature is compile(template, options, callback) where callback has the signature function(err, compiled) where compiled is a function with signature function(context, options, callback) and callback has the signature function(err, rendered).*/ + module: { + compile?(template: any, options: any): (context: any, options: any) => void; + compile?(template: any, options: any, callback: (err: any, compiled: (context: any, options: any, callback: (err: any, rendered: any) => void) => void) => void): void; + }; + } -export interface IServerViewsEnginesOptions extends IServerViewsAdditionalOptions { - /**- the npm module used for rendering the templates.The module object must contain: "module", the rendering function. The required function signature depends on the compileMode settings. - * If the compileMode is 'sync', the signature is compile(template, options), the return value is a function with signature function(context, options), and the method is allowed to throw errors.If the compileMode is 'async', the signature is compile(template, options, callback) where callback has the signature function(err, compiled) where compiled is a function with signature function(context, options, callback) and callback has the signature function(err, rendered).*/ - module: { - compile?(template: any, options: any): (context: any, options: any) => void; - compile?(template: any, options: any, callback: (err: any, compiled: (context: any, options: any, callback: (err: any, rendered: any) => void) => void) => void): void; - }; -} + /**Initializes the server views manager + var Hapi = require('hapi'); + var server = new Hapi.Server(); -/**Initializes the server views manager - var Hapi = require('hapi'); - var server = new Hapi.Server(); + server.views({ + engines: { + html: require('handlebars'), + jade: require('jade') + }, + path: '/static/templates' + }); + When server.views() is called within a plugin, the views manager is only available to plugins methods. + */ + export interface IServerViewsConfiguration extends IServerViewsAdditionalOptions { + /** - required object where each key is a file extension (e.g. 'html', 'hbr'), mapped to the npm module used for rendering the templates.Alternatively, the extension can be mapped to an object with the following options:*/ + engines: IDictionary | IServerViewsEnginesOptions; + /** defines the default filename extension to append to template names when multiple engines are configured and not explicit extension is provided for a given template. No default value.*/ + defaultExtension?: string; + } - server.views({ -engines: { -html: require('handlebars'), -jade: require('jade') -}, -path: '/static/templates' -}); - When server.views() is called within a plugin, the views manager is only available to plugins methods. - */ -export interface IServerViewsConfiguration extends IServerViewsAdditionalOptions { - /** - required object where each key is a file extension (e.g. 'html', 'hbr'), mapped to the npm module used for rendering the templates.Alternatively, the extension can be mapped to an object with the following options:*/ - engines: IDictionary | IServerViewsEnginesOptions; - /** defines the default filename extension to append to template names when multiple engines are configured and not explicit extension is provided for a given template. No default value.*/ - defaultExtension?: string; -} + /** Concludes the handler activity by setting a response and returning control over to the framework where: + erran optional error response. + resultan optional response payload. + Since an request can only have one response regardless if it is an error or success, the reply() method can only result in a single response value. This means that passing both an err and result will only use the err. There is no requirement for either err or result to be (or not) an Error object. The framework will simply use the first argument if present, otherwise the second. The method supports two arguments to be compatible with the common callback pattern of error first. + FLOW CONTROL: + When calling reply(), the framework waits until process.nextTick() to continue processing the request and transmit the response. This enables making changes to the returned response object before the response is sent. This means the framework will resume as soon as the handler method exits. To suspend this behavior, the returned response object supports the following methods: hold(), send() */ + export interface IReply { + (err: Error, + result?: string | number | boolean | Buffer | stream.Stream | IPromise | T, + /** Note that when used to return both an error and credentials in the authentication methods, reply() must be called with three arguments function(err, null, data) where data is the additional authentication information. */ + credentialData?: any): IBoom; + /** Note that if result is a Stream with a statusCode property, that status code will be used as the default response code. */ + (result: string | number | boolean | Buffer | stream.Stream | IPromise | T): Response; -/** Concludes the handler activity by setting a response and returning control over to the framework where: - erran optional error response. - resultan optional response payload. - Since an request can only have one response regardless if it is an error or success, the reply() method can only result in a single response value. This means that passing both an err and result will only use the err. There is no requirement for either err or result to be (or not) an Error object. The framework will simply use the first argument if present, otherwise the second. The method supports two arguments to be compatible with the common callback pattern of error first. - FLOW CONTROL: - When calling reply(), the framework waits until process.nextTick() to continue processing the request and transmit the response. This enables making changes to the returned response object before the response is sent. This means the framework will resume as soon as the handler method exits. To suspend this behavior, the returned response object supports the following methods: hold(), send() */ -export interface IReply { - (err: Error, - result?: string | number | boolean | Buffer | stream.Stream | IPromise | T, - /** Note that when used to return both an error and credentials in the authentication methods, reply() must be called with three arguments function(err, null, data) where data is the additional authentication information. */ - credentialData?: any): IBoom; - /** Note that if result is a Stream with a statusCode property, that status code will be used as the default response code. */ - (result: string | number | boolean | Buffer | stream.Stream | IPromise | T): Response; + /** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200. + * The data argument is only used for passing back authentication data and is ignored elsewhere. */ + continue(credentialData?: any): void; - /** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200. - * The data argument is only used for passing back authentication data and is ignored elsewhere. */ - continue(credentialData?: any): void; + /** Transmits a file from the file system. The 'Content-Type' header defaults to the matching mime type based on filename extension. The response flow control rules do not apply. */ + file(/** the file path. */ + path: string, + /** optional settings: */ + options?: { + /** - an optional filename to specify if sending a 'Content-Disposition' header, defaults to the basename of path*/ + filename?: string; + /** specifies whether to include the 'Content-Disposition' header with the response. Available values: + false - header is not included. This is the default value. + 'attachment' + 'inline'*/ + mode?: boolean | string; + /** if true, looks for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. */ + lookupCompressed: boolean; + }): void; + /** Concludes the handler activity by returning control over to the router with a templatized view response. + the response flow control rules apply. */ + view(/** the template filename and path, relative to the templates path configured via the server views manager. */ + template: string, + /** optional object used by the template to render context-specific result. Defaults to no context {}. */ + context?: {}, + /** optional object used to override the server's views manager configuration for this response. Cannot override isCached, partialsPath, or helpersPath which are only loaded at initialization. */ + options?: any): Response; + /** Sets a header on the response */ + header(name: string, value: string, options?: IHeaderOptions): Response; - /** Transmits a file from the file system. The 'Content-Type' header defaults to the matching mime type based on filename extension. The response flow control rules do not apply. */ - file(/** the file path. */ - path: string, - /** optional settings: */ - options?: { - /** - an optional filename to specify if sending a 'Content-Disposition' header, defaults to the basename of path*/ - filename?: string; - /** specifies whether to include the 'Content-Disposition' header with the response. Available values: - false - header is not included. This is the default value. - 'attachment' - 'inline'*/ - mode?: boolean | string; - /** if true, looks for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. */ - lookupCompressed: boolean; - }): void; - /** Concludes the handler activity by returning control over to the router with a templatized view response. - the response flow control rules apply. */ - view(/** the template filename and path, relative to the templates path configured via the server views manager. */ - template: string, - /** optional object used by the template to render context-specific result. Defaults to no context {}. */ - context?: {}, - /** optional object used to override the server's views manager configuration for this response. Cannot override isCached, partialsPath, or helpersPath which are only loaded at initialization. */ - options?: any): Response; - /** Sets a header on the response */ - header(name: string, value: string, options?: IHeaderOptions): Response; + /** Concludes the handler activity by returning control over to the router and informing the router that a response has already been sent back directly via request.raw.res and that no further response action is needed + The response flow control rules do not apply. */ + close(options?: { + /** if false, the router will not call request.raw.res.end()) to ensure the response was ended. Defaults to true. */ + end?: boolean; + }): void; + /** Proxies the request to an upstream endpoint. + the response flow control rules do not apply. */ - /** Concludes the handler activity by returning control over to the router and informing the router that a response has already been sent back directly via request.raw.res and that no further response action is needed - The response flow control rules do not apply. */ - close(options?: { - /** if false, the router will not call request.raw.res.end()) to ensure the response was ended. Defaults to true. */ - end?: boolean; - }): void; - /** Proxies the request to an upstream endpoint. - the response flow control rules do not apply. */ + proxy(/** an object including the same keys and restrictions defined by the route proxy handler options. */ + options: IProxyHandlerConfig): void; + /** Redirects the client to the specified uri. Same as calling reply().redirect(uri). + he response flow control rules apply. */ + redirect(uri: string): ResponseRedirect; - proxy(/** an object including the same keys and restrictions defined by the route proxy handler options. */ - options: IProxyHandlerConfig): void; - /** Redirects the client to the specified uri. Same as calling reply().redirect(uri). - he response flow control rules apply. */ - redirect(uri: string): ResponseRedirect; + /** Replies with the specified response */ + response(result: any): Response; - /** Replies with the specified response */ - response(result: any): Response; + /** Sets a cookie on the response */ + state(name: string, value: any, options?: any): void; - /** Sets a cookie on the response */ - state(name: string, value: string, options?: any): void; + /** Clears a cookie on the response */ + unstate(name: string, options?: any): void; + } - /** Clears a cookie on the response */ - unstate(name: string, options?: any): void; -} - -export interface ISessionHandler { - (request: Request, reply: IReply): void; -} -export interface IRequestHandler { - (request: Request): T; -} + export interface ISessionHandler { + (request: Request, reply: IReply): void; + } + export interface IRequestHandler { + (request: Request): T; + } -export interface IFailAction { - (source: string, error: any, next: () => void): void -} -/** generates a reverse proxy handler */ -export interface IProxyHandlerConfig { - /** the upstream service host to proxy requests to. The same path on the client request will be used as the path on the host.*/ - host?: string; - /** the upstream service port. */ - port?: number; - /** The protocol to use when making a request to the proxied host: - 'http' - 'https'*/ - protocol?: string; - /** an absolute URI used instead of the incoming host, port, protocol, path, and query. Cannot be used with host, port, protocol, or mapUri.*/ - uri?: string; - /** if true, forwards the headers sent from the client to the upstream service being proxied to, headers sent from the upstream service will also be forwarded to the client. Defaults to false.*/ - passThrough?: boolean; - /** localStatePassThrough - if false, any locally defined state is removed from incoming requests before being passed upstream. This is a security feature to prevent local state (e.g. authentication cookies) from leaking upstream to other servers along with the cookies intended for those servers. This value can be overridden on a per state basis via the server.state() passThrough option. Defaults to false.*/ - localStatePassThrough?: boolean; - /**acceptEncoding - if false, does not pass-through the 'Accept-Encoding' HTTP header which is useful when using an onResponse post-processing to avoid receiving an encoded response (e.g. gzipped). Can only be used together with passThrough. Defaults to true (passing header).*/ - acceptEncoding?: boolean; - /** rejectUnauthorized - sets the rejectUnauthorized property on the https agent making the request. This value is only used when the proxied server uses TLS/SSL. When set it will override the node.js rejectUnauthorized property. If false then ssl errors will be ignored. When true the server certificate is verified and an 500 response will be sent when verification fails. This shouldn't be used alongside the agent setting as the agent will be used instead. Defaults to the https agent default value of true.*/ - rejectUnauthorized?: boolean; - /**if true, sets the 'X-Forwarded-For', 'X-Forwarded-Port', 'X-Forwarded-Proto' headers when making a request to the proxied upstream endpoint. Defaults to false.*/ - xforward?: boolean; - /** the maximum number of HTTP redirections allowed, to be followed automatically by the handler. Set to false or 0 to disable all redirections (the response will contain the redirection received from the upstream service). If redirections are enabled, no redirections (301, 302, 307, 308) will be passed along to the client, and reaching the maximum allowed redirections will return an error response. Defaults to false.*/ - redirects?: boolean | number; - /**number of milliseconds before aborting the upstream request. Defaults to 180000 (3 minutes).*/ - timeout?: number; - /** a function used to map the request URI to the proxied URI. Cannot be used together with host, port, protocol, or uri. The function signature is function(request, callback) where: - request - is the incoming request object. - callback - is function(err, uri, headers) where: - err - internal error condition. - uri - the absolute proxy URI. - headers - optional object where each key is an HTTP request header and the value is the header content.*/ - mapUri?: (request: Request, callback: (err: any, uri: string, headers?: { [key: string]: string }) => void) => void; - /** a custom function for processing the response from the upstream service before sending to the client. Useful for custom error handling of responses from the proxied endpoint or other payload manipulation. Function signature is function(err, res, request, reply, settings, ttl) where: - err - internal or upstream error returned from attempting to contact the upstream proxy. - res - the node response object received from the upstream service. res is a readable stream (use the wreck module read method to easily convert it to a Buffer or string). - request - is the incoming request object. - reply - the reply interface function. - settings - the proxy handler configuration. - ttl - the upstream TTL in milliseconds if proxy.ttl it set to 'upstream' and the upstream response included a valid 'Cache-Control' header with 'max-age'.*/ - onResponse?: (err: any, - res: http.ServerResponse, - req: Request, - reply: IReply, - settings: IProxyHandlerConfig, - ttl: number) => void; - /** if set to 'upstream', applies the upstream response caching policy to the response using the response.ttl() method (or passed as an argument to the onResponse method if provided).*/ - ttl?: number; - /** - a node http(s) agent to be used for connections to upstream server. see https://nodejs.org/api/http.html#http_class_http_agent */ - agent?: http.Agent; - /** sets the maximum number of sockets available per outgoing proxy host connection. false means use the wreck module default value (Infinity). Does not affect non-proxy outgoing client connections. Defaults to Infinity.*/ - maxSockets?: boolean | number; -} -/** TODO: fill in joi definition */ -export interface IJoi { + export interface IFailAction { + (source: string, error: any, next: () => void): void + } + /** generates a reverse proxy handler */ + export interface IProxyHandlerConfig { + /** the upstream service host to proxy requests to. The same path on the client request will be used as the path on the host.*/ + host?: string; + /** the upstream service port. */ + port?: number; + /** The protocol to use when making a request to the proxied host: + 'http' + 'https'*/ + protocol?: string; + /** an absolute URI used instead of the incoming host, port, protocol, path, and query. Cannot be used with host, port, protocol, or mapUri.*/ + uri?: string; + /** if true, forwards the headers sent from the client to the upstream service being proxied to, headers sent from the upstream service will also be forwarded to the client. Defaults to false.*/ + passThrough?: boolean; + /** localStatePassThrough - if false, any locally defined state is removed from incoming requests before being passed upstream. This is a security feature to prevent local state (e.g. authentication cookies) from leaking upstream to other servers along with the cookies intended for those servers. This value can be overridden on a per state basis via the server.state() passThrough option. Defaults to false.*/ + localStatePassThrough?: boolean; + /**acceptEncoding - if false, does not pass-through the 'Accept-Encoding' HTTP header which is useful when using an onResponse post-processing to avoid receiving an encoded response (e.g. gzipped). Can only be used together with passThrough. Defaults to true (passing header).*/ + acceptEncoding?: boolean; + /** rejectUnauthorized - sets the rejectUnauthorized property on the https agent making the request. This value is only used when the proxied server uses TLS/SSL. When set it will override the node.js rejectUnauthorized property. If false then ssl errors will be ignored. When true the server certificate is verified and an 500 response will be sent when verification fails. This shouldn't be used alongside the agent setting as the agent will be used instead. Defaults to the https agent default value of true.*/ + rejectUnauthorized?: boolean; + /**if true, sets the 'X-Forwarded-For', 'X-Forwarded-Port', 'X-Forwarded-Proto' headers when making a request to the proxied upstream endpoint. Defaults to false.*/ + xforward?: boolean; + /** the maximum number of HTTP redirections allowed, to be followed automatically by the handler. Set to false or 0 to disable all redirections (the response will contain the redirection received from the upstream service). If redirections are enabled, no redirections (301, 302, 307, 308) will be passed along to the client, and reaching the maximum allowed redirections will return an error response. Defaults to false.*/ + redirects?: boolean | number; + /**number of milliseconds before aborting the upstream request. Defaults to 180000 (3 minutes).*/ + timeout?: number; + /** a function used to map the request URI to the proxied URI. Cannot be used together with host, port, protocol, or uri. The function signature is function(request, callback) where: + request - is the incoming request object. + callback - is function(err, uri, headers) where: + err - internal error condition. + uri - the absolute proxy URI. + headers - optional object where each key is an HTTP request header and the value is the header content.*/ + mapUri?: (request: Request, callback: (err: any, uri: string, headers?: { [key: string]: string }) => void) => void; + /** a custom function for processing the response from the upstream service before sending to the client. Useful for custom error handling of responses from the proxied endpoint or other payload manipulation. Function signature is function(err, res, request, reply, settings, ttl) where: - err - internal or upstream error returned from attempting to contact the upstream proxy. - res - the node response object received from the upstream service. res is a readable stream (use the wreck module read method to easily convert it to a Buffer or string). - request - is the incoming request object. - reply - the reply interface function. - settings - the proxy handler configuration. - ttl - the upstream TTL in milliseconds if proxy.ttl it set to 'upstream' and the upstream response included a valid 'Cache-Control' header with 'max-age'.*/ + onResponse?: (err: any, + res: http.ServerResponse, + req: Request, + reply: IReply, + settings: IProxyHandlerConfig, + ttl: number) => void; + /** if set to 'upstream', applies the upstream response caching policy to the response using the response.ttl() method (or passed as an argument to the onResponse method if provided).*/ + ttl?: number; + /** - a node http(s) agent to be used for connections to upstream server. see https://nodejs.org/api/http.html#http_class_http_agent */ + agent?: http.Agent; + /** sets the maximum number of sockets available per outgoing proxy host connection. false means use the wreck module default value (Infinity). Does not affect non-proxy outgoing client connections. Defaults to Infinity.*/ + maxSockets?: boolean | number; + } + /** TODO: fill in joi definition */ + export interface IJoi { -} -/** a validation function using the signature function(value, options, next) */ -export interface IValidationFunction { + } + /** a validation function using the signature function(value, options, next) */ + export interface IValidationFunction { - (/** the object containing the path parameters. */ - value: any, - /** the server validation options. */ - options: any, - /** the callback function called when validation is completed. */ - next: (err: any, value: any) => void): void; -} -/** a custom error handler function with the signature 'function(request, reply, source, error)` */ -export interface IRouteFailFunction { - /** a custom error handler function with the signature 'function(request, reply, source, error)` */ - (/** - the [request object]. */ - request: Request, - /** the continuation reply interface. */ - reply: IReply, - /** the source of the invalid field (e.g. 'path', 'query', 'payload'). */ - source: string, - /** the error object prepared for the client response (including the validation function error under error.data). */ - error: any): void; -} + (/** the object containing the path parameters. */ + value: any, + /** the server validation options. */ + options: any, + /** the callback function called when validation is completed. */ + next: (err: any, value: any) => void): void; + } + /** a custom error handler function with the signature 'function(request, reply, source, error)` */ + export interface IRouteFailFunction { + /** a custom error handler function with the signature 'function(request, reply, source, error)` */ + (/** - the [request object]. */ + request: Request, + /** the continuation reply interface. */ + reply: IReply, + /** the source of the invalid field (e.g. 'path', 'query', 'payload'). */ + source: string, + /** the error object prepared for the client response (including the validation function error under error.data). */ + error: any): void; + } -/** Each route can be customize to change the default behavior of the request lifecycle using the following options: */ -export interface IRouteAdditionalConfigurationOptions { - /** application specific configuration.Should not be used by plugins which should use plugins[name] instead. */ - app?: any; - /** authentication configuration.Value can be: false to disable authentication if a default strategy is set. - a string with the name of an authentication strategy registered with server.auth.strategy(). - an object */ - auth?: boolean | string | - { - /** the authentication mode.Defaults to 'required' if a server authentication strategy is configured, otherwise defaults to no authentication.Available values: - 'required'authentication is required. - 'optional'authentication is optional (must be valid if present). - 'try'same as 'optional' but allows for invalid authentication. */ - mode?: string; - /** a string array of strategy names in order they should be attempted.If only one strategy is used, strategy can be used instead with the single string value.Defaults to the default authentication strategy which is available only when a single strategy is configured. */ - strategies?: string | Array; - /** if set, the payload (in requests other than 'GET' and 'HEAD') is authenticated after it is processed.Requires a strategy with payload authentication support (e.g.Hawk).Cannot be set to a value other than 'required' when the scheme sets the options.payload to true.Available values: - falseno payload authentication.This is the default value. - 'required'payload authentication required.This is the default value when the scheme sets options.payload to true. - 'optional'payload authentication performed only when the client includes payload authentication information (e.g.hash attribute in Hawk). */ - payload?: string; - /** the application scope required to access the route.Value can be a scope string or an array of scope strings.The authenticated credentials object scope property must contain at least one of the scopes defined to access the route.Set to false to remove scope requirements.Defaults to no scope required. */ - scope?: string | Array | boolean; - /** the required authenticated entity type.If set, must match the entity value of the authentication credentials.Available values: - anythe authentication can be on behalf of a user or application.This is the default value. - userthe authentication must be on behalf of a user. - appthe authentication must be on behalf of an application. */ - entity?: string; - /** - * an object or array of objects specifying the route access rules. Each rule is evaluated against an incoming - * request and access is granted if at least one rule matches. Each rule object must include at least one of: - */ - access?: IRouteAdditionalConfigurationAuthAccess | IRouteAdditionalConfigurationAuthAccess[]; - }; - /** an object passed back to the provided handler (via this) when called. */ - bind?: any; - /** if the route method is 'GET', the route can be configured to include caching directives in the response using the following options */ - cache?: { - /** mines the privacy flag included in clientside caching using the 'Cache-Control' header.Values are: - fault'no privacy flag.This is the default setting. - 'public'mark the response as suitable for public caching. - 'private'mark the response as suitable only for private caching. */ - privacy: string; - /** relative expiration expressed in the number of milliseconds since the item was saved in the cache.Cannot be used together with expiresAt. */ - expiresIn: number; - /** time of day expressed in 24h notation using the 'HH:MM' format, at which point all cache records for the route expire.Cannot be used together with expiresIn. */ - expiresAt: string; - }; - /** the Cross- Origin Resource Sharing protocol allows browsers to make cross- origin API calls.CORS is required by web applications running inside a browser which are loaded from a different domain than the API server.CORS headers are disabled by default. To enable, set cors to true, or to an object with the following options: */ - cors?: { - /** a strings array of allowed origin servers ('Access-Control-Allow-Origin').The array can contain any combination of fully qualified origins along with origin strings containing a wildcard '' character, or a single `''origin string. Defaults to any origin['*']`. */ - origin?: Array; - /** if true, matches the value of the incoming 'Origin' header to the list of origin values ('*' matches anything) and if a match is found, uses that as the value of the 'Access-Control-Allow-Origin' response header.When false, the origin config is returned as- is.Defaults to true. */ - matchOrigin?: boolean; - /** if false, prevents the connection from returning the full list of non- wildcard origin values if the incoming origin header does not match any of the values.Has no impact if matchOrigin is set to false.Defaults to true. */ - isOriginExposed?: boolean; - /** number of seconds the browser should cache the CORS response ('Access-Control-Max-Age').The greater the value, the longer it will take before the browser checks for changes in policy.Defaults to 86400 (one day). */ - maxAge?: number; - /** a strings array of allowed headers ('Access-Control-Allow-Headers').Defaults to ['Authorization', 'Content-Type', 'If-None-Match']. */ - headers?: string[]; - /** a strings array of additional headers to headers.Use this to keep the default headers in place. */ - additionalHeaders?: string[]; - /** a strings array of allowed HTTP methods ('Access-Control-Allow-Methods').Defaults to ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS']. */ - methods?: string[]; - /** a strings array of additional methods to methods.Use this to keep the default methods in place. */ - additionalMethods?: string[]; - /** a strings array of exposed headers ('Access-Control-Expose-Headers').Defaults to ['WWW-Authenticate', 'Server-Authorization']. */ - exposedHeaders?: string[]; - /** a strings array of additional headers to exposedHeaders.Use this to keep the default headers in place. */ - additionalExposedHeaders?: string[]; - /** if true, allows user credentials to be sent ('Access-Control-Allow-Credentials').Defaults to false. */ - credentials?: boolean; - /** if false, preserves existing CORS headers set manually before the response is sent.Defaults to true. */ - override?: boolean; - }; - /** defines the behavior for serving static resources using the built-in route handlers for files and directories: */ - files?: {/** determines the folder relative paths are resolved against when using the file and directory handlers. */ - relativeTo: string; - }; + /** Each route can be customize to change the default behavior of the request lifecycle using the following options: */ + export interface IRouteAdditionalConfigurationOptions { + /** application specific configuration.Should not be used by plugins which should use plugins[name] instead. */ + app?: any; + /** authentication configuration.Value can be: false to disable authentication if a default strategy is set. + a string with the name of an authentication strategy registered with server.auth.strategy(). + an object */ + auth?: boolean | string | + { + /** the authentication mode.Defaults to 'required' if a server authentication strategy is configured, otherwise defaults to no authentication.Available values: + 'required'authentication is required. + 'optional'authentication is optional (must be valid if present). + 'try'same as 'optional' but allows for invalid authentication. */ + mode?: string; + /** a string array of strategy names in order they should be attempted.If only one strategy is used, strategy can be used instead with the single string value.Defaults to the default authentication strategy which is available only when a single strategy is configured. */ + strategies?: string | Array; + /** if set, the payload (in requests other than 'GET' and 'HEAD') is authenticated after it is processed.Requires a strategy with payload authentication support (e.g.Hawk).Cannot be set to a value other than 'required' when the scheme sets the options.payload to true.Available values: + falseno payload authentication.This is the default value. + 'required'payload authentication required.This is the default value when the scheme sets options.payload to true. + 'optional'payload authentication performed only when the client includes payload authentication information (e.g.hash attribute in Hawk). */ + payload?: string; + /** the application scope required to access the route.Value can be a scope string or an array of scope strings.The authenticated credentials object scope property must contain at least one of the scopes defined to access the route.Set to false to remove scope requirements.Defaults to no scope required. */ + scope?: string | Array | boolean; + /** the required authenticated entity type.If set, must match the entity value of the authentication credentials.Available values: + anythe authentication can be on behalf of a user or application.This is the default value. + userthe authentication must be on behalf of a user. + appthe authentication must be on behalf of an application. */ + entity?: string; + /** + * an object or array of objects specifying the route access rules. Each rule is evaluated against an incoming + * request and access is granted if at least one rule matches. Each rule object must include at least one of: + */ + access?: IRouteAdditionalConfigurationAuthAccess | IRouteAdditionalConfigurationAuthAccess[]; + }; + /** an object passed back to the provided handler (via this) when called. */ + bind?: any; + /** if the route method is 'GET', the route can be configured to include caching directives in the response using the following options */ + cache?: { + /** mines the privacy flag included in clientside caching using the 'Cache-Control' header.Values are: + fault'no privacy flag.This is the default setting. + 'public'mark the response as suitable for public caching. + 'private'mark the response as suitable only for private caching. */ + privacy: string; + /** relative expiration expressed in the number of milliseconds since the item was saved in the cache.Cannot be used together with expiresAt. */ + expiresIn: number; + /** time of day expressed in 24h notation using the 'HH:MM' format, at which point all cache records for the route expire.Cannot be used together with expiresIn. */ + expiresAt: string; + }; + /** the Cross- Origin Resource Sharing protocol allows browsers to make cross- origin API calls.CORS is required by web applications running inside a browser which are loaded from a different domain than the API server.CORS headers are disabled by default. To enable, set cors to true, or to an object with the following options: */ + cors?: { + /** a strings array of allowed origin servers ('Access-Control-Allow-Origin').The array can contain any combination of fully qualified origins along with origin strings containing a wildcard '' character, or a single `''origin string. Defaults to any origin['*']`. */ + origin?: Array; + /** if true, matches the value of the incoming 'Origin' header to the list of origin values ('*' matches anything) and if a match is found, uses that as the value of the 'Access-Control-Allow-Origin' response header.When false, the origin config is returned as- is.Defaults to true. */ + matchOrigin?: boolean; + /** if false, prevents the connection from returning the full list of non- wildcard origin values if the incoming origin header does not match any of the values.Has no impact if matchOrigin is set to false.Defaults to true. */ + isOriginExposed?: boolean; + /** number of seconds the browser should cache the CORS response ('Access-Control-Max-Age').The greater the value, the longer it will take before the browser checks for changes in policy.Defaults to 86400 (one day). */ + maxAge?: number; + /** a strings array of allowed headers ('Access-Control-Allow-Headers').Defaults to ['Authorization', 'Content-Type', 'If-None-Match']. */ + headers?: string[]; + /** a strings array of additional headers to headers.Use this to keep the default headers in place. */ + additionalHeaders?: string[]; + /** a strings array of allowed HTTP methods ('Access-Control-Allow-Methods').Defaults to ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS']. */ + methods?: string[]; + /** a strings array of additional methods to methods.Use this to keep the default methods in place. */ + additionalMethods?: string[]; + /** a strings array of exposed headers ('Access-Control-Expose-Headers').Defaults to ['WWW-Authenticate', 'Server-Authorization']. */ + exposedHeaders?: string[]; + /** a strings array of additional headers to exposedHeaders.Use this to keep the default headers in place. */ + additionalExposedHeaders?: string[]; + /** if true, allows user credentials to be sent ('Access-Control-Allow-Credentials').Defaults to false. */ + credentials?: boolean; + /** if false, preserves existing CORS headers set manually before the response is sent.Defaults to true. */ + override?: boolean; + }; + /** defines the behavior for serving static resources using the built-in route handlers for files and directories: */ + files?: {/** determines the folder relative paths are resolved against when using the file and directory handlers. */ + relativeTo: string; + }; - /** an alternative location for the route handler option. */ - handler?: ISessionHandler | string | IRouteHandlerConfig; - /** an optional unique identifier used to look up the route using server.lookup(). */ - id?: number; - /** optional arguments passed to JSON.stringify() when converting an object or error response to a string payload.Supports the following: */ - json?: { - /** the replacer function or array.Defaults to no action. */ - replacer?: Function | string[]; - /** number of spaces to indent nested object keys.Defaults to no indentation. */ - space?: number | string; - /** string suffix added after conversion to JSON string.Defaults to no suffix. */ - suffix?: string; - }; - /** enables JSONP support by setting the value to the query parameter name containing the function name used to wrap the response payload.For example, if the value is 'callback', a request comes in with 'callback=me', and the JSON response is '{ "a":"b" }', the payload will be 'me({ "a":"b" });'.Does not work with stream responses. */ - jsonp?: string; - /** determines how the request payload is processed: */ - payload?: { - /** the type of payload representation requested. The value must be one of: - 'data'the incoming payload is read fully into memory.If parse is true, the payload is parsed (JSON, formdecoded, multipart) based on the 'Content- Type' header.If parse is false, the raw Buffer is returned.This is the default value except when a proxy handler is used. - 'stream'the incoming payload is made available via a Stream.Readable interface.If the payload is 'multipart/form-data' and parse is true, fields values are presented as text while files are provided as streams.File streams from a 'multipart/form-data' upload will also have a property hapi containing filename and headers properties. - 'file'the incoming payload in written to temporary file in the directory specified by the server's payload.uploads settings. If the payload is 'multipart/ formdata' and parse is true, fields values are presented as text while files are saved. Note that it is the sole responsibility of the application to clean up the files generated by the framework. This can be done by keeping track of which files are used (e.g. using the request.app object), and listening to the server 'response' event to perform any needed cleaup. */ - output?: string; - /** can be true, false, or gunzip; determines if the incoming payload is processed or presented raw. true and gunzip includes gunzipping when the appropriate 'Content-Encoding' is specified on the received request. If parsing is enabled and the 'Content-Type' is known (for the whole payload as well as parts), the payload is converted into an object when possible. If the format is unknown, a Bad Request (400) error response is sent. Defaults to true, except when a proxy handler is used. The supported mime types are: - 'application/json' - 'application/x-www-form-urlencoded' - 'application/octet-stream' - 'text/ *' - 'multipart/form-data' */ - parse?: string | boolean; - /** a string or an array of strings with the allowed mime types for the endpoint.Defaults to any of the supported mime types listed above.Note that allowing other mime types not listed will not enable them to be parsed, and that if parsing mode is 'parse', the request will result in an error response. */ - allow?: string | string[]; - /** a mime type string overriding the 'Content-Type' header value received.Defaults to no override. */ - override?: string; - /** limits the size of incoming payloads to the specified byte count.Allowing very large payloads may cause the server to run out of memory.Defaults to 1048576 (1MB). */ - maxBytes?: number; - /** payload reception timeout in milliseconds.Sets the maximum time allowed for the client to transmit the request payload (body) before giving up and responding with a Request Timeout (408) error response.Set to false to disable.Defaults to 10000 (10 seconds). */ - timeout?: number; - /** the directory used for writing file uploads.Defaults to os.tmpDir(). */ - uploads?: string; - /** determines how to handle payload parsing errors. Allowed values are: - 'error'return a Bad Request (400) error response. This is the default value. - 'log'report the error but continue processing the request. - 'ignore'take no action and continue processing the request. */ - failAction?: string; - }; - /** pluginspecific configuration.plugins is an object where each key is a plugin name and the value is the plugin configuration. */ - plugins?: IDictionary; - /** an array with [route prerequisites] methods which are executed in serial or in parallel before the handler is called. */ - pre?: any[]; - /** validation rules for the outgoing response payload (response body).Can only validate object response: */ - response?: { - /** the default HTTP status code when the payload is empty. Value can be 200 or 204. - Note that a 200 status code is converted to a 204 only at the time or response transmission - (the response status code will remain 200 throughout the request lifecycle unless manually set). Defaults to 200. */ - emptyStatusCode?: number; - /** the default response object validation rules (for all non-error responses) expressed as one of: - true - any payload allowed (no validation performed). This is the default. - false - no payload allowed. - a Joi validation object. - a validation function using the signature function(value, options, next) where: - value - the object containing the response object. - options - the server validation options. - next(err) - the callback function called when validation is completed. */ - schema?: boolean | any; - /** HTTP status- codespecific validation rules.The status key is set to an object where each key is a 3 digit HTTP status code and the value has the same definition as schema.If a response status code is not present in the status object, the schema definition is used, expect for errors which are not validated by default. */ - status?: { [statusCode: number]: boolean | any }; - /** the percent of responses validated (0100).Set to 0 to disable all validation.Defaults to 100 (all responses). */ - sample?: number; - /** defines what to do when a response fails validation.Options are: - errorreturn an Internal Server Error (500) error response.This is the default value. - loglog the error but send the response. */ - failAction?: string; - /** if true, applies the validation rule changes to the response.Defaults to false. */ - modify?: boolean; - /** options to pass to Joi.Useful to set global options such as stripUnknown or abortEarly (the complete list is available here: https://github.com/hapijs/joi#validatevalue-schema-options-callback ).Defaults to no options. */ - options?: any; - }; - /** sets common security headers (disabled by default).To enable set security to true or to an object with the following options */ - security?: boolean | { - /** controls the 'Strict-Transport-Security' header.If set to true the header will be set to max- age=15768000, if specified as a number the maxAge parameter will be set to that number.Defaults to true.You may also specify an object with the following fields: */ - hsts?: boolean | number | { - /** the max- age portion of the header, as a number.Default is 15768000. */ - maxAge?: number; - /** a boolean specifying whether to add the includeSubdomains flag to the header. */ - includeSubdomains?: boolean; - /** a boolean specifying whether to add the 'preload' flag (used to submit domains inclusion in Chrome's HTTP Strict Transport Security (HSTS) preload list) to the header. */ - preload?: boolean; - }; - /** controls the 'X-Frame-Options' header.When set to true the header will be set to DENY, you may also specify a string value of 'deny' or 'sameorigin'.To use the 'allow-from' rule, you must set this to an object with the following fields: */ - xframe?: { - /** either 'deny', 'sameorigin', or 'allow-from' */ - rule: string; - /** when rule is 'allow-from' this is used to form the rest of the header, otherwise this field is ignored.If rule is 'allow-from' but source is unset, the rule will be automatically changed to 'sameorigin'. */ - source: string; - }; - /** boolean that controls the 'X-XSS-PROTECTION' header for IE.Defaults to true which sets the header to equal '1; mode=block'.NOTE: This setting can create a security vulnerability in versions of IE below 8, as well as unpatched versions of IE8.See here and here for more information.If you actively support old versions of IE, it may be wise to explicitly set this flag to false. */ - xss?: boolean; - /** boolean controlling the 'X-Download-Options' header for IE, preventing downloads from executing in your context.Defaults to true setting the header to 'noopen'. */ - noOpen?: boolean; - /** boolean controlling the 'X-Content-Type-Options' header.Defaults to true setting the header to its only and default option, 'nosniff'. */ - noSniff?: boolean; - }; - /** HTTP state management (cookies) allows the server to store information on the client which is sent back to the server with every request (as defined in RFC 6265).state supports the following options: */ - state?: { - /** determines if incoming 'Cookie' headers are parsed and stored in the request.state object.Defaults to true. */ - parse: boolean; - /** determines how to handle cookie parsing errors.Allowed values are: - 'error'return a Bad Request (400) error response.This is the default value. - 'log'report the error but continue processing the request. - 'ignore'take no action. */ - failAction: string; - }; - /** request input validation rules for various request components.When using a Joi validation object, the values of the other inputs (i.e.headers, query, params, payload, and auth) are made available under the validation context (accessible in rules as Joi.ref('$query.key')).Note that validation is performed in order(i.e.headers, params, query, payload) and if type casting is used (converting a string to number), the value of inputs not yet validated will reflect the raw, unvalidated and unmodified values.The validate object supports: */ - validate?: { - /** validation rules for incoming request headers.Values allowed: - * trueany headers allowed (no validation performed).This is the default. - falseno headers allowed (this will cause all valid HTTP requests to fail). - a Joi validation object. - a validation function using the signature function(value, options, next) where: - valuethe object containing the request headers. - optionsthe server validation options. - next(err, value)the callback function called when validation is completed. - */ - headers?: boolean | IJoi | IValidationFunction; + /** an alternative location for the route handler option. */ + handler?: ISessionHandler | string | IRouteHandlerConfig; + /** an optional unique identifier used to look up the route using server.lookup(). */ + id?: number; + /** optional arguments passed to JSON.stringify() when converting an object or error response to a string payload.Supports the following: */ + json?: { + /** the replacer function or array.Defaults to no action. */ + replacer?: Function | string[]; + /** number of spaces to indent nested object keys.Defaults to no indentation. */ + space?: number | string; + /** string suffix added after conversion to JSON string.Defaults to no suffix. */ + suffix?: string; + }; + /** enables JSONP support by setting the value to the query parameter name containing the function name used to wrap the response payload.For example, if the value is 'callback', a request comes in with 'callback=me', and the JSON response is '{ "a":"b" }', the payload will be 'me({ "a":"b" });'.Does not work with stream responses. */ + jsonp?: string; + /** determines how the request payload is processed: */ + payload?: { + /** the type of payload representation requested. The value must be one of: + 'data'the incoming payload is read fully into memory.If parse is true, the payload is parsed (JSON, formdecoded, multipart) based on the 'Content- Type' header.If parse is false, the raw Buffer is returned.This is the default value except when a proxy handler is used. + 'stream'the incoming payload is made available via a Stream.Readable interface.If the payload is 'multipart/form-data' and parse is true, fields values are presented as text while files are provided as streams.File streams from a 'multipart/form-data' upload will also have a property hapi containing filename and headers properties. + 'file'the incoming payload in written to temporary file in the directory specified by the server's payload.uploads settings. If the payload is 'multipart/ formdata' and parse is true, fields values are presented as text while files are saved. Note that it is the sole responsibility of the application to clean up the files generated by the framework. This can be done by keeping track of which files are used (e.g. using the request.app object), and listening to the server 'response' event to perform any needed cleaup. */ + output?: string; + /** can be true, false, or gunzip; determines if the incoming payload is processed or presented raw. true and gunzip includes gunzipping when the appropriate 'Content-Encoding' is specified on the received request. If parsing is enabled and the 'Content-Type' is known (for the whole payload as well as parts), the payload is converted into an object when possible. If the format is unknown, a Bad Request (400) error response is sent. Defaults to true, except when a proxy handler is used. The supported mime types are: + 'application/json' + 'application/x-www-form-urlencoded' + 'application/octet-stream' + 'text/ *' + 'multipart/form-data' */ + parse?: string | boolean; + /** a string or an array of strings with the allowed mime types for the endpoint.Defaults to any of the supported mime types listed above.Note that allowing other mime types not listed will not enable them to be parsed, and that if parsing mode is 'parse', the request will result in an error response. */ + allow?: string | string[]; + /** a mime type string overriding the 'Content-Type' header value received.Defaults to no override. */ + override?: string; + /** limits the size of incoming payloads to the specified byte count.Allowing very large payloads may cause the server to run out of memory.Defaults to 1048576 (1MB). */ + maxBytes?: number; + /** payload reception timeout in milliseconds.Sets the maximum time allowed for the client to transmit the request payload (body) before giving up and responding with a Request Timeout (408) error response.Set to false to disable.Defaults to 10000 (10 seconds). */ + timeout?: number; + /** the directory used for writing file uploads.Defaults to os.tmpDir(). */ + uploads?: string; + /** determines how to handle payload parsing errors. Allowed values are: + 'error'return a Bad Request (400) error response. This is the default value. + 'log'report the error but continue processing the request. + 'ignore'take no action and continue processing the request. */ + failAction?: string; + }; + /** pluginspecific configuration.plugins is an object where each key is a plugin name and the value is the plugin configuration. */ + plugins?: IDictionary; + /** an array with [route prerequisites] methods which are executed in serial or in parallel before the handler is called. */ + pre?: any[]; + /** validation rules for the outgoing response payload (response body).Can only validate object response: */ + response?: { + /** the default HTTP status code when the payload is empty. Value can be 200 or 204. + Note that a 200 status code is converted to a 204 only at the time or response transmission + (the response status code will remain 200 throughout the request lifecycle unless manually set). Defaults to 200. */ + emptyStatusCode?: number; + /** the default response object validation rules (for all non-error responses) expressed as one of: + true - any payload allowed (no validation performed). This is the default. + false - no payload allowed. + a Joi validation object. + a validation function using the signature function(value, options, next) where: + value - the object containing the response object. + options - the server validation options. + next(err) - the callback function called when validation is completed. */ + schema?: boolean | any; + /** HTTP status- codespecific validation rules.The status key is set to an object where each key is a 3 digit HTTP status code and the value has the same definition as schema.If a response status code is not present in the status object, the schema definition is used, expect for errors which are not validated by default. */ + status?: { [statusCode: number]: boolean | any }; + /** the percent of responses validated (0100).Set to 0 to disable all validation.Defaults to 100 (all responses). */ + sample?: number; + /** defines what to do when a response fails validation.Options are: + errorreturn an Internal Server Error (500) error response.This is the default value. + loglog the error but send the response. */ + failAction?: string; + /** if true, applies the validation rule changes to the response.Defaults to false. */ + modify?: boolean; + /** options to pass to Joi.Useful to set global options such as stripUnknown or abortEarly (the complete list is available here: https://github.com/hapijs/joi#validatevalue-schema-options-callback ).Defaults to no options. */ + options?: any; + }; + /** sets common security headers (disabled by default).To enable set security to true or to an object with the following options */ + security?: boolean | { + /** controls the 'Strict-Transport-Security' header.If set to true the header will be set to max- age=15768000, if specified as a number the maxAge parameter will be set to that number.Defaults to true.You may also specify an object with the following fields: */ + hsts?: boolean | number | { + /** the max- age portion of the header, as a number.Default is 15768000. */ + maxAge?: number; + /** a boolean specifying whether to add the includeSubdomains flag to the header. */ + includeSubdomains?: boolean; + /** a boolean specifying whether to add the 'preload' flag (used to submit domains inclusion in Chrome's HTTP Strict Transport Security (HSTS) preload list) to the header. */ + preload?: boolean; + }; + /** controls the 'X-Frame-Options' header.When set to true the header will be set to DENY, you may also specify a string value of 'deny' or 'sameorigin'.To use the 'allow-from' rule, you must set this to an object with the following fields: */ + xframe?: { + /** either 'deny', 'sameorigin', or 'allow-from' */ + rule: string; + /** when rule is 'allow-from' this is used to form the rest of the header, otherwise this field is ignored.If rule is 'allow-from' but source is unset, the rule will be automatically changed to 'sameorigin'. */ + source: string; + }; + /** boolean that controls the 'X-XSS-PROTECTION' header for IE.Defaults to true which sets the header to equal '1; mode=block'.NOTE: This setting can create a security vulnerability in versions of IE below 8, as well as unpatched versions of IE8.See here and here for more information.If you actively support old versions of IE, it may be wise to explicitly set this flag to false. */ + xss?: boolean; + /** boolean controlling the 'X-Download-Options' header for IE, preventing downloads from executing in your context.Defaults to true setting the header to 'noopen'. */ + noOpen?: boolean; + /** boolean controlling the 'X-Content-Type-Options' header.Defaults to true setting the header to its only and default option, 'nosniff'. */ + noSniff?: boolean; + }; + /** HTTP state management (cookies) allows the server to store information on the client which is sent back to the server with every request (as defined in RFC 6265).state supports the following options: */ + state?: { + /** determines if incoming 'Cookie' headers are parsed and stored in the request.state object.Defaults to true. */ + parse: boolean; + /** determines how to handle cookie parsing errors.Allowed values are: + 'error'return a Bad Request (400) error response.This is the default value. + 'log'report the error but continue processing the request. + 'ignore'take no action. */ + failAction: string; + }; + /** request input validation rules for various request components.When using a Joi validation object, the values of the other inputs (i.e.headers, query, params, payload, and auth) are made available under the validation context (accessible in rules as Joi.ref('$query.key')).Note that validation is performed in order(i.e.headers, params, query, payload) and if type casting is used (converting a string to number), the value of inputs not yet validated will reflect the raw, unvalidated and unmodified values.The validate object supports: */ + validate?: { + /** validation rules for incoming request headers.Values allowed: + * trueany headers allowed (no validation performed).This is the default. + falseno headers allowed (this will cause all valid HTTP requests to fail). + a Joi validation object. + a validation function using the signature function(value, options, next) where: + valuethe object containing the request headers. + optionsthe server validation options. + next(err, value)the callback function called when validation is completed. + */ + headers?: boolean | IJoi | IValidationFunction; - /** validation rules for incoming request path parameters, after matching the path against the route and extracting any parameters then stored in request.params.Values allowed: - trueany path parameters allowed (no validation performed).This is the default. - falseno path variables allowed. - a Joi validation object. - a validation function using the signature function(value, options, next) where: - valuethe object containing the path parameters. - optionsthe server validation options. - next(err, value)the callback function called when validation is completed. */ - params?: boolean | IJoi | IValidationFunction; - /** validation rules for an incoming request URI query component (the key- value part of the URI between '?' and '#').The query is parsed into its individual key- value pairs (using the qs module) and stored in request.query prior to validation.Values allowed: - trueany query parameters allowed (no validation performed).This is the default. - falseno query parameters allowed. - a Joi validation object. - a validation function using the signature function(value, options, next) where: - valuethe object containing the query parameters. - optionsthe server validation options. - next(err, value)the callback function called when validation is completed. */ - query?: boolean | IJoi | IValidationFunction; - /** validation rules for an incoming request payload (request body).Values allowed: - trueany payload allowed (no validation performed).This is the default. - falseno payload allowed. - a Joi validation object. - a validation function using the signature function(value, options, next) where: - valuethe object containing the payload object. - optionsthe server validation options. - next(err, value)the callback function called when validation is completed. */ - payload?: boolean | IJoi | IValidationFunction; - /** an optional object with error fields copied into every validation error response. */ - errorFields?: any; - /** determines how to handle invalid requests.Allowed values are: - 'error'return a Bad Request (400) error response.This is the default value. - 'log'log the error but continue processing the request. - 'ignore'take no action. - OR a custom error handler function with the signature 'function(request, reply, source, error)` where: - requestthe request object. - replythe continuation reply interface. - sourcethe source of the invalid field (e.g. 'path', 'query', 'payload'). - errorthe error object prepared for the client response (including the validation function error under error.data). */ - failAction?: string | IRouteFailFunction; - /** options to pass to Joi.Useful to set global options such as stripUnknown or abortEarly (the complete list is available here: https://github.com/hapijs/joi#validatevalue-schema-options-callback ).Defaults to no options. */ - options?: any; - }; - /** define timeouts for processing durations: */ - timeout?: { - /** response timeout in milliseconds.Sets the maximum time allowed for the server to respond to an incoming client request before giving up and responding with a Service Unavailable (503) error response.Disabled by default (false). */ - server: boolean | number; - /** by default, node sockets automatically timeout after 2 minutes.Use this option to override this behavior.Defaults to undefined which leaves the node default unchanged.Set to false to disable socket timeouts. */ - socket: boolean | number; - }; + /** validation rules for incoming request path parameters, after matching the path against the route and extracting any parameters then stored in request.params.Values allowed: + trueany path parameters allowed (no validation performed).This is the default. + falseno path variables allowed. + a Joi validation object. + a validation function using the signature function(value, options, next) where: + valuethe object containing the path parameters. + optionsthe server validation options. + next(err, value)the callback function called when validation is completed. */ + params?: boolean | IJoi | IValidationFunction; + /** validation rules for an incoming request URI query component (the key- value part of the URI between '?' and '#').The query is parsed into its individual key- value pairs (using the qs module) and stored in request.query prior to validation.Values allowed: + trueany query parameters allowed (no validation performed).This is the default. + falseno query parameters allowed. + a Joi validation object. + a validation function using the signature function(value, options, next) where: + valuethe object containing the query parameters. + optionsthe server validation options. + next(err, value)the callback function called when validation is completed. */ + query?: boolean | IJoi | IValidationFunction; + /** validation rules for an incoming request payload (request body).Values allowed: + trueany payload allowed (no validation performed).This is the default. + falseno payload allowed. + a Joi validation object. + a validation function using the signature function(value, options, next) where: + valuethe object containing the payload object. + optionsthe server validation options. + next(err, value)the callback function called when validation is completed. */ + payload?: boolean | IJoi | IValidationFunction; + /** an optional object with error fields copied into every validation error response. */ + errorFields?: any; + /** determines how to handle invalid requests.Allowed values are: + 'error'return a Bad Request (400) error response.This is the default value. + 'log'log the error but continue processing the request. + 'ignore'take no action. + OR a custom error handler function with the signature 'function(request, reply, source, error)` where: + requestthe request object. + replythe continuation reply interface. + sourcethe source of the invalid field (e.g. 'path', 'query', 'payload'). + errorthe error object prepared for the client response (including the validation function error under error.data). */ + failAction?: string | IRouteFailFunction; + /** options to pass to Joi.Useful to set global options such as stripUnknown or abortEarly (the complete list is available here: https://github.com/hapijs/joi#validatevalue-schema-options-callback ).Defaults to no options. */ + options?: any; + }; + /** define timeouts for processing durations: */ + timeout?: { + /** response timeout in milliseconds.Sets the maximum time allowed for the server to respond to an incoming client request before giving up and responding with a Service Unavailable (503) error response.Disabled by default (false). */ + server: boolean | number; + /** by default, node sockets automatically timeout after 2 minutes.Use this option to override this behavior.Defaults to undefined which leaves the node default unchanged.Set to false to disable socket timeouts. */ + socket: boolean | number; + }; - /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). - *route description used for generating documentation (string). - */ - description?: string; - /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). - *route notes used for generating documentation (string or array of strings). - */ - notes?: string | string[]; - /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). - *route tags used for generating documentation (array of strings). - */ - tags?: string[] -} + /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). + *route description used for generating documentation (string). + */ + description?: string; + /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). + *route notes used for generating documentation (string or array of strings). + */ + notes?: string | string[]; + /** ONLY WHEN ADDING NEW ROUTES (not when setting defaults). + *route tags used for generating documentation (array of strings). + */ + tags?: string[] + } -/** - * specifying the route access rules. Each rule is evaluated against an incoming request and access is granted if at least one rule matches - */ -export interface IRouteAdditionalConfigurationAuthAccess { - /** - * the application scope required to access the route. Value can be a scope string or an array of scope strings. - * The authenticated credentials object scope property must contain at least one of the scopes defined to access the route. - * If a scope string begins with a + character, that scope is required. If a scope string begins with a ! character, - * that scope is forbidden. For example, the scope ['!a', '+b', 'c', 'd'] means the incoming request credentials' - * scope must not include 'a', must include 'b', and must include on of 'c' or 'd'. You may also access properties - * on the request object (query and params} to populate a dynamic scope by using {} characters around the property name, - * such as 'user-{params.id}'. Defaults to false (no scope requirements). - */ - scope?: string | Array | boolean; - /** the required authenticated entity type. If set, must match the entity value of the authentication credentials. Available values: - * any - the authentication can be on behalf of a user or application. This is the default value. - * user - the authentication must be on behalf of a user which is identified by the presence of a user attribute in the credentials object returned by the authentication strategy. - * app - the authentication must be on behalf of an application which is identified by the lack of presence of a user attribute in the credentials object returned by the authentication strategy. - */ - entity?: string; -} + /** + * specifying the route access rules. Each rule is evaluated against an incoming request and access is granted if at least one rule matches + */ + export interface IRouteAdditionalConfigurationAuthAccess { + /** + * the application scope required to access the route. Value can be a scope string or an array of scope strings. + * The authenticated credentials object scope property must contain at least one of the scopes defined to access the route. + * If a scope string begins with a + character, that scope is required. If a scope string begins with a ! character, + * that scope is forbidden. For example, the scope ['!a', '+b', 'c', 'd'] means the incoming request credentials' + * scope must not include 'a', must include 'b', and must include on of 'c' or 'd'. You may also access properties + * on the request object (query and params} to populate a dynamic scope by using {} characters around the property name, + * such as 'user-{params.id}'. Defaults to false (no scope requirements). + */ + scope?: string | Array | boolean; + /** the required authenticated entity type. If set, must match the entity value of the authentication credentials. Available values: + * any - the authentication can be on behalf of a user or application. This is the default value. + * user - the authentication must be on behalf of a user which is identified by the presence of a user attribute in the credentials object returned by the authentication strategy. + * app - the authentication must be on behalf of an application which is identified by the lack of presence of a user attribute in the credentials object returned by the authentication strategy. + */ + entity?: string; + } -/** server.realm http://hapijs.com/api#serverrealm - The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(), - the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin). - Realms are a limited version of a sandbox where plugins can maintain state used by the framework when adding routes, extensions, and other properties. - The server.realm object should be considered read-only and must not be changed directly except for the plugins property can be directly manipulated by the plugins (each setting its own under plugins[name]). - exports.register = function (server, options, next) { -console.log(server.realm.modifiers.route.prefix); -return next(); -}; - */ -export interface IServerRealm { - /** when the server object is provided as an argument to the plugin register() method, modifiers provides the registration preferences passed the server.register() method */ - modifiers: { - /** routes preferences: */ - route: { - /** - the route path prefix used by any calls to server.route() from the server. */ - prefix: string; - /** the route virtual host settings used by any calls to server.route() from the server. */ - vhost: string; - }; + /** server.realm http://hapijs.com/api#serverrealm + The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(), + the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin). + Realms are a limited version of a sandbox where plugins can maintain state used by the framework when adding routes, extensions, and other properties. + The server.realm object should be considered read-only and must not be changed directly except for the plugins property can be directly manipulated by the plugins (each setting its own under plugins[name]). + exports.register = function (server, options, next) { + console.log(server.realm.modifiers.route.prefix); + return next(); + }; + */ + export interface IServerRealm { + /** when the server object is provided as an argument to the plugin register() method, modifiers provides the registration preferences passed the server.register() method */ + modifiers: { + /** routes preferences: */ + route: { + /** - the route path prefix used by any calls to server.route() from the server. */ + prefix: string; + /** the route virtual host settings used by any calls to server.route() from the server. */ + vhost: string; + }; - }; - /** the active plugin name (empty string if at the server root). */ - plugin: string; - /** plugin-specific state to be shared only among activities sharing the same active state. plugins is an object where each key is a plugin name and the value is the plugin state. */ - plugins: IDictionary; - /** settings overrides */ - settings: { - files: { - relativeTo: any; - }; - bind: any; - } -} -/** server.state(name, [options]) http://hapijs.com/api#serverstatename-options - HTTP state management uses client cookies to persist a state across multiple requests. Registers a cookie definitions where:*/ -export interface IServerState { + }; + /** the active plugin name (empty string if at the server root). */ + plugin: string; + /** plugin-specific state to be shared only among activities sharing the same active state. plugins is an object where each key is a plugin name and the value is the plugin state. */ + plugins: IDictionary; + /** settings overrides */ + settings: { + files: { + relativeTo: any; + }; + bind: any; + } + } + /** server.state(name, [options]) http://hapijs.com/api#serverstatename-options + HTTP state management uses client cookies to persist a state across multiple requests. Registers a cookie definitions where:*/ + export interface IServerState { /** - the cookie name string. */name: string; /** - are the optional cookie settings: */options: { @@ -731,1696 +732,1696 @@ export interface IServerState { /** - sets the 'HttpOnly' flag.Defaults to false.*/isHttpOnly: boolean /** - the path scope.Defaults to null (no path).*/path: any; /** - the domain scope.Defaults to null (no domain). */domain: any; - /** if present and the cookie was not received from the client or explicitly set by the route handler, the cookie is automatically added to the response with the provided value. The value can be a function with signature function(request, next) where: - request - the request object. - next - the continuation function using the function(err, value) signature.*/ - autoValue: (request: Request, next: (err: any, value: any) => void) => void; - /** - encoding performs on the provided value before serialization. Options are: - 'none' - no encoding. When used, the cookie value must be a string. This is the default value. - 'base64' - string value is encoded using Base64. - 'base64json' - object value is JSON-stringified than encoded using Base64. - 'form' - object value is encoded using the x-www-form-urlencoded method. - 'iron' - Encrypts and sign the value using iron.*/ - encoding: string; + /** if present and the cookie was not received from the client or explicitly set by the route handler, the cookie is automatically added to the response with the provided value. The value can be a function with signature function(request, next) where: + request - the request object. + next - the continuation function using the function(err, value) signature.*/ + autoValue: (request: Request, next: (err: any, value: any) => void) => void; + /** - encoding performs on the provided value before serialization. Options are: + 'none' - no encoding. When used, the cookie value must be a string. This is the default value. + 'base64' - string value is encoded using Base64. + 'base64json' - object value is JSON-stringified than encoded using Base64. + 'form' - object value is encoded using the x-www-form-urlencoded method. + 'iron' - Encrypts and sign the value using iron.*/ + encoding: string; /** - an object used to calculate an HMAC for cookie integrity validation.This does not provide privacy, only a mean to verify that the cookie value was generated by the server.Redundant when 'iron' encoding is used.Options are:*/sign: { /** - algorithm options.Defaults to require('iron').defaults.integrity.*/integrity: any; /** - password used for HMAC key generation.*/password: string; - }; + }; /** - password used for 'iron' encoding.*/password: string; /** - options for 'iron' encoding.Defaults to require('iron').defaults.*/iron: any; /** - if false, errors are ignored and treated as missing cookies.*/ignoreErrors: boolean; /** - if true, automatically instruct the client to remove invalid cookies.Defaults to false.*/clearInvalid: boolean; /** - if false, allows any cookie value including values in violation of RFC 6265. Defaults to true.*/strictHeader: boolean; /** - overrides the default proxy localStatePassThrough setting.*/passThrough: any; - }; -} + }; + } -export interface IFileHandlerConfig { - /** a path string or function as described above.*/ - path: string; - /** an optional filename to specify if sending a 'Content-Disposition' header, defaults to the basename of path*/ - filename?: string; - /**- specifies whether to include the 'Content-Disposition' header with the response. Available values: - false - header is not included. This is the default value. - 'attachment' - 'inline'*/ - mode?: boolean | string; - /** if true, looks for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false.*/ - lookupCompressed: boolean; -} + export interface IFileHandlerConfig { + /** a path string or function as described above.*/ + path: string; + /** an optional filename to specify if sending a 'Content-Disposition' header, defaults to the basename of path*/ + filename?: string; + /**- specifies whether to include the 'Content-Disposition' header with the response. Available values: + false - header is not included. This is the default value. + 'attachment' + 'inline'*/ + mode?: boolean | string; + /** if true, looks for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false.*/ + lookupCompressed: boolean; + } -/**http://hapijs.com/api#route-handler - Built-in handlers + /**http://hapijs.com/api#route-handler + Built-in handlers - The framework comes with a few built-in handler types available by setting the route handler config to an object containing one of these keys.*/ -export interface IRouteHandlerConfig { - /** generates a static file endpoint for serving a single file. file can be set to: - a relative or absolute file path string (relative paths are resolved based on the route files configuration). - a function with the signature function(request) which returns the relative or absolute file path. - an object with the following options */ - file?: string | IRequestHandler | IFileHandlerConfig; - /** directory - generates a directory endpoint for serving static content from a directory. Routes using the directory handler must include a path parameter at the end of the path string (e.g. /path/to/somewhere/{param} where the parameter name does not matter). The path parameter can use any of the parameter options (e.g. {param} for one level files only, {param?} for one level files or the directory root, {param*} for any level, or {param*3} for a specific level). If additional path parameters are present, they are ignored for the purpose of selecting the file system resource. The directory handler is an object with the following options: - path - (required) the directory root path (relative paths are resolved based on the route files configuration). Value can be: - a single path string used as the prefix for any resources requested by appending the request path parameter to the provided string. - an array of path strings. Each path will be attempted in order until a match is found (by following the same process as the single path string). - a function with the signature function(request) which returns the path string or an array of path strings. If the function returns an error, the error is passed back to the client in the response. - index - optional boolean|string|string[], determines if an index file will be served if found in the folder when requesting a directory. The given string or strings specify the name(s) of the index file to look for. If true, looks for 'index.html'. Any falsy value disables index file lookup. Defaults to true. - listing - optional boolean, determines if directory listing is generated when a directory is requested without an index document. Defaults to false. - showHidden - optional boolean, determines if hidden files will be shown and served. Defaults to false. - redirectToSlash - optional boolean, determines if requests for a directory without a trailing slash are redirected to the same path with the missing slash. Useful for ensuring relative links inside the response are resolved correctly. Disabled when the server config router.stripTrailingSlash is true.Defaults to false. - lookupCompressed - optional boolean, instructs the file processor to look for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. - defaultExtension - optional string, appended to file requests if the requested file is not found. Defaults to no extension.*/ - directory?: { - path: string | Array | IRequestHandler | IRequestHandler>; - index?: boolean | string | string[]; - listing?: boolean; - showHidden?: boolean; - redirectToSlash?: boolean; - lookupCompressed?: boolean; - defaultExtension?: string; - }; - proxy?: IProxyHandlerConfig; - view?: string | { - template: string; - context: { - payload: any; - params: any; - query: any; - pre: any; - } - }; - config?: { - handler: any; - bind: any; - app: any; - plugins: { - [name: string]: any; - }; - pre: Array<() => void>; - validate: { - headers: any; - params: any; - query: any; - payload: any; - errorFields?: any; - failAction?: string | IFailAction; - }; - payload: { - output: { - data: any; - stream: any; - file: any; + The framework comes with a few built-in handler types available by setting the route handler config to an object containing one of these keys.*/ + export interface IRouteHandlerConfig { + /** generates a static file endpoint for serving a single file. file can be set to: + a relative or absolute file path string (relative paths are resolved based on the route files configuration). + a function with the signature function(request) which returns the relative or absolute file path. + an object with the following options */ + file?: string | IRequestHandler | IFileHandlerConfig; + /** directory - generates a directory endpoint for serving static content from a directory. Routes using the directory handler must include a path parameter at the end of the path string (e.g. /path/to/somewhere/{param} where the parameter name does not matter). The path parameter can use any of the parameter options (e.g. {param} for one level files only, {param?} for one level files or the directory root, {param*} for any level, or {param*3} for a specific level). If additional path parameters are present, they are ignored for the purpose of selecting the file system resource. The directory handler is an object with the following options: + path - (required) the directory root path (relative paths are resolved based on the route files configuration). Value can be: + a single path string used as the prefix for any resources requested by appending the request path parameter to the provided string. + an array of path strings. Each path will be attempted in order until a match is found (by following the same process as the single path string). + a function with the signature function(request) which returns the path string or an array of path strings. If the function returns an error, the error is passed back to the client in the response. + index - optional boolean|string|string[], determines if an index file will be served if found in the folder when requesting a directory. The given string or strings specify the name(s) of the index file to look for. If true, looks for 'index.html'. Any falsy value disables index file lookup. Defaults to true. + listing - optional boolean, determines if directory listing is generated when a directory is requested without an index document. Defaults to false. + showHidden - optional boolean, determines if hidden files will be shown and served. Defaults to false. + redirectToSlash - optional boolean, determines if requests for a directory without a trailing slash are redirected to the same path with the missing slash. Useful for ensuring relative links inside the response are resolved correctly. Disabled when the server config router.stripTrailingSlash is true.Defaults to false. + lookupCompressed - optional boolean, instructs the file processor to look for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. + defaultExtension - optional string, appended to file requests if the requested file is not found. Defaults to no extension.*/ + directory?: { + path: string | Array | IRequestHandler | IRequestHandler>; + index?: boolean | string | string[]; + listing?: boolean; + showHidden?: boolean; + redirectToSlash?: boolean; + lookupCompressed?: boolean; + defaultExtension?: string; + }; + proxy?: IProxyHandlerConfig; + view?: string | { + template: string; + context: { + payload: any; + params: any; + query: any; + pre: any; + } + }; + config?: { + handler: any; + bind: any; + app: any; + plugins: { + [name: string]: any; + }; + pre: Array<() => void>; + validate: { + headers: any; + params: any; + query: any; + payload: any; + errorFields?: any; + failAction?: string | IFailAction; + }; + payload: { + output: { + data: any; + stream: any; + file: any; + }; + parse?: any; + allow?: string | Array; + override?: string; + maxBytes?: number; + uploads?: number; + failAction?: string; + }; + response: { + schema: any; + sample: number; + failAction: string; + }; + cache: { + privacy: string; + expiresIn: number; + expiresAt: number; + }; + auth: string | boolean | { + mode: string; + strategies: Array; + payload?: boolean | string; + tos?: boolean | string; + scope?: string | Array; + entity: string; + }; + cors?: boolean; + jsonp?: string; + description?: string; + notes?: string | Array; + tags?: Array; + }; + } + /** Route configuration + The route configuration object*/ + export interface IRouteConfiguration { + /** - (required) the absolute path used to match incoming requests (must begin with '/'). Incoming requests are compared to the configured paths based on the connection router configuration option.The path can include named parameters enclosed in {} which will be matched against literal values in the request as described in Path parameters.*/ + path: string; + /** - (required) the HTTP method.Typically one of 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', or 'OPTIONS'.Any HTTP method is allowed, except for 'HEAD'.Use '*' to match against any HTTP method (only when an exact match was not found, and any match with a specific method will be given a higher priority over a wildcard match). + * Can be assigned an array of methods which has the same result as adding the same route with different methods manually.*/ + method: string | string[]; + /** - an optional domain string or an array of domain strings for limiting the route to only requests with a matching host header field.Matching is done against the hostname part of the header only (excluding the port).Defaults to all hosts.*/ + vhost?: string; + /** - (required) the function called to generate the response after successful authentication and validation.The handler function is described in Route handler.If set to a string, the value is parsed the same way a prerequisite server method string shortcut is processed.Alternatively, handler can be assigned an object with a single key using the name of a registered handler type and value with the options passed to the registered handler.*/ + handler: ISessionHandler | string | IRouteHandlerConfig; + /** - additional route options.*/ + config?: IRouteAdditionalConfigurationOptions; + } + /** Route public interface When route information is returned or made available as a property. http://hapijs.com/api#route-public-interface */ + export interface IRoute { + + + /** the route HTTP method. */ + method: string; + /** the route path. */ + path: string; + /** the route vhost option if configured. */ + vhost?: string | Array; + /** the [active realm] associated with the route.*/ + realm: IServerRealm; + /** the [route options] object with all defaults applied. */ + settings: IRouteAdditionalConfigurationOptions; + } + + export interface IServerAuthScheme { + /** authenticate(request, reply) - required function called on each incoming request configured with the authentication scheme where: + request - the request object. + reply - the reply interface the authentication method must call when done authenticating the request where: + reply(err, response, result) - is called if authentication failed where: + err - any authentication error. + response - any authentication response action such as redirection. Ignored if err is present, otherwise required. + result - an object containing: + credentials - the authenticated credentials. + artifacts - optional authentication artifacts. + reply.continue(result) - is called if authentication succeeded where: + result - same object as result above. + When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route. + .If the err returned by the reply() method includes a message, no additional strategies will be attempted. + If the err does not include a message but does include a scheme name (e.g. Boom.unauthorized(null, 'Custom')), additional strategies will be attempted in order of preference. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + var scheme = function (server, options) { + return { + authenticate: function (request, reply) { + var req = request.raw.req; + var authorization = req.headers.authorization; + if (!authorization) { + return reply(Boom.unauthorized(null, 'Custom')); + } + return reply(null, { credentials: { user: 'john' } }); + } + }; + }; + server.auth.scheme('custom', scheme);*/ + authenticate(request: Request, reply: IReply): void; + /** payload(request, reply) - optional function called to authenticate the request payload where: + request - the request object. + reply(err, response) - is called if authentication failed where: + err - any authentication error. + response - any authentication response action such as redirection. Ignored if err is present, otherwise required. + reply.continue() - is called if payload authentication succeeded. + When the scheme payload() method returns an error with a message, it means payload validation failed due to bad payload. If the error has no message but includes a scheme name (e.g. Boom.unauthorized(null, 'Custom')), authentication may still be successful if the route auth.payload configuration is set to 'optional'.*/ + payload?(request: Request, reply: IReply): void; + /** response(request, reply) - optional function called to decorate the response with authentication headers before the response headers or payload is written where: + request - the request object. + reply(err, response) - is called if an error occurred where: + err - any authentication error. + response - any authentication response to send instead of the current response. Ignored if err is present, otherwise required. + reply.continue() - is called if the operation succeeded.*/ + response?(request: Request, reply: IReply): void; + /** an optional object */ + options?: { + /** if true, requires payload validation as part of the scheme and forbids routes from disabling payload auth validation. Defaults to false.*/ + payload: boolean; + } + } + + /**the response object where: + statusCode - the HTTP status code. + headers - an object containing the headers set. + payload - the response payload string. + rawPayload - the raw response payload buffer. + raw - an object with the injection request and response objects: + req - the simulated node request object. + res - the simulated node response object. + result - the raw handler response (e.g. when not a stream or a view) before it is serialized for transmission. If not available, the value is set to payload. Useful for inspection and reuse of the internal objects returned (instead of parsing the response string). + request - the request object.*/ + export interface IServerInjectResponse { + statusCode: number; + headers: IDictionary; + payload: string; + rawPayload: Buffer; + raw: { + req: http.ClientRequest; + res: http.ServerResponse + }; + result: string; + request: Request; + } + + export interface IServerInject { + (options: string | IServerInjectOptions, callback: (res: IServerInjectResponse) => void): void; + (options: string | IServerInjectOptions): IPromise; + } + + export interface IServerInjectOptions { + /** the request HTTP method (e.g. 'POST'). Defaults to 'GET'.*/ + method: string; + /** the request URL. If the URI includes an authority (e.g. 'example.com:8080'), it is used to automatically set an HTTP 'Host' header, unless one was specified in headers.*/ + url: string; + /** an object with optional request headers where each key is the header name and the value is the header content. Defaults to no additions to the default Shot headers.*/ + headers?: IDictionary; + /** n optional string, buffer or object containing the request payload. In case of an object it will be converted to a string for you. Defaults to no payload. Note that payload processing defaults to 'application/json' if no 'Content-Type' header provided.*/ + payload?: string | {} | Buffer; + /** an optional credentials object containing authentication information. The credentials are used to bypass the default authentication strategies, and are validated directly as if they were received via an authentication scheme. Defaults to no credentials.*/ + credentials?: any; + /** an optional artifacts object containing authentication artifact information. The artifacts are used to bypass the default authentication strategies, and are validated directly as if they were received via an authentication scheme. Ignored if set without credentials. Defaults to no artifacts.*/ + artifacts?: any; + /** sets the initial value of request.app*/ + app?: any; + /** sets the initial value of request.plugins*/ + plugins?: any; + /** allows access to routes with config.isInternal set to true. Defaults to false.*/ + allowInternals?: boolean; + /** sets the remote address for the incoming connection.*/ + remoteAddress?: boolean; + /**object with options used to simulate client request stream conditions for testing: + error - if true, emits an 'error' event after payload transmission (if any). Defaults to false. + close - if true, emits a 'close' event after payload transmission (if any). Defaults to false. + end - if false, does not end the stream. Defaults to true.*/ + simulate?: { + error: boolean; + close: boolean; + end: boolean; + }; + } + + + /** host - optional host to filter routes matching a specific virtual host. Defaults to all virtual hosts. + The return value is an array where each item is an object containing: + info - the connection.info the connection the table was generated for. + labels - the connection labels. + table - an array of routes where each route contains: + settings - the route config with defaults applied. + method - the HTTP method in lower case. + path - the route path.*/ + export interface IConnectionTable { + info: any; + labels: any; + table: IRoute[]; + } + + export interface ICookieSettings { + /** - time - to - live in milliseconds.Defaults to null (session time- life - cookies are deleted when the browser is closed).*/ + ttl?: number; + /** - sets the 'Secure' flag.Defaults to false.*/ + isSecure?: boolean; + /** - sets the 'HttpOnly' flag.Defaults to false.*/ + isHttpOnly?: boolean; + /** - the path scope.Defaults to null (no path).*/ + path?: string; + /** - the domain scope.Defaults to null (no domain).*/ + domain?: any; + /** - if present and the cookie was not received from the client or explicitly set by the route handler, the cookie is automatically added to the response with the provided value.The value can be a function with signature function(request, next) where: + request - the request object. + next - the continuation function using the function(err, value) signature.*/ + autoValue?: (request: Request, next: (err: any, value: any) => void) => void; + /** - encoding performs on the provided value before serialization.Options are: + 'none' - no encoding.When used, the cookie value must be a string.This is the default value. + 'base64' - string value is encoded using Base64. + 'base64json' - object value is JSON- stringified than encoded using Base64. + 'form' - object value is encoded using the x- www - form - urlencoded method. */ + encoding?: string; + /** - an object used to calculate an HMAC for cookie integrity validation.This does not provide privacy, only a mean to verify that the cookie value was generated by the server.Redundant when 'iron' encoding is used.Options are: + integrity - algorithm options.Defaults to require('iron').defaults.integrity. + password - password used for HMAC key generation. */ + sign?: { integrity: any; password: string; } + password?: string; + iron?: any; + ignoreErrors?: boolean; + clearInvalid?: boolean; + strictHeader?: boolean; + passThrough?: any; + } + + /** method - the method function with the signature is one of: + function(arg1, arg2, ..., argn, next) where: + arg1, arg2, etc. - the method function arguments. + next - the function called when the method is done with the signature function(err, result, ttl) where: + err - error response if the method failed. + result - the return value. + ttl - 0 if result is valid but cannot be cached. Defaults to cache policy. + function(arg1, arg2, ..., argn) where: + arg1, arg2, etc. - the method function arguments. + the callback option is set to false. + the method must returns a value (result, Error, or a promise) or throw an Error.*/ + export interface IServerMethod { + //(): void; + //(next: (err: any, result: any, ttl: number) => void): void; + //(arg1: any): void; + //(arg1: any, arg2: any, next: (err: any, result: any, ttl: number) => void): void; + //(arg1: any, arg2: any): void; + (...args: any[]): void; + + } + /** options - optional configuration: + bind - a context object passed back to the method function (via this) when called. Defaults to active context (set via server.bind() when the method is registered. + cache - the same cache configuration used in server.cache(). + callback - if false, expects the method to be a synchronous function. Note that using a synchronous function with caching will convert the method interface to require a callback as an additional argument with the signature function(err, result, cached, report) since the cache interface cannot return values synchronously. Defaults to true. + generateKey - a function used to generate a unique key (for caching) from the arguments passed to the method function (the callback argument is not passed as input). The server will automatically generate a unique key if the function's arguments are all of types 'string', 'number', or 'boolean'. However if the method uses other types of arguments, a key generation function must be provided which takes the same arguments as the function and returns a unique string (or null if no key can be generated).*/ + export interface IServerMethodOptions { + bind?: any; + cache?: ICatBoxCacheOptions; + callback?: boolean; + generateKey?(args: any[]): string; + } + /** Request object + + The request object is created internally for each incoming request. It is different from the node.js request object received from the HTTP server callback (which is available in request.raw.req). The request object methods and properties change throughout the request lifecycle. + Request events + + The request object supports the following events: + + 'peek' - emitted for each chunk of payload data read from the client connection. The event method signature is function(chunk, encoding). + 'finish' - emitted when the request payload finished reading. The event method signature is function (). + 'disconnect' - emitted when a request errors or aborts unexpectedly. + var Crypto = require('crypto'); + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + server.ext('onRequest', function (request, reply) { + + var hash = Crypto.createHash('sha1'); + request.on('peek', function (chunk) { + + hash.update(chunk); + }); + + request.once('finish', function () { + + console.log(hash.digest('hex')); + }); + + request.once('disconnect', function () { + + console.error('request aborted'); + }); + + return reply.continue(); + });*/ + export class Request extends Events.EventEmitter { + /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ + app: any; + /** authentication information*/ + auth: { + /** true is the request has been successfully authenticated, otherwise false.*/ + isAuthenticated: boolean; + /** the credential object received during the authentication process. The presence of an object does not mean successful authentication. can be set in the validate function's callback.*/ + credentials: any; + /** an artifact object received from the authentication strategy and used in authentication-related actions.*/ + artifacts: any; + /** the route authentication mode.*/ + mode: any; + /** the authentication error is failed and mode set to 'try'.*/ + error: any; + }; + /** the connection used by this request*/ + connection: ServerConnection; + /** the node domain object used to protect against exceptions thrown in extensions, handlers and route prerequisites. Can be used to manually bind callback functions otherwise bound to other domains.*/ + domain: any; + /** the raw request headers (references request.raw.headers).*/ + headers: IDictionary; + /** a unique request identifier (using the format '{now}:{connection.info.id}:{5 digits counter}').*/ + id: number; + /** request information */ + info: { + /** the request preferred encoding. */ + acceptEncoding: string; + /** if CORS is enabled for the route, contains the following: */ + cors: { + isOriginMatch: boolean; /** true if the request 'Origin' header matches the configured CORS restrictions. Set to false if no 'Origin' header is found or if it does not match. Note that this is only available after the 'onRequest' extension point as CORS is configured per-route and no routing decisions are made at that point in the request lifecycle. */ + }; + /** content of the HTTP 'Host' header (e.g. 'example.com:8080'). */ + host: string; + /** the hostname part of the 'Host' header (e.g. 'example.com').*/ + hostname: string; + /** request reception timestamp. */ + received: number; + /** content of the HTTP 'Referrer' (or 'Referer') header. */ + referrer: string; + /** remote client IP address. */ + remoteAddress: string; + /** remote client port. */ + remotePort: number; + /** request response timestamp (0 is not responded yet). */ + responded: number; + }; + /** the request method in lower case (e.g. 'get', 'post'). */ + method: string; + /** the parsed content-type header. Only available when payload parsing enabled and no payload error occurred. */ + mime: string; + /** an object containing the values of params, query, and payload before any validation modifications made. Only set when input validation is performed.*/ + orig: { + params: any; + query: any; + payload: any; + }; + /** an object where each key is a path parameter name with matching value as described in Path parameters.*/ + params: IDictionary; + /** an array containing all the path params values in the order they appeared in the path.*/ + paramsArray: string[]; + /** the request URI's path component. */ + path: string; + /** the request payload based on the route payload.output and payload.parse settings.*/ + payload: stream.Readable | Buffer | any; + /** plugin-specific state. Provides a place to store and pass request-level plugin data. The plugins is an object where each key is a plugin name and the value is the state.*/ + plugins: any; + /** an object where each key is the name assigned by a route prerequisites function. The values are the raw values provided to the continuation function as argument. For the wrapped response object, use responses.*/ + pre: IDictionary; + /** the response object when set. The object can be modified but must not be assigned another object. To replace the response with another from within an extension point, use reply(response) to override with a different response. Contains null when no response has been set (e.g. when a request terminates prematurely when the client disconnects).*/ + response: Response; + /**preResponses - same as pre but represented as the response object created by the pre method.*/ + preResponses: any; + /**an object containing the query parameters.*/ + query: any; + /** an object containing the Node HTTP server objects. Direct interaction with these raw objects is not recommended.*/ + raw: { + req: http.ClientRequest; + res: http.ServerResponse; + }; + /** the route public interface.*/ + route: IRoute; + /** the server object. */ + server: Server; + /** an object containing parsed HTTP state information (cookies) where each key is the cookie name and value is the matching cookie content after processing using any registered cookie definition. */ + state: any; + /** complex object contining details on the url */ + url: { + /** null when i tested */ + auth: any; + /** null when i tested */ + hash: any; + /** null when i tested */ + host: any; + /** null when i tested */ + hostname: any; + href: string; + path: string; + /** path without search*/ + pathname: string; + /** null when i tested */ + port: any; + /** null when i tested */ + protocol: any; + /** querystring parameters*/ + query: IDictionary; + /** querystring parameters as a string*/ + search: string; + /** null when i tested */ + slashes: any; + }; + + /** request.setUrl(url) + + Available only in 'onRequest' extension methods. + + Changes the request URI before the router begins processing the request where: + + url - the new request path value. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + server.ext('onRequest', function (request, reply) { + + // Change all requests to '/test' + request.setUrl('/test'); + return reply.continue(); + });*/ + setUrl(url: string | url.Url): void; + /** request.setMethod(method) + + Available only in 'onRequest' extension methods. + + Changes the request method before the router begins processing the request where: + + method - is the request HTTP method (e.g. 'GET'). + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + server.ext('onRequest', function (request, reply) { + + // Change all requests to 'GET' + request.setMethod('GET'); + return reply.continue(); + });*/ + setMethod(method: string): void; + + /** request.log(tags, [data, [timestamp]]) + + Always available. + + Logs request-specific events. When called, the server emits a 'request' event which can be used by other listeners or plugins. The arguments are: + + data - an optional message string or object with the application data being logged. + timestamp - an optional timestamp expressed in milliseconds. Defaults to Date.now() (now). + Any logs generated by the server internally will be emitted only on the 'request-internal' channel and will include the event.internal flag set to true. + + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + server.on('request', function (request, event, tags) { + + if (tags.error) { + console.log(event); + } + }); + + var handler = function (request, reply) { + + request.log(['test', 'error'], 'Test event'); + return reply(); + }; + */ + log(/** a string or an array of strings (e.g. ['error', 'database', 'read']) used to identify the event. Tags are used instead of log levels and provide a much more expressive mechanism for describing and filtering events.*/ + tags: string | string[], + /** an optional message string or object with the application data being logged.*/ + data?: string, + /** an optional timestamp expressed in milliseconds. Defaults to Date.now() (now).*/ + timestamp?: number): void; + + /** request.getLog([tags], [internal]) + + Always available. + + Returns an array containing the events matching any of the tags specified (logical OR) + request.getLog(); + request.getLog('error'); + request.getLog(['error', 'auth']); + request.getLog(['error'], true); + request.getLog(false);*/ + + getLog(/** is a single tag string or array of tag strings. If no tags specified, returns all events.*/ + tags?: string, + /** filters the events to only those with a matching event.internal value. If true, only internal logs are included. If false, only user event are included. Defaults to all events (undefined).*/ + internal?: boolean): string[]; + + /** request.tail([name]) + + Available until immediately after the 'response' event is emitted. + + Adds a request tail which has to complete before the request lifecycle is complete where: + + name - an optional tail name used for logging purposes. + Returns a tail function which must be called when the tail activity is completed. + + Tails are actions performed throughout the request lifecycle, but which may end after a response is sent back to the client. For example, a request may trigger a database update which should not delay sending back a response. However, it is still desirable to associate the activity with the request when logging it (or an error associated with it). + + When all tails completed, the server emits a 'tail' event. + + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + var get = function (request, reply) { + + var dbTail = request.tail('write to database'); + + db.save('key', 'value', function () { + + dbTail(); + }); + + return reply('Success!'); + }; + + server.route({ method: 'GET', path: '/', handler: get }); + + server.on('tail', function (request) { + + console.log('Request completed including db activity'); + });*/ + tail(/** an optional tail name used for logging purposes.*/ + name?: string): Function; + } + /** Response events + + The response object supports the following events: + + 'peek' - emitted for each chunk of data written back to the client connection. The event method signature is function(chunk, encoding). + 'finish' - emitted when the response finished writing but before the client response connection is ended. The event method signature is function (). + var Crypto = require('crypto'); + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + + server.ext('onPreResponse', function (request, reply) { + + var response = request.response; + if (response.isBoom) { + return reply(); + } + + var hash = Crypto.createHash('sha1'); + response.on('peek', function (chunk) { + + hash.update(chunk); + }); + + response.once('finish', function () { + + console.log(hash.digest('hex')); + }); + + return reply.continue(); + });*/ + export class Response extends Events.EventEmitter { + isBoom: boolean; + /** the HTTP response status code. Defaults to 200 (except for errors).*/ + statusCode: number; + /** an object containing the response headers where each key is a header field name. Note that this is an incomplete list of headers to be included with the response. Additional headers will be added once the response is prepare for transmission.*/ + headers: IDictionary; + /** the value provided using the reply interface.*/ + source: any; + /** a string indicating the type of source with available values: + 'plain' - a plain response such as string, number, null, or simple object (e.g. not a Stream, Buffer, or view). + 'buffer' - a Buffer. + 'view' - a view generated with reply.view(). + 'file' - a file generated with reply.file() of via the directory handler. + 'stream' - a Stream. + 'promise' - a Promise object. */ + variety: string; + /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ + app: any; + /** plugin-specific state. Provides a place to store and pass request-level plugin data. The plugins is an object where each key is a plugin name and the value is the state. */ + plugins: any; + /** settings - response handling flags: + charset - the 'Content-Type' HTTP header 'charset' property. Defaults to 'utf-8'. + encoding - the string encoding scheme used to serial data into the HTTP payload when source is a string or marshals into a string. Defaults to 'utf8'. + passThrough - if true and source is a Stream, copies the statusCode and headers of the stream to the outbound response. Defaults to true. + stringify - options used for source value requiring stringification. Defaults to no replacer and no space padding. + ttl - if set, overrides the route cache expiration milliseconds value set in the route config. Defaults to no override. + varyEtag - if true, a suffix will be automatically added to the 'ETag' header at transmission time (separated by a '-' character) when the HTTP 'Vary' header is present.*/ + settings: { + charset: string; + encoding: string; + passThrough: boolean; + stringify: any; + ttl: number; + varyEtag: boolean; + } + + /** sets the HTTP 'Content-Length' header (to avoid chunked transfer encoding) where: + length - the header value. Must match the actual payload size.*/ + bytes(length: number): Response; + + /** sets the 'Content-Type' HTTP header 'charset' property where: charset - the charset property value.*/ + charset(charset: string): Response; + + /** sets the HTTP status code where: + statusCode - the HTTP status code.*/ + code(statusCode: number): Response; + + /** sets the HTTP status code to Created (201) and the HTTP 'Location' header where: uri - an absolute or relative URI used as the 'Location' header value.*/ + created(uri: string): Response; + + + /** encoding(encoding) - sets the string encoding scheme used to serial data into the HTTP payload where: encoding - the encoding property value (see node Buffer encoding).*/ + encoding(encoding: string): Response; + + /** etag(tag, options) - sets the representation entity tag where: + tag - the entity tag string without the double-quote. + options - optional settings where: + weak - if true, the tag will be prefixed with the 'W/' weak signifier. Weak tags will fail to match identical tags for the purpose of determining 304 response status. Defaults to false. + vary - if true and content encoding is set or applied to the response (e.g 'gzip' or 'deflate'), the encoding name will be automatically added to the tag at transmission time (separated by a '-' character). Ignored when weak is true. Defaults to true.*/ + etag(tag: string, options: { + weak: boolean; vary: boolean; + }): Response; + + /**header(name, value, options) - sets an HTTP header where: + name - the header name. + value - the header value. + options - optional settings where: + append - if true, the value is appended to any existing header value using separator. Defaults to false. + separator - string used as separator when appending to an exiting value. Defaults to ','. + override - if false, the header value is not set if an existing value present. Defaults to true.*/ + header(name: string, value: string, options?: IHeaderOptions): Response; + + /** hold() - puts the response on hold until response.send() is called. Available only after reply() is called and until response.hold() is invoked once. */ + hold(): Response; + + /** location(uri) - sets the HTTP 'Location' header where: + uri - an absolute or relative URI used as the 'Location' header value.*/ + location(uri: string): Response; + + /** redirect(uri) - sets an HTTP redirection response (302) and decorates the response with additional methods listed below, where: + uri - an absolute or relative URI used to redirect the client to another resource. */ + redirect(uri: string): Response; + + /** replacer(method) - sets the JSON.stringify() replacer argument where: + method - the replacer function or array. Defaults to none.*/ + replacer(method: Function | Array): Response; + + /** spaces(count) - sets the JSON.stringify() space argument where: + count - the number of spaces to indent nested object keys. Defaults to no indentation. */ + spaces(count: number): Response; + + /**state(name, value, [options]) - sets an HTTP cookie where: + name - the cookie name. + value - the cookie value. If no encoding is defined, must be a string. + options - optional configuration. If the state was previously registered with the server using server.state(), the specified keys in options override those same keys in the server definition (but not others).*/ + state(name: string, value: string, options?: any): Response; + + /** send() - resume the response which will be transmitted in the next tick. Available only after response.hold() is called and until response.send() is invoked once. */ + send(): void; + + /** sets a string suffix when the response is process via JSON.stringify().*/ + suffix(suffix: string): void; + + /** overrides the default route cache expiration rule for this response instance where: + msec - the time-to-live value in milliseconds.*/ + ttl(msec: number): void; + + /** type(mimeType) - sets the HTTP 'Content-Type' header where: + mimeType - is the mime type. Should only be used to override the built-in default for each response type. */ + type(mimeType: string): Response; + + /** clears the HTTP cookie by setting an expired value where: + name - the cookie name. + options - optional configuration for expiring cookie. If the state was previously registered with the server using server.state(), the specified keys in options override those same keys in the server definition (but not others).*/ + unstate(name: string, options?: { [key: string]: string }): Response; + + /** adds the provided header to the list of inputs affected the response generation via the HTTP 'Vary' header where: + header - the HTTP request header name.*/ + vary(header: string): void; + } + /** When using the redirect() method, the response object provides these additional methods */ + export class ResponseRedirect extends Response { + /** sets the status code to 302 or 307 (based on the rewritable() setting) where: + isTemporary - if false, sets status to permanent. Defaults to true.*/ + temporary(isTemporary: boolean): void; + + /** sets the status code to 301 or 308 (based on the rewritable() setting) where: + isPermanent - if true, sets status to temporary. Defaults to false. */ + permanent(isPermanent: boolean): void; + + /** sets the status code to 301/302 for rewritable (allows changing the request method from 'POST' to 'GET') or 307/308 for non-rewritable (does not allow changing the request method from 'POST' to 'GET'). Exact code based on the temporary() or permanent() setting. Arguments: + isRewritable - if false, sets to non-rewritable. Defaults to true. + Permanent Temporary + Rewritable 301 302(1) + Non-rewritable 308(2) 307 + Notes: 1. Default value. 2. Proposed code, not supported by all clients. */ + rewritable(isRewritable: boolean): void; + } + /** info about a server connection */ + export interface IServerConnectionInfo { + /** - a unique connection identifier (using the format '{hostname}:{pid}:{now base36}').*/ + id: string; + /** - the connection creation timestamp.*/ + created: number; + /** - the connection start timestamp (0 when stopped).*/ + started: number; + /** the connection port based on the following rules: + the configured port value before the server has been started. + the actual port assigned when no port is configured or set to 0 after the server has been started.*/ + port: number; + + /** - the host name the connection was configured to. Defaults to the operating system hostname when available, otherwise 'localhost'.*/ + host: string; + /** - the active IP address the connection was bound to after starting.Set to undefined until the server has been started or when using a non TCP port (e.g. UNIX domain socket).*/ + address: string; + /** - the protocol used: + 'http' - HTTP. + 'https' - HTTPS. + 'socket' - UNIX domain socket or Windows named pipe.*/ + protocol: string; + /** a string representing the connection (e.g. 'http://example.com:8080' or 'socket:/unix/domain/socket/path'). Contains the uri setting if provided, otherwise constructed from the available settings. If no port is available or set to 0, the uri will not include a port component.*/ + uri: string; + } + /** + * undocumented. The connection object constructed after calling server.connection(); + * can be accessed via server.connections; or request.connection; + */ + export class ServerConnection extends Events.EventEmitter { + domain: any; + _events: { route: Function, domain: Function, _events: Function, _eventsCount: Function, _maxListeners: Function }; + _eventsCount: number; + settings: IServerConnectionOptions; + server: Server; + /** ex: "tcp" */ + type: string; + _started: boolean; + /** dictionary of sockets */ + _connections: { [ip_port: string]: any }; + _onConnection: Function; + registrations: any; + _extensions: any; + _requestCounter: { value: number; min: number; max: number }; + _load: any; + states: { + settings: any; cookies: any; names: any[] + }; + auth: { connection: ServerConnection; _schemes: any; _strategies: any; settings: any; api: any; }; + _router: any; + MSPluginsCollection: any; + applicationCache: any; + addEventListener: any; + info: IServerConnectionInfo; + } + + /** Server http://hapijs.com/api#server + rver object is the main application container. The server manages all incoming connections along with all the facilities provided by the framework. A server can contain more than one connection (e.g. listen to port 80 and 8080). + Server events + The server object inherits from Events.EventEmitter and emits the following events: + 'log' - events logged with server.log() and server events generated internally by the framework. + 'start' - emitted when the server is started using server.start(). + 'stop' - emitted when the server is stopped using server.stop(). + 'request' - events generated by request.log(). Does not include any internally generated events. + 'request-internal' - request events generated internally by the framework (multiple events per request). + 'request-error' - emitted whenever an Internal Server Error (500) error response is sent. Single event per request. + 'response' - emitted after the response is sent back to the client (or when the client connection closed and no response sent, in which case request.response is null). Single event per request. + 'tail' - emitted when a request finished processing, including any registered tails. Single event per request. + Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events. + MORE EVENTS HERE: http://hapijs.com/api#server-events*/ + export class Server extends Events.EventEmitter { + + constructor(options?: IServerOptions); + + /** Provides a safe place to store server-specific run-time application data without potential conflicts with the framework internals. The data can be accessed whenever the server is accessible. Initialized with an empty object. + var Hapi = require('hapi'); + server = new Hapi.Server(); + server.app.key = 'value'; + var handler = function (request, reply) { + return reply(request.server.app.key); + }; */ + app: any; + /** An array containing the server's connections. When the server object is returned from server.select(), the connections array only includes the connections matching the selection criteria. + var server = new Hapi.Server(); + server.connection({ port: 80, labels: 'a' }); + server.connection({ port: 8080, labels: 'b' }); + // server.connections.length === 2 + var a = server.select('a'); + // a.connections.length === 1*/ + connections: Array; + /** When the server contains exactly one connection, info is an object containing information about the sole connection. + * When the server contains more than one connection, each server.connections array member provides its own connection.info. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + // server.info.port === 80 + server.connection({ port: 8080 }); + // server.info === null + // server.connections[1].info.port === 8080 + */ + info: IServerConnectionInfo; + /** An object containing the process load metrics (when load.sampleInterval is enabled): + rss - RSS memory usage. + var Hapi = require('hapi'); + var server = new Hapi.Server({ load: { sampleInterval: 1000 } }); + console.log(server.load.rss);*/ + load: { + /** - event loop delay milliseconds.*/ + eventLoopDelay: number; + /** - V8 heap usage.*/ + heapUsed: number; + }; + /** When the server contains exactly one connection, listener is the node HTTP server object of the sole connection. + When the server contains more than one connection, each server.connections array member provides its own connection.listener. + var Hapi = require('hapi'); + var SocketIO = require('socket.io'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + var io = SocketIO.listen(server.listener); + io.sockets.on('connection', function(socket) { + socket.emit({ msg: 'welcome' }); + });*/ + listener: http.Server; + + /** server.methods + An object providing access to the server methods where each server method name is an object property. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.method('add', function (a, b, next) { + return next(null, a + b); + }); + server.methods.add(1, 2, function (err, result) { + // result === 3 + });*/ + methods: IDictionary; + + /** server.mime + Provides access to the server MIME database used for setting content-type information. The object must not be modified directly but only through the mime server setting. + var Hapi = require('hapi'); + var options = { + mime: { + override: { + 'node/module': { + source: 'steve', + compressible: false, + extensions: ['node', 'module', 'npm'], + type: 'node/module' + } + } + } + }; + var server = new Hapi.Server(options); + // server.mime.path('code.js').type === 'application/javascript' + // server.mime.path('file.npm').type === 'node/module'*/ + mime: any; + /**server.plugins + An object containing the values exposed by each plugin registered where each key is a plugin name and the values are the exposed properties by each plugin using server.expose(). Plugins may set the value of the server.plugins[name] object directly or via the server.expose() method. + exports.register = function (server, options, next) { + server.expose('key', 'value'); + // server.plugins.example.key === 'value' + return next(); + }; + exports.register.attributes = { + name: 'example' + };*/ + plugins: IDictionary; + /** server.realm + The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(), the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin). Realms are a limited version of a sandbox where plugins can maintain state used by the framework when adding routes, extensions, and other properties. + modifiers - when the server object is provided as an argument to the plugin register() method, modifiers provides the registration preferences passed the server.register() method and includes: + route - routes preferences: + prefix - the route path prefix used by any calls to server.route() from the server. + vhost - the route virtual host settings used by any calls to server.route() from the server. + plugin - the active plugin name (empty string if at the server root). + plugins - plugin-specific state to be shared only among activities sharing the same active state. plugins is an object where each key is a plugin name and the value is the plugin state. + settings - settings overrides: + files.relativeTo + bind + The server.realm object should be considered read-only and must not be changed directly except for the plugins property can be directly manipulated by the plugins (each setting its own under plugins[name]). + exports.register = function (server, options, next) { + console.log(server.realm.modifiers.route.prefix); + return next(); + };*/ + realm: IServerRealm; + + /** server.root + The root server object containing all the connections and the root server methods (e.g. start(), stop(), connection()).*/ + root: Server; + /** server.settings + The server configuration object after defaults applied. + var Hapi = require('hapi'); + var server = new Hapi.Server({ + app: { + key: 'value' + } + }); + // server.settings.app === { key: 'value' }*/ + settings: IServerOptions; + + /** server.version + The hapi module version number. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + // server.version === '8.0.0'*/ + version: string; + + /** server.after(method, [dependencies]) + Adds a method to be called after all the plugin dependencies have been registered and before the server starts (only called if the server is started) where: + after - the method with signature function(plugin, next) where: + server - server object the after() method was called on. + next - the callback function the method must call to return control over to the application and complete the registration process. The function signature is function(err) where: + err - internal error which is returned back via the server.start() callback. + dependencies - a string or array of string with the plugin names to call this method after their after() methods. There is no requirement for the other plugins to be registered. Setting dependencies only arranges the after methods in the specified order. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.after(function () { + // Perform some pre-start logic + }); + server.start(function (err) { + // After method already executed + }); + server.auth.default(options)*/ + after(method: (plugin: any, next: (err: any) => void) => void, dependencies: string | string[]): void; + + auth: { + /** server.auth.api + An object where each key is a strategy name and the value is the exposed strategy API. Available on when the authentication scheme exposes an API by returning an api key in the object returned from its implementation function. + When the server contains more than one connection, each server.connections array member provides its own connection.auth.api object. + const server = new Hapi.Server(); + server.connection({ port: 80 }); + const scheme = function (server, options) { + return { + api: { + settings: { + x: 5 + } + }, + authenticate: function (request, reply) { + const req = request.raw.req; + const authorization = req.headers.authorization; + if (!authorization) { + return reply(Boom.unauthorized(null, 'Custom')); + } + return reply.continue({ credentials: { user: 'john' } }); + } }; - parse?: any; - allow?: string | Array; - override?: string; - maxBytes?: number; - uploads?: number; - failAction?: string; - }; - response: { - schema: any; - sample: number; - failAction: string; - }; - cache: { - privacy: string; - expiresIn: number; - expiresAt: number; - }; - auth: string | boolean | { - mode: string; - strategies: Array; - payload?: boolean | string; - tos?: boolean | string; - scope?: string | Array; - entity: string; - }; - cors?: boolean; - jsonp?: string; - description?: string; - notes?: string | Array; - tags?: Array; - }; -} -/** Route configuration - The route configuration object*/ -export interface IRouteConfiguration { - /** - (required) the absolute path used to match incoming requests (must begin with '/'). Incoming requests are compared to the configured paths based on the connection router configuration option.The path can include named parameters enclosed in {} which will be matched against literal values in the request as described in Path parameters.*/ - path: string; - /** - (required) the HTTP method.Typically one of 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', or 'OPTIONS'.Any HTTP method is allowed, except for 'HEAD'.Use '*' to match against any HTTP method (only when an exact match was not found, and any match with a specific method will be given a higher priority over a wildcard match). - * Can be assigned an array of methods which has the same result as adding the same route with different methods manually.*/ - method: string | string[]; - /** - an optional domain string or an array of domain strings for limiting the route to only requests with a matching host header field.Matching is done against the hostname part of the header only (excluding the port).Defaults to all hosts.*/ - vhost?: string; - /** - (required) the function called to generate the response after successful authentication and validation.The handler function is described in Route handler.If set to a string, the value is parsed the same way a prerequisite server method string shortcut is processed.Alternatively, handler can be assigned an object with a single key using the name of a registered handler type and value with the options passed to the registered handler.*/ - handler: ISessionHandler | string | IRouteHandlerConfig; - /** - additional route options.*/ - config?: IRouteAdditionalConfigurationOptions; -} -/** Route public interface When route information is returned or made available as a property. http://hapijs.com/api#route-public-interface */ -export interface IRoute { - - - /** the route HTTP method. */ - method: string; - /** the route path. */ - path: string; - /** the route vhost option if configured. */ - vhost?: string | Array; - /** the [active realm] associated with the route.*/ - realm: IServerRealm; - /** the [route options] object with all defaults applied. */ - settings: IRouteAdditionalConfigurationOptions; -} - -export interface IServerAuthScheme { - /** authenticate(request, reply) - required function called on each incoming request configured with the authentication scheme where: - request - the request object. - reply - the reply interface the authentication method must call when done authenticating the request where: - reply(err, response, result) - is called if authentication failed where: - err - any authentication error. - response - any authentication response action such as redirection. Ignored if err is present, otherwise required. - result - an object containing: - credentials - the authenticated credentials. - artifacts - optional authentication artifacts. - reply.continue(result) - is called if authentication succeeded where: - result - same object as result above. - When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route. - .If the err returned by the reply() method includes a message, no additional strategies will be attempted. - If the err does not include a message but does include a scheme name (e.g. Boom.unauthorized(null, 'Custom')), additional strategies will be attempted in order of preference. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - var scheme = function (server, options) { - return { - authenticate: function (request, reply) { - var req = request.raw.req; - var authorization = req.headers.authorization; - if (!authorization) { - return reply(Boom.unauthorized(null, 'Custom')); - } - return reply(null, { credentials: { user: 'john' } }); - } - }; - }; - server.auth.scheme('custom', scheme);*/ - authenticate(request: Request, reply: IReply): void; - /** payload(request, reply) - optional function called to authenticate the request payload where: - request - the request object. - reply(err, response) - is called if authentication failed where: - err - any authentication error. - response - any authentication response action such as redirection. Ignored if err is present, otherwise required. - reply.continue() - is called if payload authentication succeeded. - When the scheme payload() method returns an error with a message, it means payload validation failed due to bad payload. If the error has no message but includes a scheme name (e.g. Boom.unauthorized(null, 'Custom')), authentication may still be successful if the route auth.payload configuration is set to 'optional'.*/ - payload?(request: Request, reply: IReply): void; - /** response(request, reply) - optional function called to decorate the response with authentication headers before the response headers or payload is written where: - request - the request object. - reply(err, response) - is called if an error occurred where: - err - any authentication error. - response - any authentication response to send instead of the current response. Ignored if err is present, otherwise required. - reply.continue() - is called if the operation succeeded.*/ - response?(request: Request, reply: IReply): void; - /** an optional object */ - options?: { - /** if true, requires payload validation as part of the scheme and forbids routes from disabling payload auth validation. Defaults to false.*/ - payload: boolean; - } -} - -/**the response object where: - statusCode - the HTTP status code. - headers - an object containing the headers set. - payload - the response payload string. - rawPayload - the raw response payload buffer. - raw - an object with the injection request and response objects: - req - the simulated node request object. - res - the simulated node response object. - result - the raw handler response (e.g. when not a stream or a view) before it is serialized for transmission. If not available, the value is set to payload. Useful for inspection and reuse of the internal objects returned (instead of parsing the response string). - request - the request object.*/ -export interface IServerInjectResponse { - statusCode: number; - headers: IDictionary; - payload: string; - rawPayload: Buffer; - raw: { - req: http.ClientRequest; - res: http.ServerResponse - }; - result: string; - request: Request; -} - -export interface IServerInject { - (options: string | IServerInjectOptions, callback: (res: IServerInjectResponse) => void): void; - (options: string | IServerInjectOptions): IPromise; -} - -export interface IServerInjectOptions { - /** the request HTTP method (e.g. 'POST'). Defaults to 'GET'.*/ - method: string; - /** the request URL. If the URI includes an authority (e.g. 'example.com:8080'), it is used to automatically set an HTTP 'Host' header, unless one was specified in headers.*/ - url: string; - /** an object with optional request headers where each key is the header name and the value is the header content. Defaults to no additions to the default Shot headers.*/ - headers?: IDictionary; - /** n optional string, buffer or object containing the request payload. In case of an object it will be converted to a string for you. Defaults to no payload. Note that payload processing defaults to 'application/json' if no 'Content-Type' header provided.*/ - payload?: string | {} | Buffer; - /** an optional credentials object containing authentication information. The credentials are used to bypass the default authentication strategies, and are validated directly as if they were received via an authentication scheme. Defaults to no credentials.*/ - credentials?: any; - /** an optional artifacts object containing authentication artifact information. The artifacts are used to bypass the default authentication strategies, and are validated directly as if they were received via an authentication scheme. Ignored if set without credentials. Defaults to no artifacts.*/ - artifacts?: any; - /** sets the initial value of request.app*/ - app?: any; - /** sets the initial value of request.plugins*/ - plugins?: any; - /** allows access to routes with config.isInternal set to true. Defaults to false.*/ - allowInternals?: boolean; - /** sets the remote address for the incoming connection.*/ - remoteAddress?: boolean; - /**object with options used to simulate client request stream conditions for testing: - error - if true, emits an 'error' event after payload transmission (if any). Defaults to false. - close - if true, emits a 'close' event after payload transmission (if any). Defaults to false. - end - if false, does not end the stream. Defaults to true.*/ - simulate?: { - error: boolean; - close: boolean; - end: boolean; - }; -} - - -/** host - optional host to filter routes matching a specific virtual host. Defaults to all virtual hosts. - The return value is an array where each item is an object containing: - info - the connection.info the connection the table was generated for. - labels - the connection labels. - table - an array of routes where each route contains: - settings - the route config with defaults applied. - method - the HTTP method in lower case. - path - the route path.*/ -export interface IConnectionTable { - info: any; - labels: any; - table: IRoute[]; -} - -export interface ICookieSettings { - /** - time - to - live in milliseconds.Defaults to null (session time- life - cookies are deleted when the browser is closed).*/ - ttl?: number; - /** - sets the 'Secure' flag.Defaults to false.*/ - isSecure?: boolean; - /** - sets the 'HttpOnly' flag.Defaults to false.*/ - isHttpOnly?: boolean; - /** - the path scope.Defaults to null (no path).*/ - path?: string; - /** - the domain scope.Defaults to null (no domain).*/ - domain?: any; - /** - if present and the cookie was not received from the client or explicitly set by the route handler, the cookie is automatically added to the response with the provided value.The value can be a function with signature function(request, next) where: - request - the request object. - next - the continuation function using the function(err, value) signature.*/ - autoValue?: (request: Request, next: (err: any, value: any) => void) => void; - /** - encoding performs on the provided value before serialization.Options are: - 'none' - no encoding.When used, the cookie value must be a string.This is the default value. - 'base64' - string value is encoded using Base64. - 'base64json' - object value is JSON- stringified than encoded using Base64. - 'form' - object value is encoded using the x- www - form - urlencoded method. */ - encoding?: string; - /** - an object used to calculate an HMAC for cookie integrity validation.This does not provide privacy, only a mean to verify that the cookie value was generated by the server.Redundant when 'iron' encoding is used.Options are: - integrity - algorithm options.Defaults to require('iron').defaults.integrity. - password - password used for HMAC key generation. */ - sign?: { integrity: any; password: string; } - password?: string; - iron?: any; - ignoreErrors?: boolean; - clearInvalid?: boolean; - strictHeader?: boolean; - passThrough?: any; -} - -/** method - the method function with the signature is one of: - function(arg1, arg2, ..., argn, next) where: - arg1, arg2, etc. - the method function arguments. - next - the function called when the method is done with the signature function(err, result, ttl) where: - err - error response if the method failed. - result - the return value. - ttl - 0 if result is valid but cannot be cached. Defaults to cache policy. - function(arg1, arg2, ..., argn) where: - arg1, arg2, etc. - the method function arguments. - the callback option is set to false. - the method must returns a value (result, Error, or a promise) or throw an Error.*/ -export interface IServerMethod { - //(): void; - //(next: (err: any, result: any, ttl: number) => void): void; - //(arg1: any): void; - //(arg1: any, arg2: any, next: (err: any, result: any, ttl: number) => void): void; - //(arg1: any, arg2: any): void; - (...args: any[]): void; - -} -/** options - optional configuration: - bind - a context object passed back to the method function (via this) when called. Defaults to active context (set via server.bind() when the method is registered. - cache - the same cache configuration used in server.cache(). - callback - if false, expects the method to be a synchronous function. Note that using a synchronous function with caching will convert the method interface to require a callback as an additional argument with the signature function(err, result, cached, report) since the cache interface cannot return values synchronously. Defaults to true. - generateKey - a function used to generate a unique key (for caching) from the arguments passed to the method function (the callback argument is not passed as input). The server will automatically generate a unique key if the function's arguments are all of types 'string', 'number', or 'boolean'. However if the method uses other types of arguments, a key generation function must be provided which takes the same arguments as the function and returns a unique string (or null if no key can be generated).*/ -export interface IServerMethodOptions { - bind?: any; - cache?: ICatBoxCacheOptions; - callback?: boolean; - generateKey?(args: any[]): string; -} -/** Request object - - The request object is created internally for each incoming request. It is different from the node.js request object received from the HTTP server callback (which is available in request.raw.req). The request object methods and properties change throughout the request lifecycle. - Request events - - The request object supports the following events: - - 'peek' - emitted for each chunk of payload data read from the client connection. The event method signature is function(chunk, encoding). - 'finish' - emitted when the request payload finished reading. The event method signature is function (). - 'disconnect' - emitted when a request errors or aborts unexpectedly. - var Crypto = require('crypto'); - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - server.ext('onRequest', function (request, reply) { - -var hash = Crypto.createHash('sha1'); -request.on('peek', function (chunk) { - -hash.update(chunk); -}); - -request.once('finish', function () { - -console.log(hash.digest('hex')); -}); - -request.once('disconnect', function () { - -console.error('request aborted'); -}); - -return reply.continue(); -});*/ -export declare class Request extends Events.EventEmitter { - /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ - app: any; - /** authentication information*/ - auth: { - /** true is the request has been successfully authenticated, otherwise false.*/ - isAuthenticated: boolean; - /** the credential object received during the authentication process. The presence of an object does not mean successful authentication. can be set in the validate function's callback.*/ - credentials: any; - /** an artifact object received from the authentication strategy and used in authentication-related actions.*/ - artifacts: any; - /** the route authentication mode.*/ - mode: any; - /** the authentication error is failed and mode set to 'try'.*/ - error: any; - }; - /** the connection used by this request*/ - connection: ServerConnection; - /** the node domain object used to protect against exceptions thrown in extensions, handlers and route prerequisites. Can be used to manually bind callback functions otherwise bound to other domains.*/ - domain: any; - /** the raw request headers (references request.raw.headers).*/ - headers: IDictionary; - /** a unique request identifier (using the format '{now}:{connection.info.id}:{5 digits counter}').*/ - id: number; - /** request information */ - info: { - /** the request preferred encoding. */ - acceptEncoding: string; - /** if CORS is enabled for the route, contains the following: */ - cors: { - isOriginMatch: boolean; /** true if the request 'Origin' header matches the configured CORS restrictions. Set to false if no 'Origin' header is found or if it does not match. Note that this is only available after the 'onRequest' extension point as CORS is configured per-route and no routing decisions are made at that point in the request lifecycle. */ - }; - /** content of the HTTP 'Host' header (e.g. 'example.com:8080'). */ - host: string; - /** the hostname part of the 'Host' header (e.g. 'example.com').*/ - hostname: string; - /** request reception timestamp. */ - received: number; - /** content of the HTTP 'Referrer' (or 'Referer') header. */ - referrer: string; - /** remote client IP address. */ - remoteAddress: string; - /** remote client port. */ - remotePort: number; - /** request response timestamp (0 is not responded yet). */ - responded: number; - }; - /** the request method in lower case (e.g. 'get', 'post'). */ - method: string; - /** the parsed content-type header. Only available when payload parsing enabled and no payload error occurred. */ - mime: string; - /** an object containing the values of params, query, and payload before any validation modifications made. Only set when input validation is performed.*/ - orig: { - params: any; - query: any; - payload: any; - }; - /** an object where each key is a path parameter name with matching value as described in Path parameters.*/ - params: IDictionary; - /** an array containing all the path params values in the order they appeared in the path.*/ - paramsArray: string[]; - /** the request URI's path component. */ - path: string; - /** the request payload based on the route payload.output and payload.parse settings.*/ - payload: stream.Readable | Buffer | any; - /** plugin-specific state. Provides a place to store and pass request-level plugin data. The plugins is an object where each key is a plugin name and the value is the state.*/ - plugins: any; - /** an object where each key is the name assigned by a route prerequisites function. The values are the raw values provided to the continuation function as argument. For the wrapped response object, use responses.*/ - pre: IDictionary; - /** the response object when set. The object can be modified but must not be assigned another object. To replace the response with another from within an extension point, use reply(response) to override with a different response. Contains null when no response has been set (e.g. when a request terminates prematurely when the client disconnects).*/ - response: Response; - /**preResponses - same as pre but represented as the response object created by the pre method.*/ - preResponses: any; - /**an object containing the query parameters.*/ - query: any; - /** an object containing the Node HTTP server objects. Direct interaction with these raw objects is not recommended.*/ - raw: { - req: http.ClientRequest; - res: http.ServerResponse; - }; - /** the route public interface.*/ - route: IRoute; - /** the server object. */ - server: Server; - /** an object containing parsed HTTP state information (cookies) where each key is the cookie name and value is the matching cookie content after processing using any registered cookie definition. */ - state: any; - /** complex object contining details on the url */ - url: { - /** null when i tested */ - auth: any; - /** null when i tested */ - hash: any; - /** null when i tested */ - host: any; - /** null when i tested */ - hostname: any; - href: string; - path: string; - /** path without search*/ - pathname: string; - /** null when i tested */ - port: any; - /** null when i tested */ - protocol: any; - /** querystring parameters*/ - query: IDictionary; - /** querystring parameters as a string*/ - search: string; - /** null when i tested */ - slashes: any; - }; - - /** request.setUrl(url) - - Available only in 'onRequest' extension methods. - - Changes the request URI before the router begins processing the request where: - - url - the new request path value. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - server.ext('onRequest', function (request, reply) { - - // Change all requests to '/test' - request.setUrl('/test'); - return reply.continue(); - });*/ - setUrl(url: string): void; - - /** request.setMethod(method) - - Available only in 'onRequest' extension methods. - - Changes the request method before the router begins processing the request where: - - method - is the request HTTP method (e.g. 'GET'). - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - server.ext('onRequest', function (request, reply) { - - // Change all requests to 'GET' - request.setMethod('GET'); - return reply.continue(); - });*/ - setMethod(method: string): void; - - /** request.log(tags, [data, [timestamp]]) - - Always available. - - Logs request-specific events. When called, the server emits a 'request' event which can be used by other listeners or plugins. The arguments are: - - data - an optional message string or object with the application data being logged. - timestamp - an optional timestamp expressed in milliseconds. Defaults to Date.now() (now). - Any logs generated by the server internally will be emitted only on the 'request-internal' channel and will include the event.internal flag set to true. - - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - server.on('request', function (request, event, tags) { - - if (tags.error) { - console.log(event); - } - }); - - var handler = function (request, reply) { - - request.log(['test', 'error'], 'Test event'); - return reply(); - }; - */ - log(/** a string or an array of strings (e.g. ['error', 'database', 'read']) used to identify the event. Tags are used instead of log levels and provide a much more expressive mechanism for describing and filtering events.*/ - tags: string | string[], - /** an optional message string or object with the application data being logged.*/ - data?: string, - /** an optional timestamp expressed in milliseconds. Defaults to Date.now() (now).*/ - timestamp?: number): void; - - /** request.getLog([tags], [internal]) - - Always available. - - Returns an array containing the events matching any of the tags specified (logical OR) - request.getLog(); - request.getLog('error'); - request.getLog(['error', 'auth']); - request.getLog(['error'], true); - request.getLog(false);*/ - - getLog(/** is a single tag string or array of tag strings. If no tags specified, returns all events.*/ - tags?: string, - /** filters the events to only those with a matching event.internal value. If true, only internal logs are included. If false, only user event are included. Defaults to all events (undefined).*/ - internal?: boolean): string[]; - - /** request.tail([name]) - - Available until immediately after the 'response' event is emitted. - - Adds a request tail which has to complete before the request lifecycle is complete where: - - name - an optional tail name used for logging purposes. - Returns a tail function which must be called when the tail activity is completed. - - Tails are actions performed throughout the request lifecycle, but which may end after a response is sent back to the client. For example, a request may trigger a database update which should not delay sending back a response. However, it is still desirable to associate the activity with the request when logging it (or an error associated with it). - - When all tails completed, the server emits a 'tail' event. - - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - var get = function (request, reply) { - - var dbTail = request.tail('write to database'); - - db.save('key', 'value', function () { - - dbTail(); - }); - - return reply('Success!'); - }; - - server.route({ method: 'GET', path: '/', handler: get }); - - server.on('tail', function (request) { - - console.log('Request completed including db activity'); - });*/ - tail(/** an optional tail name used for logging purposes.*/ - name?: string): Function; -} -/** Response events - - The response object supports the following events: - - 'peek' - emitted for each chunk of data written back to the client connection. The event method signature is function(chunk, encoding). - 'finish' - emitted when the response finished writing but before the client response connection is ended. The event method signature is function (). - var Crypto = require('crypto'); - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - - server.ext('onPreResponse', function (request, reply) { - -var response = request.response; -if (response.isBoom) { -return reply(); -} - -var hash = Crypto.createHash('sha1'); -response.on('peek', function (chunk) { - -hash.update(chunk); -}); - -response.once('finish', function () { - -console.log(hash.digest('hex')); -}); - -return reply.continue(); -});*/ -export declare class Response extends Events.EventEmitter { - isBoom: boolean; - /** the HTTP response status code. Defaults to 200 (except for errors).*/ - statusCode: number; - /** an object containing the response headers where each key is a header field name. Note that this is an incomplete list of headers to be included with the response. Additional headers will be added once the response is prepare for transmission.*/ - headers: IDictionary; - /** the value provided using the reply interface.*/ - source: any; - /** a string indicating the type of source with available values: - 'plain' - a plain response such as string, number, null, or simple object (e.g. not a Stream, Buffer, or view). - 'buffer' - a Buffer. - 'view' - a view generated with reply.view(). - 'file' - a file generated with reply.file() of via the directory handler. - 'stream' - a Stream. - 'promise' - a Promise object. */ - variety: string; - /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ - app: any; - /** plugin-specific state. Provides a place to store and pass request-level plugin data. The plugins is an object where each key is a plugin name and the value is the state. */ - plugins: any; - /** settings - response handling flags: - charset - the 'Content-Type' HTTP header 'charset' property. Defaults to 'utf-8'. - encoding - the string encoding scheme used to serial data into the HTTP payload when source is a string or marshals into a string. Defaults to 'utf8'. - passThrough - if true and source is a Stream, copies the statusCode and headers of the stream to the outbound response. Defaults to true. - stringify - options used for source value requiring stringification. Defaults to no replacer and no space padding. - ttl - if set, overrides the route cache expiration milliseconds value set in the route config. Defaults to no override. - varyEtag - if true, a suffix will be automatically added to the 'ETag' header at transmission time (separated by a '-' character) when the HTTP 'Vary' header is present.*/ - settings: { - charset: string; - encoding: string; - passThrough: boolean; - stringify: any; - ttl: number; - varyEtag: boolean; - } - - /** sets the HTTP 'Content-Length' header (to avoid chunked transfer encoding) where: - length - the header value. Must match the actual payload size.*/ - bytes(length: number): Response; - - /** sets the 'Content-Type' HTTP header 'charset' property where: charset - the charset property value.*/ - charset(charset: string): Response; - - /** sets the HTTP status code where: - statusCode - the HTTP status code.*/ - code(statusCode: number): Response; - - /** sets the HTTP status code to Created (201) and the HTTP 'Location' header where: uri - an absolute or relative URI used as the 'Location' header value.*/ - created(uri: string): Response; - - - /** encoding(encoding) - sets the string encoding scheme used to serial data into the HTTP payload where: encoding - the encoding property value (see node Buffer encoding).*/ - encoding(encoding: string): Response; - - /** etag(tag, options) - sets the representation entity tag where: - tag - the entity tag string without the double-quote. - options - optional settings where: - weak - if true, the tag will be prefixed with the 'W/' weak signifier. Weak tags will fail to match identical tags for the purpose of determining 304 response status. Defaults to false. - vary - if true and content encoding is set or applied to the response (e.g 'gzip' or 'deflate'), the encoding name will be automatically added to the tag at transmission time (separated by a '-' character). Ignored when weak is true. Defaults to true.*/ - etag(tag: string, options: { - weak: boolean; vary: boolean; - }): Response; - - /**header(name, value, options) - sets an HTTP header where: - name - the header name. - value - the header value. - options - optional settings where: - append - if true, the value is appended to any existing header value using separator. Defaults to false. - separator - string used as separator when appending to an exiting value. Defaults to ','. - override - if false, the header value is not set if an existing value present. Defaults to true.*/ - header(name: string, value: string, options?: IHeaderOptions): Response; - - /** hold() - puts the response on hold until response.send() is called. Available only after reply() is called and until response.hold() is invoked once. */ - hold(): Response; - - /** location(uri) - sets the HTTP 'Location' header where: - uri - an absolute or relative URI used as the 'Location' header value.*/ - location(uri: string): Response; - - /** redirect(uri) - sets an HTTP redirection response (302) and decorates the response with additional methods listed below, where: - uri - an absolute or relative URI used to redirect the client to another resource. */ - redirect(uri: string): Response; - - /** replacer(method) - sets the JSON.stringify() replacer argument where: - method - the replacer function or array. Defaults to none.*/ - replacer(method: Function | Array): Response; - - /** spaces(count) - sets the JSON.stringify() space argument where: - count - the number of spaces to indent nested object keys. Defaults to no indentation. */ - spaces(count: number): Response; - - /**state(name, value, [options]) - sets an HTTP cookie where: - name - the cookie name. - value - the cookie value. If no encoding is defined, must be a string. - options - optional configuration. If the state was previously registered with the server using server.state(), the specified keys in options override those same keys in the server definition (but not others).*/ - state(name: string, value: string, options?: any): Response; - - /** send() - resume the response which will be transmitted in the next tick. Available only after response.hold() is called and until response.send() is invoked once. */ - send(): void; - - /** sets a string suffix when the response is process via JSON.stringify().*/ - suffix(suffix: string): void; - - /** overrides the default route cache expiration rule for this response instance where: - msec - the time-to-live value in milliseconds.*/ - ttl(msec: number): void; - - /** type(mimeType) - sets the HTTP 'Content-Type' header where: - mimeType - is the mime type. Should only be used to override the built-in default for each response type. */ - type(mimeType: string): Response; - - /** clears the HTTP cookie by setting an expired value where: - name - the cookie name. - options - optional configuration for expiring cookie. If the state was previously registered with the server using server.state(), the specified keys in options override those same keys in the server definition (but not others).*/ - unstate(name: string, options?: { [key: string]: string }): Response; - - /** adds the provided header to the list of inputs affected the response generation via the HTTP 'Vary' header where: - header - the HTTP request header name.*/ - vary(header: string): void; -} -/** When using the redirect() method, the response object provides these additional methods */ -export declare class ResponseRedirect extends Response { - /** sets the status code to 302 or 307 (based on the rewritable() setting) where: - isTemporary - if false, sets status to permanent. Defaults to true.*/ - temporary(isTemporary: boolean): void; - - /** sets the status code to 301 or 308 (based on the rewritable() setting) where: - isPermanent - if true, sets status to temporary. Defaults to false. */ - permanent(isPermanent: boolean): void; - - /** sets the status code to 301/302 for rewritable (allows changing the request method from 'POST' to 'GET') or 307/308 for non-rewritable (does not allow changing the request method from 'POST' to 'GET'). Exact code based on the temporary() or permanent() setting. Arguments: - isRewritable - if false, sets to non-rewritable. Defaults to true. - Permanent Temporary - Rewritable 301 302(1) - Non-rewritable 308(2) 307 - Notes: 1. Default value. 2. Proposed code, not supported by all clients. */ - rewritable(isRewritable: boolean): void; -} -/** info about a server connection */ -export interface IServerConnectionInfo { - /** - a unique connection identifier (using the format '{hostname}:{pid}:{now base36}').*/ - id: string; - /** - the connection creation timestamp.*/ - created: number; - /** - the connection start timestamp (0 when stopped).*/ - started: number; - /** the connection port based on the following rules: - the configured port value before the server has been started. - the actual port assigned when no port is configured or set to 0 after the server has been started.*/ - port: number; - - /** - the host name the connection was configured to. Defaults to the operating system hostname when available, otherwise 'localhost'.*/ - host: string; - /** - the active IP address the connection was bound to after starting.Set to undefined until the server has been started or when using a non TCP port (e.g. UNIX domain socket).*/ - address: string; - /** - the protocol used: - 'http' - HTTP. - 'https' - HTTPS. - 'socket' - UNIX domain socket or Windows named pipe.*/ - protocol: string; - /** a string representing the connection (e.g. 'http://example.com:8080' or 'socket:/unix/domain/socket/path'). Contains the uri setting if provided, otherwise constructed from the available settings. If no port is available or set to 0, the uri will not include a port component.*/ - uri: string; -} -/** - * undocumented. The connection object constructed after calling server.connection(); - * can be accessed via server.connections; or request.connection; - */ -export declare class ServerConnection extends Events.EventEmitter { - domain: any; - _events: { route: Function, domain: Function, _events: Function, _eventsCount: Function, _maxListeners: Function }; - _eventsCount: number; - settings: IServerConnectionOptions; - server: Server; - /** ex: "tcp" */ - type: string; - _started: boolean; - /** dictionary of sockets */ - _connections: { [ip_port: string]: any }; - _onConnection: Function; - registrations: any; - _extensions: any; - _requestCounter: { value: number; min: number; max: number }; - _load: any; - states: { - settings: any; cookies: any; names: any[] - }; - auth: { connection: ServerConnection; _schemes: any; _strategies: any; settings: any; api: any; }; - _router: any; - MSPluginsCollection: any; - applicationCache: any; - addEventListener: any; - info: IServerConnectionInfo; -} - -/** Server http://hapijs.com/api#server - rver object is the main application container. The server manages all incoming connections along with all the facilities provided by the framework. A server can contain more than one connection (e.g. listen to port 80 and 8080). - Server events - The server object inherits from Events.EventEmitter and emits the following events: - 'log' - events logged with server.log() and server events generated internally by the framework. - 'start' - emitted when the server is started using server.start(). - 'stop' - emitted when the server is stopped using server.stop(). - 'request' - events generated by request.log(). Does not include any internally generated events. - 'request-internal' - request events generated internally by the framework (multiple events per request). - 'request-error' - emitted whenever an Internal Server Error (500) error response is sent. Single event per request. - 'response' - emitted after the response is sent back to the client (or when the client connection closed and no response sent, in which case request.response is null). Single event per request. - 'tail' - emitted when a request finished processing, including any registered tails. Single event per request. - Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events. - MORE EVENTS HERE: http://hapijs.com/api#server-events*/ -export declare class Server extends Events.EventEmitter { - - constructor(options?: IServerOptions); - - /** Provides a safe place to store server-specific run-time application data without potential conflicts with the framework internals. The data can be accessed whenever the server is accessible. Initialized with an empty object. - var Hapi = require('hapi'); - server = new Hapi.Server(); - server.app.key = 'value'; - var handler = function (request, reply) { - return reply(request.server.app.key); - }; */ - app: any; - /** An array containing the server's connections. When the server object is returned from server.select(), the connections array only includes the connections matching the selection criteria. - var server = new Hapi.Server(); - server.connection({ port: 80, labels: 'a' }); - server.connection({ port: 8080, labels: 'b' }); - // server.connections.length === 2 - var a = server.select('a'); - // a.connections.length === 1*/ - connections: Array; - /** When the server contains exactly one connection, info is an object containing information about the sole connection. - * When the server contains more than one connection, each server.connections array member provides its own connection.info. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - // server.info.port === 80 - server.connection({ port: 8080 }); - // server.info === null - // server.connections[1].info.port === 8080 - */ - info: IServerConnectionInfo; - /** An object containing the process load metrics (when load.sampleInterval is enabled): - rss - RSS memory usage. - var Hapi = require('hapi'); - var server = new Hapi.Server({ load: { sampleInterval: 1000 } }); - console.log(server.load.rss);*/ - load: { - /** - event loop delay milliseconds.*/ - eventLoopDelay: number; - /** - V8 heap usage.*/ - heapUsed: number; - }; - /** When the server contains exactly one connection, listener is the node HTTP server object of the sole connection. - When the server contains more than one connection, each server.connections array member provides its own connection.listener. - var Hapi = require('hapi'); - var SocketIO = require('socket.io'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - var io = SocketIO.listen(server.listener); - io.sockets.on('connection', function(socket) { - socket.emit({ msg: 'welcome' }); - });*/ - listener: http.Server; - - /** server.methods - An object providing access to the server methods where each server method name is an object property. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.method('add', function (a, b, next) { - return next(null, a + b); - }); - server.methods.add(1, 2, function (err, result) { - // result === 3 - });*/ - methods: IDictionary; - - /** server.mime - Provides access to the server MIME database used for setting content-type information. The object must not be modified directly but only through the mime server setting. - var Hapi = require('hapi'); - var options = { - mime: { - override: { - 'node/module': { - source: 'steve', - compressible: false, - extensions: ['node', 'module', 'npm'], - type: 'node/module' - } - } - } - }; - var server = new Hapi.Server(options); - // server.mime.path('code.js').type === 'application/javascript' - // server.mime.path('file.npm').type === 'node/module'*/ - mime: any; - /**server.plugins - An object containing the values exposed by each plugin registered where each key is a plugin name and the values are the exposed properties by each plugin using server.expose(). Plugins may set the value of the server.plugins[name] object directly or via the server.expose() method. - exports.register = function (server, options, next) { - server.expose('key', 'value'); - // server.plugins.example.key === 'value' - return next(); - }; - exports.register.attributes = { - name: 'example' - };*/ - plugins: IDictionary; - /** server.realm - The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(), the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin). Realms are a limited version of a sandbox where plugins can maintain state used by the framework when adding routes, extensions, and other properties. - modifiers - when the server object is provided as an argument to the plugin register() method, modifiers provides the registration preferences passed the server.register() method and includes: - route - routes preferences: - prefix - the route path prefix used by any calls to server.route() from the server. - vhost - the route virtual host settings used by any calls to server.route() from the server. - plugin - the active plugin name (empty string if at the server root). - plugins - plugin-specific state to be shared only among activities sharing the same active state. plugins is an object where each key is a plugin name and the value is the plugin state. - settings - settings overrides: - files.relativeTo - bind - The server.realm object should be considered read-only and must not be changed directly except for the plugins property can be directly manipulated by the plugins (each setting its own under plugins[name]). - exports.register = function (server, options, next) { - console.log(server.realm.modifiers.route.prefix); - return next(); - };*/ - realm: IServerRealm; - - /** server.root - The root server object containing all the connections and the root server methods (e.g. start(), stop(), connection()).*/ - root: Server; - /** server.settings - The server configuration object after defaults applied. - var Hapi = require('hapi'); - var server = new Hapi.Server({ - app: { - key: 'value' - } - }); - // server.settings.app === { key: 'value' }*/ - settings: IServerOptions; - - /** server.version - The hapi module version number. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - // server.version === '8.0.0'*/ - version: string; - - /** server.after(method, [dependencies]) - Adds a method to be called after all the plugin dependencies have been registered and before the server starts (only called if the server is started) where: - after - the method with signature function(plugin, next) where: - server - server object the after() method was called on. - next - the callback function the method must call to return control over to the application and complete the registration process. The function signature is function(err) where: - err - internal error which is returned back via the server.start() callback. - dependencies - a string or array of string with the plugin names to call this method after their after() methods. There is no requirement for the other plugins to be registered. Setting dependencies only arranges the after methods in the specified order. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.after(function () { - // Perform some pre-start logic - }); - server.start(function (err) { - // After method already executed - }); - server.auth.default(options)*/ - after(method: (plugin: any, next: (err: any) => void) => void, dependencies: string | string[]): void; - - auth: { - /** server.auth.api - An object where each key is a strategy name and the value is the exposed strategy API. Available on when the authentication scheme exposes an API by returning an api key in the object returned from its implementation function. - When the server contains more than one connection, each server.connections array member provides its own connection.auth.api object. - const server = new Hapi.Server(); - server.connection({ port: 80 }); - const scheme = function (server, options) { - return { - api: { - settings: { - x: 5 - } - }, - authenticate: function (request, reply) { - const req = request.raw.req; - const authorization = req.headers.authorization; - if (!authorization) { - return reply(Boom.unauthorized(null, 'Custom')); - } - return reply.continue({ credentials: { user: 'john' } }); - } - }; - }; - server.auth.scheme('custom', scheme); - server.auth.strategy('default', 'custom'); - console.log(server.auth.api.default.settings.x); // 5 - */ - api: { - [index: string]: any; - } - /** server.auth.default(options) - Sets a default strategy which is applied to every route where: - options - a string with the default strategy name or an object with a specified strategy or strategies using the same format as the route auth handler options. - The default does not apply when the route config specifies auth as false, or has an authentication strategy configured. Otherwise, the route authentication config is applied to the defaults. Note that the default only applies at time of route configuration, not at runtime. Calling default() after adding a route will have no impact on routes added prior. - The default auth strategy configuration can be accessed via connection.auth.settings.default. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.auth.scheme('custom', scheme); - server.auth.strategy('default', 'custom'); - server.auth.default('default'); - server.route({ - method: 'GET', - path: '/', - handler: function (request, reply) { - return reply(request.auth.credentials.user); - } - });*/ - default(options: string): void; - default(options: { strategy: string }): void; - default(options: { strategies: string[] }): void; - /** server.auth.scheme(name, scheme) - Registers an authentication scheme where: - name - the scheme name. - scheme - the method implementing the scheme with signature function(server, options) where: - server - a reference to the server object the scheme is added to. - options - optional scheme settings used to instantiate a strategy.*/ - scheme(name: string, - /** When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route. If the err returned by the reply() method includes a message, no additional strategies will be attempted. If the err does not include a message but does include a scheme name (e.g. Boom.unauthorized(null, 'Custom')), additional strategies will be attempted in order of preference. - n the scheme payload() method returns an error with a message, it means payload validation failed due to bad payload. If the error has no message but includes a scheme name (e.g. Boom.unauthorized(null, 'Custom')), authentication may still be successful if the route auth.payload configuration is set to 'optional'. - server = new Hapi.Server(); - server.connection({ port: 80 }); - scheme = function (server, options) { - urn { - authenticate: function (request, reply) { - req = request.raw.req; - var authorization = req.headers.authorization; - if (!authorization) { - return reply(Boom.unauthorized(null, 'Custom')); - } - urn reply(null, { credentials: { user: 'john' } }); - } - }; - }; - */ - scheme: (server: Server, options: any) => IServerAuthScheme): void; - - /** server.auth.strategy(name, scheme, [mode], [options]) - Registers an authentication strategy where: - name - the strategy name. - scheme - the scheme name (must be previously registered using server.auth.scheme()). - mode - if true, the scheme is automatically assigned as a required strategy to any route without an auth config. Can only be assigned to a single server strategy. Value must be true (which is the same as 'required') or a valid authentication mode ('required', 'optional', 'try'). Defaults to false. - options - scheme options based on the scheme requirements. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.auth.scheme('custom', scheme); - server.auth.strategy('default', 'custom'); - server.route({ - method: 'GET', - path: '/', - config: { - auth: 'default', - handler: function (request, reply) { - return reply(request.auth.credentials.user); - } - } - });*/ - strategy(name: string, scheme: any, mode?: boolean | string, options?: any): void; - - /** server.auth.test(strategy, request, next) - Tests a request against an authentication strategy where: - strategy - the strategy name registered with server.auth.strategy(). - request - the request object. - next - the callback function with signature function(err, credentials) where: - err - the error if authentication failed. - credentials - the authentication credentials object if authentication was successful. - Note that the test() method does not take into account the route authentication configuration. It also does not perform payload authentication. It is limited to the basic strategy authentication execution. It does not include verifying scope, entity, or other route properties. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.auth.scheme('custom', scheme); - server.auth.strategy('default', 'custom'); - server.route({ - method: 'GET', - path: '/', - handler: function (request, reply) { - request.server.auth.test('default', request, function (err, credentials) { - if (err) { - return reply({ status: false }); - } - return reply({ status: true, user: credentials.name }); - }); - } - });*/ - test(strategy: string, request: Request, next: (err: any, credentials: any) => void): void; - }; - - /** server.bind(context) - Sets a global context used as the default bind object when adding a route or an extension where: - context - the object used to bind this in handler and extension methods. - When setting context inside a plugin, the context is applied only to methods set up by the plugin. Note that the context applies only to routes and extensions added after it has been set. - var handler = function (request, reply) { - return reply(this.message); - }; - exports.register = function (server, options, next) { - var bind = { - message: 'hello' - }; - server.bind(bind); - server.route({ method: 'GET', path: '/', handler: handler }); - return next(); - };*/ - bind(context: any): void; - - - /** server.cache(options) - Provisions a cache segment within the server cache facility where: - options - catbox policy configuration where: - expiresIn - relative expiration expressed in the number of milliseconds since the item was saved in the cache. Cannot be used together with expiresAt. - expiresAt - time of day expressed in 24h notation using the 'HH:MM' format, at which point all cache records expire. Uses local time. Cannot be used together with expiresIn. - generateFunc - a function used to generate a new cache item if one is not found in the cache when calling get(). The method's signature is function(id, next) where: - id - the id string or object provided to the get() method. - next - the method called when the new item is returned with the signature function(err, value, ttl) where: - err - an error condition. - value - the new value generated. - ttl - the cache ttl value in milliseconds. Set to 0 to skip storing in the cache. Defaults to the cache global policy. - staleIn - number of milliseconds to mark an item stored in cache as stale and attempt to regenerate it when generateFunc is provided. Must be less than expiresIn. - staleTimeout - number of milliseconds to wait before checking if an item is stale. - generateTimeout - number of milliseconds to wait before returning a timeout error when the generateFunc function takes too long to return a value. When the value is eventually returned, it is stored in the cache for future requests. - cache - the cache name configured in 'server.cache`. Defaults to the default cache. - segment - string segment name, used to isolate cached items within the cache partition. When called within a plugin, defaults to '!name' where 'name' is the plugin name. Required when called outside of a plugin. - shared - if true, allows multiple cache provisions to share the same segment. Default to false. - var server = new Hapi.Server(); - server.connection({ port: 80 }); - var cache = server.cache({ segment: 'countries', expiresIn: 60 * 60 * 1000 }); - cache.set('norway', { capital: 'oslo' }, null, function (err) { - cache.get('norway', function (err, value, cached, log) { - // value === { capital: 'oslo' }; - }); - });*/ - cache(options: ICatBoxCacheOptions): void; - - /** server.connection([options]) - Adds an incoming server connection - Returns a server object with the new connection selected. - Must be called before any other server method that modifies connections is called for it to apply to the new connection (e.g. server.state()). - Note that the options object is deeply cloned (with the exception of listener which is shallowly copied) and cannot contain any values that are unsafe to perform deep copy on. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - var web = server.connection({ port: 8000, host: 'example.com', labels: ['web'] }); - var admin = server.connection({ port: 8001, host: 'example.com', labels: ['admin'] }); - // server.connections.length === 2 - // web.connections.length === 1 - // admin.connections.length === 1 */ - connection(options: IServerConnectionOptions): Server; - - /** server.decorate(type, property, method, [options]) - Extends various framework interfaces with custom methods where: - type - the interface being decorated. Supported types: - 'reply' - adds methods to the reply interface. - 'server' - adds methods to the Server object. - property - the object decoration key name. - method - the extension function. - options - if the type is 'request', supports the following optional settings: - 'apply' - if true, the method function is invoked using the signature function(request) where request is the current request object and the returned value is assigned as the decoration. - Note that decorations apply to the entire server and all its connections regardless of current selection. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.decorate('reply', 'success', function () { - return this.response({ status: 'ok' }); - }); - server.route({ - method: 'GET', - path: '/', - handler: function (request, reply) { - return reply.success(); - } - });*/ - decorate(type: string, property: string, method: Function, options?: { apply: boolean }): void; - - /** server.dependency(dependencies, [after]) - Used within a plugin to declares a required dependency on other plugins where: - dependencies - a single string or array of plugin name strings which must be registered in order for this plugin to operate. Plugins listed must be registered before the server is started. Does not provide version dependency which should be implemented using npm peer dependencies. - after - an optional function called after all the specified dependencies have been registered and before the server starts. The function is only called if the server is started. If a circular dependency is detected, an exception is thrown (e.g. two plugins each has an after function to be called after the other). The function signature is function(server, next) where: - server - the server the dependency() method was called on. - next - the callback function the method must call to return control over to the application and complete the registration process. The function signature is function(err) where: - err - internal error condition, which is returned back via the server.start() callback. - exports.register = function (server, options, next) { - server.dependency('yar', after); - return next(); - }; - var after = function (server, next) { - // Additional plugin registration logic - return next(); - };*/ - dependency(dependencies: string | string[], after?: (server: Server, next: (err: any) => void) => void): void; - - - /** server.expose(key, value) - Used within a plugin to expose a property via server.plugins[name] where: - key - the key assigned (server.plugins[name][key]). - value - the value assigned. - exports.register = function (server, options, next) { - server.expose('util', function () { console.log('something'); }); - return next(); - };*/ - expose(key: string, value: any): void; - - /** server.expose(obj) - Merges a deep copy of an object into to the existing content of server.plugins[name] where: - obj - the object merged into the exposed properties container. - exports.register = function (server, options, next) { - server.expose({ util: function () { console.log('something'); } }); - return next(); - };*/ - expose(obj: any): void; - - /** server.ext(event, method, [options]) - Registers an extension function in one of the available extension points where: - event - the event name. - method - a function or an array of functions to be executed at a specified point during request processing. The required extension function signature is function(request, reply) where: - request - the request object. NOTE: Access the Response via request.response - reply - the reply interface which is used to return control back to the framework. To continue normal execution of the request lifecycle, reply.continue() must be called. To abort processing and return a response to the client, call reply(value) where value is an error or any other valid response. - this - the object provided via options.bind or the current active context set with server.bind(). - options - an optional object with the following: - before - a string or array of strings of plugin names this method must execute before (on the same event). Otherwise, extension methods are executed in the order added. - after - a string or array of strings of plugin names this method must execute after (on the same event). Otherwise, extension methods are executed in the order added. - bind - a context object passed back to the provided method (via this) when called. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.ext('onRequest', function (request, reply) { - // Change all requests to '/test' - request.setUrl('/test'); - return reply.continue(); - }); - var handler = function (request, reply) { - return reply({ status: 'ok' }); - }; - server.route({ method: 'GET', path: '/test', handler: handler }); - server.start(); - // All requests will get routed to '/test'*/ - ext(event: string, method: (request: Request, reply: IReply, bind?: any) => void, options?: { before: string | string[]; after: string | string[]; bind?: any }): void; - - /** server.handler(name, method) - Registers a new handler type to be used in routes where: - name - string name for the handler being registered. Cannot override the built-in handler types (directory, file, proxy, and view) or any previously registered type. - method - the function used to generate the route handler using the signature function(route, options) where: - route - the route public interface object. - options - the configuration object provided in the handler config. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ host: 'localhost', port: 8000 }); - // Defines new handler for routes on this server - server.handler('test', function (route, options) { - return function (request, reply) { - return reply('new handler: ' + options.msg); - } - }); - server.route({ - method: 'GET', - path: '/', - handler: { test: { msg: 'test' } } - }); - server.start(); - The method function can have a defaults object or function property. If the property is set to an object, that object is used as the default route config for routes using this handler. If the property is set to a function, the function uses the signature function(method) and returns the route default configuration. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ host: 'localhost', port: 8000 }); - var handler = function (route, options) { - return function (request, reply) { - return reply('new handler: ' + options.msg); - } - }; - // Change the default payload processing for this handler - handler.defaults = { - payload: { - output: 'stream', - parse: false - } - }; - server.handler('test', handler);*/ - handler(name: string, method: (route: IRoute, options: THandlerConfig) => ISessionHandler): void; - - /** server.initialize([callback]) - Initializes the server (starts the caches, finalizes plugin registration) but does not start listening - on the connection ports, where: - - `callback` - the callback method when server initialization is completed or failed with the signature - `function(err)` where: - - `err` - any initialization error condition. - - If no `callback` is provided, a `Promise` object is returned. - - Note that if the method fails and the callback includes an error, the server is considered to be in - an undefined state and should be shut down. In most cases it would be impossible to fully recover as - the various plugins, caches, and other event listeners will get confused by repeated attempts to - start the server or make assumptions about the healthy state of the environment. It is recommended - to assert that no error has been returned after calling `initialize()` to abort the process when the - server fails to start properly. If you must try to resume after an error, call `server.stop()` - first to reset the server state. - */ - initialize(callback?: (error: any) => void): IPromise; - - /** When the server contains exactly one connection, injects a request into the sole connection simulating an incoming HTTP request without making an actual socket connection. - Injection is useful for testing purposes as well as for invoking routing logic internally without the overhead or limitations of the network stack. - Utilizes the [shot module | https://github.com/hapijs/shot ] for performing injections, with some additional options and response properties - * When the server contains more than one connection, each server.connections array member provides its own connection.inject(). - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - var handler = function (request, reply) { - return reply('Success!'); - }; - server.route({ method: 'GET', path: '/', handler: handler }); - server.inject('/', function (res) { - console.log(res.result); - }); - */ - inject: IServerInject; - - /** server.log(tags, [data, [timestamp]]) - Logs server events that cannot be associated with a specific request. When called the server emits a 'log' event which can be used by other listeners or plugins to record the information or output to the console. The arguments are: - tags - a string or an array of strings (e.g. ['error', 'database', 'read']) used to identify the event. Tags are used instead of log levels and provide a much more expressive mechanism for describing and filtering events. Any logs generated by the server internally include the 'hapi' tag along with event-specific information. - data - an optional message string or object with the application data being logged. - timestamp - an optional timestamp expressed in milliseconds. Defaults to Date.now() (now). - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.on('log', function (event, tags) { - if (tags.error) { - console.log(event); - } - }); - server.log(['test', 'error'], 'Test event');*/ - log(tags: string | string[], data?: string | any, timestamp?: number): void; - - /**server.lookup(id) - When the server contains exactly one connection, looks up a route configuration where: - id - the route identifier as set in the route options. - returns the route public interface object if found, otherwise null. - var server = new Hapi.Server(); - server.connection(); - server.route({ - method: 'GET', - path: '/', - config: { - handler: function (request, reply) { return reply(); }, - id: 'root' - } - }); - var route = server.lookup('root'); - When the server contains more than one connection, each server.connections array member provides its own connection.lookup() method.*/ - lookup(id: string): IRoute; - - /** server.match(method, path, [host]) - When the server contains exactly one connection, looks up a route configuration where: - method - the HTTP method (e.g. 'GET', 'POST'). - path - the requested path (must begin with '/'). - host - optional hostname (to match against routes with vhost). - returns the route public interface object if found, otherwise null. - var server = new Hapi.Server(); - server.connection(); - server.route({ - method: 'GET', - path: '/', - config: { - handler: function (request, reply) { return reply(); }, - id: 'root' - } - }); - var route = server.match('get', '/'); - When the server contains more than one connection, each server.connections array member provides its own connection.match() method.*/ - match(method: string, path: string, host?: string): IRoute; - - - /** server.method(name, method, [options]) - Registers a server method. Server methods are functions registered with the server and used throughout the application as a common utility. Their advantage is in the ability to configure them to use the built-in cache and share across multiple request handlers without having to create a common module. - Methods are registered via server.method(name, method, [options]) - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - // Simple arguments - var add = function (a, b, next) { - return next(null, a + b); - }; - server.method('sum', add, { cache: { expiresIn: 2000 } }); - server.methods.sum(4, 5, function (err, result) { - console.log(result); - }); - // Object argument - var addArray = function (array, next) { - var sum = 0; - array.forEach(function (item) { - sum += item; - }); - return next(null, sum); - }; - server.method('sumObj', addArray, { - cache: { expiresIn: 2000 }, - generateKey: function (array) { - return array.join(','); - } - }); - server.methods.sumObj([5, 6], function (err, result) { - console.log(result); - }); - // Synchronous method with cache - var addSync = function (a, b) { - return a + b; - }; - server.method('sumSync', addSync, { cache: { expiresIn: 2000 }, callback: false }); - server.methods.sumSync(4, 5, function (err, result) { - console.log(result); - }); */ - method(/** a unique method name used to invoke the method via server.methods[name]. When configured with caching enabled, server.methods[name].cache.drop(arg1, arg2, ..., argn, callback) can be used to clear the cache for a given key. Supports using nested names such as utils.users.get which will automatically create the missing path under server.methods and can be accessed for the previous example via server.methods.utils.users.get.*/ - name: string, - method: IServerMethod, - options?: IServerMethodOptions): void; - - - /**server.method(methods) - Registers a server method function as described in server.method() using a configuration object where: - methods - an object or an array of objects where each one contains: - name - the method name. - method - the method function. - options - optional settings. - var add = function (a, b, next) { - next(null, a + b); - }; - server.method({ - name: 'sum', - method: add, - options: { - cache: { - expiresIn: 2000 - } - } - });*/ - method(methods: { - name: string; method: IServerMethod; options?: IServerMethodOptions - } | Array<{ - name: string; method: IServerMethod; options?: IServerMethodOptions - }>): void; - - /**server.path(relativeTo) - Sets the path prefix used to locate static resources (files and view templates) when relative paths are used where: - relativeTo - the path prefix added to any relative file path starting with '.'. - Note that setting a path within a plugin only applies to resources accessed by plugin methods. If no path is set, the connection files.relativeTo configuration is used. The path only applies to routes added after it has been set. - exports.register = function (server, options, next) { - server.path(__dirname + '../static'); - server.route({ path: '/file', method: 'GET', handler: { file: './test.html' } }); - next(); - };*/ - path(relativeTo: string): void; - - - /** - * server.register(plugins, [options], callback) - * Registers a plugin where: - * plugins - an object or array of objects where each one is either: - * a plugin registration function. - * an object with the following: - * register - the plugin registration function. - * options - optional options passed to the registration function when called. - * options - optional registration options (different from the options passed to the registration function): - * select - a string or array of string labels used to pre-select connections for plugin registration. - * routes - modifiers applied to each route added by the plugin: - * prefix - string added as prefix to any route path (must begin with '/'). If a plugin registers a child plugin the prefix is passed on to the child or is added in front of the child-specific prefix. - * vhost - virtual host string (or array of strings) applied to every route. The outer-most vhost overrides the any nested configuration. - * callback - the callback function with signature function(err) where: - * err - an error returned from the registration function. Note that exceptions thrown by the registration function are not handled by the framework. - * - * If no callback is provided, a Promise object is returned. - */ - register(plugins: any | any[], options: { - select: string | string[]; - routes: { - prefix: string; vhost?: string | string[] - }; - }, callback: (err: any) => void): void; - register(plugins: any | any[], options: { - select: string | string[]; - routes: { - prefix: string; vhost?: string | string[] - }; - }): IPromise; - - register(plugins: any | any[], callback: (err: any) => void): void; - register(plugins: any | any[]): IPromise; - - /**server.render(template, context, [options], callback) - Utilizes the server views manager to render a template where: - template - the template filename and path, relative to the views manager templates path (path or relativeTo). - context - optional object used by the template to render context-specific result. Defaults to no context ({}). - options - optional object used to override the views manager configuration. - callback - the callback function with signature function (err, rendered, config) where: - err - the rendering error if any. - rendered - the result view string. - config - the configuration used to render the template. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.views({ - engines: { html: require('handlebars') }, - path: __dirname + '/templates' - }); - var context = { - title: 'Views Example', - message: 'Hello, World' - }; - server.render('hello', context, function (err, rendered, config) { - console.log(rendered); - });*/ - render(template: string, context: any, options: any, callback: (err: any, rendered: any, config: any) => void): void; - - /** server.route(options) - Adds a connection route where: - options - a route configuration object or an array of configuration objects. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.route({ method: 'GET', path: '/', handler: function (request, reply) { return reply('ok'); } }); - server.route([ - { method: 'GET', path: '/1', handler: function (request, reply) { return reply('ok'); } }, - { method: 'GET', path: '/2', handler: function (request, reply) { return reply('ok'); } } - ]);*/ - route(options: IRouteConfiguration): void; - route(options: IRouteConfiguration[]): void; - - /**server.select(labels) - Selects a subset of the server's connections where: - labels - a single string or array of strings of labels used as a logical OR statement to select all the connections with matching labels in their configuration. - Returns a server object with connections set to the requested subset. Selecting again on a selection operates as a logic AND statement between the individual selections. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80, labels: ['a'] }); - server.connection({ port: 8080, labels: ['b'] }); - server.connection({ port: 8081, labels: ['c'] }); - server.connection({ port: 8082, labels: ['c','d'] }); - var a = server.select('a'); // The server with port 80 - var ab = server.select(['a','b']); // A list of servers containing the server with port 80 and the server with port 8080 - var c = server.select('c'); // A list of servers containing the server with port 8081 and the server with port 8082 */ - select(labels: string | string[]): Server | Server[]; - - /** server.start([callback]) - Starts the server connections by listening for incoming requests on the configured port of each listener (unless the connection was configured with autoListen set to false), where: - callback - optional callback when server startup is completed or failed with the signature function(err) where: - err - any startup error condition. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.start(function (err) { - console.log('Server started at: ' + server.info.uri); - });*/ - start(callback?: (err: any) => void): IPromise; - - /** server.state(name, [options]) - HTTP state management uses client cookies to persist a state across multiple requests. Registers a cookie definitions - State defaults can be modified via the server connections.routes.state configuration option. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - // Set cookie definition - server.state('session', { - ttl: 24 * 60 * 60 * 1000, // One day - isSecure: true, - path: '/', - encoding: 'base64json' - }); - // Set state in route handler - var handler = function (request, reply) { - var session = request.state.session; - if (!session) { - session = { user: 'joe' }; - } - session.last = Date.now(); - return reply('Success').state('session', session); - }; - Registered cookies are automatically parsed when received. Parsing rules depends on the route state.parse configuration. If an incoming registered cookie fails parsing, it is not included in request.state, regardless of the state.failAction setting. When state.failAction is set to 'log' and an invalid cookie value is received, the server will emit a 'request-internal' event. To capture these errors subscribe to the 'request-internal' events and filter on 'error' and 'state' tags: - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.on('request-internal', function (request, event, tags) { - if (tags.error && tags.state) { - console.error(event); - } - }); */ - state(name: string, options?: ICookieSettings): void; - - /** server.stop([options], [callback]) - Stops the server's connections by refusing to accept any new connections or requests (existing connections will continue until closed or timeout), where: - options - optional object with: - timeout - overrides the timeout in millisecond before forcefully terminating a connection. Defaults to 5000 (5 seconds). - callback - optional callback method with signature function() which is called once all the connections have ended and it is safe to exit the process. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80 }); - server.stop({ timeout: 60 * 1000 }, function () { - console.log('Server stopped'); - });*/ - stop(options?: { timeout: number }, callback?: () => void): IPromise; - - /**server.table([host]) - Returns a copy of the routing table where: - host - optional host to filter routes matching a specific virtual host. Defaults to all virtual hosts. - The return value is an array where each item is an object containing: - info - the connection.info the connection the table was generated for. - labels - the connection labels. - table - an array of routes where each route contains: - settings - the route config with defaults applied. - method - the HTTP method in lower case. - path - the route path. - Note that if the server has not been started and multiple connections use port 0, the table items will override each other and will produce an incomplete result. - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80, host: 'example.com' }); - server.route({ method: 'GET', path: '/example', handler: function (request, reply) { return reply(); } }); - var table = server.table(); - When calling connection.table() directly on each connection, the return value is the same as the array table item value of an individual connection: - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.connection({ port: 80, host: 'example.com' }); - server.route({ method: 'GET', path: '/example', handler: function (request, reply) { return reply(); } }); - var table = server.connections[0].table(); - //[ - // { - // method: 'get', - // path: '/example', - // settings: { ... } - // } - //] - */ - table(host?: any): IConnectionTable; - - /**server.views(options) - Initializes the server views manager - var Hapi = require('hapi'); - var server = new Hapi.Server(); - server.views({ - engines: { - html: require('handlebars'), - jade: require('jade') - }, - path: '/static/templates' - }); - When server.views() is called within a plugin, the views manager is only available to plugins methods.*/ - views(options: IServerViewsConfiguration): void; - + }; + server.auth.scheme('custom', scheme); + server.auth.strategy('default', 'custom'); + console.log(server.auth.api.default.settings.x); // 5 + */ + api: { + [index: string]: any; + } + /** server.auth.default(options) + Sets a default strategy which is applied to every route where: + options - a string with the default strategy name or an object with a specified strategy or strategies using the same format as the route auth handler options. + The default does not apply when the route config specifies auth as false, or has an authentication strategy configured. Otherwise, the route authentication config is applied to the defaults. Note that the default only applies at time of route configuration, not at runtime. Calling default() after adding a route will have no impact on routes added prior. + The default auth strategy configuration can be accessed via connection.auth.settings.default. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.auth.scheme('custom', scheme); + server.auth.strategy('default', 'custom'); + server.auth.default('default'); + server.route({ + method: 'GET', + path: '/', + handler: function (request, reply) { + return reply(request.auth.credentials.user); + } + });*/ + default(options: string): void; + default(options: { strategy: string }): void; + default(options: { strategies: string[] }): void; + /** server.auth.scheme(name, scheme) + Registers an authentication scheme where: + name - the scheme name. + scheme - the method implementing the scheme with signature function(server, options) where: + server - a reference to the server object the scheme is added to. + options - optional scheme settings used to instantiate a strategy.*/ + scheme(name: string, + /** When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route. If the err returned by the reply() method includes a message, no additional strategies will be attempted. If the err does not include a message but does include a scheme name (e.g. Boom.unauthorized(null, 'Custom')), additional strategies will be attempted in order of preference. + n the scheme payload() method returns an error with a message, it means payload validation failed due to bad payload. If the error has no message but includes a scheme name (e.g. Boom.unauthorized(null, 'Custom')), authentication may still be successful if the route auth.payload configuration is set to 'optional'. + server = new Hapi.Server(); + server.connection({ port: 80 }); + scheme = function (server, options) { + urn { + authenticate: function (request, reply) { + req = request.raw.req; + var authorization = req.headers.authorization; + if (!authorization) { + return reply(Boom.unauthorized(null, 'Custom')); + } + urn reply(null, { credentials: { user: 'john' } }); + } + }; + }; + */ + scheme: (server: Server, options: any) => IServerAuthScheme): void; + + /** server.auth.strategy(name, scheme, [mode], [options]) + Registers an authentication strategy where: + name - the strategy name. + scheme - the scheme name (must be previously registered using server.auth.scheme()). + mode - if true, the scheme is automatically assigned as a required strategy to any route without an auth config. Can only be assigned to a single server strategy. Value must be true (which is the same as 'required') or a valid authentication mode ('required', 'optional', 'try'). Defaults to false. + options - scheme options based on the scheme requirements. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.auth.scheme('custom', scheme); + server.auth.strategy('default', 'custom'); + server.route({ + method: 'GET', + path: '/', + config: { + auth: 'default', + handler: function (request, reply) { + return reply(request.auth.credentials.user); + } + } + });*/ + strategy(name: string, scheme: any, mode?: boolean | string, options?: any): void; + + /** server.auth.test(strategy, request, next) + Tests a request against an authentication strategy where: + strategy - the strategy name registered with server.auth.strategy(). + request - the request object. + next - the callback function with signature function(err, credentials) where: + err - the error if authentication failed. + credentials - the authentication credentials object if authentication was successful. + Note that the test() method does not take into account the route authentication configuration. It also does not perform payload authentication. It is limited to the basic strategy authentication execution. It does not include verifying scope, entity, or other route properties. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.auth.scheme('custom', scheme); + server.auth.strategy('default', 'custom'); + server.route({ + method: 'GET', + path: '/', + handler: function (request, reply) { + request.server.auth.test('default', request, function (err, credentials) { + if (err) { + return reply({ status: false }); + } + return reply({ status: true, user: credentials.name }); + }); + } + });*/ + test(strategy: string, request: Request, next: (err: any, credentials: any) => void): void; + }; + + /** server.bind(context) + Sets a global context used as the default bind object when adding a route or an extension where: + context - the object used to bind this in handler and extension methods. + When setting context inside a plugin, the context is applied only to methods set up by the plugin. Note that the context applies only to routes and extensions added after it has been set. + var handler = function (request, reply) { + return reply(this.message); + }; + exports.register = function (server, options, next) { + var bind = { + message: 'hello' + }; + server.bind(bind); + server.route({ method: 'GET', path: '/', handler: handler }); + return next(); + };*/ + bind(context: any): void; + + + /** server.cache(options) + Provisions a cache segment within the server cache facility where: + options - catbox policy configuration where: + expiresIn - relative expiration expressed in the number of milliseconds since the item was saved in the cache. Cannot be used together with expiresAt. + expiresAt - time of day expressed in 24h notation using the 'HH:MM' format, at which point all cache records expire. Uses local time. Cannot be used together with expiresIn. + generateFunc - a function used to generate a new cache item if one is not found in the cache when calling get(). The method's signature is function(id, next) where: - id - the id string or object provided to the get() method. - next - the method called when the new item is returned with the signature function(err, value, ttl) where: - err - an error condition. - value - the new value generated. - ttl - the cache ttl value in milliseconds. Set to 0 to skip storing in the cache. Defaults to the cache global policy. + staleIn - number of milliseconds to mark an item stored in cache as stale and attempt to regenerate it when generateFunc is provided. Must be less than expiresIn. + staleTimeout - number of milliseconds to wait before checking if an item is stale. + generateTimeout - number of milliseconds to wait before returning a timeout error when the generateFunc function takes too long to return a value. When the value is eventually returned, it is stored in the cache for future requests. + cache - the cache name configured in 'server.cache`. Defaults to the default cache. + segment - string segment name, used to isolate cached items within the cache partition. When called within a plugin, defaults to '!name' where 'name' is the plugin name. Required when called outside of a plugin. + shared - if true, allows multiple cache provisions to share the same segment. Default to false. + var server = new Hapi.Server(); + server.connection({ port: 80 }); + var cache = server.cache({ segment: 'countries', expiresIn: 60 * 60 * 1000 }); + cache.set('norway', { capital: 'oslo' }, null, function (err) { + cache.get('norway', function (err, value, cached, log) { + // value === { capital: 'oslo' }; + }); + });*/ + cache(options: ICatBoxCacheOptions): void; + + /** server.connection([options]) + Adds an incoming server connection + Returns a server object with the new connection selected. + Must be called before any other server method that modifies connections is called for it to apply to the new connection (e.g. server.state()). + Note that the options object is deeply cloned (with the exception of listener which is shallowly copied) and cannot contain any values that are unsafe to perform deep copy on. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + var web = server.connection({ port: 8000, host: 'example.com', labels: ['web'] }); + var admin = server.connection({ port: 8001, host: 'example.com', labels: ['admin'] }); + // server.connections.length === 2 + // web.connections.length === 1 + // admin.connections.length === 1 */ + connection(options: IServerConnectionOptions): Server; + + /** server.decorate(type, property, method, [options]) + Extends various framework interfaces with custom methods where: + type - the interface being decorated. Supported types: + 'reply' - adds methods to the reply interface. + 'server' - adds methods to the Server object. + property - the object decoration key name. + method - the extension function. + options - if the type is 'request', supports the following optional settings: + 'apply' - if true, the method function is invoked using the signature function(request) where request is the current request object and the returned value is assigned as the decoration. + Note that decorations apply to the entire server and all its connections regardless of current selection. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.decorate('reply', 'success', function () { + return this.response({ status: 'ok' }); + }); + server.route({ + method: 'GET', + path: '/', + handler: function (request, reply) { + return reply.success(); + } + });*/ + decorate(type: string, property: string, method: Function, options?: { apply: boolean }): void; + + /** server.dependency(dependencies, [after]) + Used within a plugin to declares a required dependency on other plugins where: + dependencies - a single string or array of plugin name strings which must be registered in order for this plugin to operate. Plugins listed must be registered before the server is started. Does not provide version dependency which should be implemented using npm peer dependencies. + after - an optional function called after all the specified dependencies have been registered and before the server starts. The function is only called if the server is started. If a circular dependency is detected, an exception is thrown (e.g. two plugins each has an after function to be called after the other). The function signature is function(server, next) where: + server - the server the dependency() method was called on. + next - the callback function the method must call to return control over to the application and complete the registration process. The function signature is function(err) where: + err - internal error condition, which is returned back via the server.start() callback. + exports.register = function (server, options, next) { + server.dependency('yar', after); + return next(); + }; + var after = function (server, next) { + // Additional plugin registration logic + return next(); + };*/ + dependency(dependencies: string | string[], after?: (server: Server, next: (err: any) => void) => void): void; + + + /** server.expose(key, value) + Used within a plugin to expose a property via server.plugins[name] where: + key - the key assigned (server.plugins[name][key]). + value - the value assigned. + exports.register = function (server, options, next) { + server.expose('util', function () { console.log('something'); }); + return next(); + };*/ + expose(key: string, value: any): void; + + /** server.expose(obj) + Merges a deep copy of an object into to the existing content of server.plugins[name] where: + obj - the object merged into the exposed properties container. + exports.register = function (server, options, next) { + server.expose({ util: function () { console.log('something'); } }); + return next(); + };*/ + expose(obj: any): void; + + /** server.ext(event, method, [options]) + Registers an extension function in one of the available extension points where: + event - the event name. + method - a function or an array of functions to be executed at a specified point during request processing. The required extension function signature is function(request, reply) where: + request - the request object. NOTE: Access the Response via request.response + reply - the reply interface which is used to return control back to the framework. To continue normal execution of the request lifecycle, reply.continue() must be called. To abort processing and return a response to the client, call reply(value) where value is an error or any other valid response. + this - the object provided via options.bind or the current active context set with server.bind(). + options - an optional object with the following: + before - a string or array of strings of plugin names this method must execute before (on the same event). Otherwise, extension methods are executed in the order added. + after - a string or array of strings of plugin names this method must execute after (on the same event). Otherwise, extension methods are executed in the order added. + bind - a context object passed back to the provided method (via this) when called. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.ext('onRequest', function (request, reply) { + // Change all requests to '/test' + request.setUrl('/test'); + return reply.continue(); + }); + var handler = function (request, reply) { + return reply({ status: 'ok' }); + }; + server.route({ method: 'GET', path: '/test', handler: handler }); + server.start(); + // All requests will get routed to '/test'*/ + ext(event: string, method: (request: Request, reply: IReply, bind?: any) => void, options?: { before: string | string[]; after: string | string[]; bind?: any }): void; + + /** server.handler(name, method) + Registers a new handler type to be used in routes where: + name - string name for the handler being registered. Cannot override the built-in handler types (directory, file, proxy, and view) or any previously registered type. + method - the function used to generate the route handler using the signature function(route, options) where: + route - the route public interface object. + options - the configuration object provided in the handler config. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ host: 'localhost', port: 8000 }); + // Defines new handler for routes on this server + server.handler('test', function (route, options) { + return function (request, reply) { + return reply('new handler: ' + options.msg); + } + }); + server.route({ + method: 'GET', + path: '/', + handler: { test: { msg: 'test' } } + }); + server.start(); + The method function can have a defaults object or function property. If the property is set to an object, that object is used as the default route config for routes using this handler. If the property is set to a function, the function uses the signature function(method) and returns the route default configuration. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ host: 'localhost', port: 8000 }); + var handler = function (route, options) { + return function (request, reply) { + return reply('new handler: ' + options.msg); + } + }; + // Change the default payload processing for this handler + handler.defaults = { + payload: { + output: 'stream', + parse: false + } + }; + server.handler('test', handler);*/ + handler(name: string, method: (route: IRoute, options: THandlerConfig) => ISessionHandler): void; + + /** server.initialize([callback]) + Initializes the server (starts the caches, finalizes plugin registration) but does not start listening + on the connection ports, where: + - `callback` - the callback method when server initialization is completed or failed with the signature + `function(err)` where: + - `err` - any initialization error condition. + + If no `callback` is provided, a `Promise` object is returned. + + Note that if the method fails and the callback includes an error, the server is considered to be in + an undefined state and should be shut down. In most cases it would be impossible to fully recover as + the various plugins, caches, and other event listeners will get confused by repeated attempts to + start the server or make assumptions about the healthy state of the environment. It is recommended + to assert that no error has been returned after calling `initialize()` to abort the process when the + server fails to start properly. If you must try to resume after an error, call `server.stop()` + first to reset the server state. + */ + initialize(callback?: (error: any) => void): IPromise; + + /** When the server contains exactly one connection, injects a request into the sole connection simulating an incoming HTTP request without making an actual socket connection. + Injection is useful for testing purposes as well as for invoking routing logic internally without the overhead or limitations of the network stack. + Utilizes the [shot module | https://github.com/hapijs/shot ] for performing injections, with some additional options and response properties + * When the server contains more than one connection, each server.connections array member provides its own connection.inject(). + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + var handler = function (request, reply) { + return reply('Success!'); + }; + server.route({ method: 'GET', path: '/', handler: handler }); + server.inject('/', function (res) { + console.log(res.result); + }); + */ + inject: IServerInject; + + /** server.log(tags, [data, [timestamp]]) + Logs server events that cannot be associated with a specific request. When called the server emits a 'log' event which can be used by other listeners or plugins to record the information or output to the console. The arguments are: + tags - a string or an array of strings (e.g. ['error', 'database', 'read']) used to identify the event. Tags are used instead of log levels and provide a much more expressive mechanism for describing and filtering events. Any logs generated by the server internally include the 'hapi' tag along with event-specific information. + data - an optional message string or object with the application data being logged. + timestamp - an optional timestamp expressed in milliseconds. Defaults to Date.now() (now). + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.on('log', function (event, tags) { + if (tags.error) { + console.log(event); + } + }); + server.log(['test', 'error'], 'Test event');*/ + log(tags: string | string[], data?: string | any, timestamp?: number): void; + + /**server.lookup(id) + When the server contains exactly one connection, looks up a route configuration where: + id - the route identifier as set in the route options. + returns the route public interface object if found, otherwise null. + var server = new Hapi.Server(); + server.connection(); + server.route({ + method: 'GET', + path: '/', + config: { + handler: function (request, reply) { return reply(); }, + id: 'root' + } + }); + var route = server.lookup('root'); + When the server contains more than one connection, each server.connections array member provides its own connection.lookup() method.*/ + lookup(id: string): IRoute; + + /** server.match(method, path, [host]) + When the server contains exactly one connection, looks up a route configuration where: + method - the HTTP method (e.g. 'GET', 'POST'). + path - the requested path (must begin with '/'). + host - optional hostname (to match against routes with vhost). + returns the route public interface object if found, otherwise null. + var server = new Hapi.Server(); + server.connection(); + server.route({ + method: 'GET', + path: '/', + config: { + handler: function (request, reply) { return reply(); }, + id: 'root' + } + }); + var route = server.match('get', '/'); + When the server contains more than one connection, each server.connections array member provides its own connection.match() method.*/ + match(method: string, path: string, host?: string): IRoute; + + + /** server.method(name, method, [options]) + Registers a server method. Server methods are functions registered with the server and used throughout the application as a common utility. Their advantage is in the ability to configure them to use the built-in cache and share across multiple request handlers without having to create a common module. + Methods are registered via server.method(name, method, [options]) + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + // Simple arguments + var add = function (a, b, next) { + return next(null, a + b); + }; + server.method('sum', add, { cache: { expiresIn: 2000 } }); + server.methods.sum(4, 5, function (err, result) { + console.log(result); + }); + // Object argument + var addArray = function (array, next) { + var sum = 0; + array.forEach(function (item) { + sum += item; + }); + return next(null, sum); + }; + server.method('sumObj', addArray, { + cache: { expiresIn: 2000 }, + generateKey: function (array) { + return array.join(','); + } + }); + server.methods.sumObj([5, 6], function (err, result) { + console.log(result); + }); + // Synchronous method with cache + var addSync = function (a, b) { + return a + b; + }; + server.method('sumSync', addSync, { cache: { expiresIn: 2000 }, callback: false }); + server.methods.sumSync(4, 5, function (err, result) { + console.log(result); + }); */ + method(/** a unique method name used to invoke the method via server.methods[name]. When configured with caching enabled, server.methods[name].cache.drop(arg1, arg2, ..., argn, callback) can be used to clear the cache for a given key. Supports using nested names such as utils.users.get which will automatically create the missing path under server.methods and can be accessed for the previous example via server.methods.utils.users.get.*/ + name: string, + method: IServerMethod, + options?: IServerMethodOptions): void; + + + /**server.method(methods) + Registers a server method function as described in server.method() using a configuration object where: + methods - an object or an array of objects where each one contains: + name - the method name. + method - the method function. + options - optional settings. + var add = function (a, b, next) { + next(null, a + b); + }; + server.method({ + name: 'sum', + method: add, + options: { + cache: { + expiresIn: 2000 + } + } + });*/ + method(methods: { + name: string; method: IServerMethod; options?: IServerMethodOptions + } | Array<{ + name: string; method: IServerMethod; options?: IServerMethodOptions + }>): void; + + /**server.path(relativeTo) + Sets the path prefix used to locate static resources (files and view templates) when relative paths are used where: + relativeTo - the path prefix added to any relative file path starting with '.'. + Note that setting a path within a plugin only applies to resources accessed by plugin methods. If no path is set, the connection files.relativeTo configuration is used. The path only applies to routes added after it has been set. + exports.register = function (server, options, next) { + server.path(__dirname + '../static'); + server.route({ path: '/file', method: 'GET', handler: { file: './test.html' } }); + next(); + };*/ + path(relativeTo: string): void; + + + /** + * server.register(plugins, [options], callback) + * Registers a plugin where: + * plugins - an object or array of objects where each one is either: + * a plugin registration function. + * an object with the following: + * register - the plugin registration function. + * options - optional options passed to the registration function when called. + * options - optional registration options (different from the options passed to the registration function): + * select - a string or array of string labels used to pre-select connections for plugin registration. + * routes - modifiers applied to each route added by the plugin: + * prefix - string added as prefix to any route path (must begin with '/'). If a plugin registers a child plugin the prefix is passed on to the child or is added in front of the child-specific prefix. + * vhost - virtual host string (or array of strings) applied to every route. The outer-most vhost overrides the any nested configuration. + * callback - the callback function with signature function(err) where: + * err - an error returned from the registration function. Note that exceptions thrown by the registration function are not handled by the framework. + * + * If no callback is provided, a Promise object is returned. + */ + register(plugins: any | any[], options: { + select: string | string[]; + routes: { + prefix: string; vhost?: string | string[] + }; + }, callback: (err: any) => void): void; + register(plugins: any | any[], options: { + select: string | string[]; + routes: { + prefix: string; vhost?: string | string[] + }; + }): IPromise; + + register(plugins: any | any[], callback: (err: any) => void): void; + register(plugins: any | any[]): IPromise; + + /**server.render(template, context, [options], callback) + Utilizes the server views manager to render a template where: + template - the template filename and path, relative to the views manager templates path (path or relativeTo). + context - optional object used by the template to render context-specific result. Defaults to no context ({}). + options - optional object used to override the views manager configuration. + callback - the callback function with signature function (err, rendered, config) where: + err - the rendering error if any. + rendered - the result view string. + config - the configuration used to render the template. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.views({ + engines: { html: require('handlebars') }, + path: __dirname + '/templates' + }); + var context = { + title: 'Views Example', + message: 'Hello, World' + }; + server.render('hello', context, function (err, rendered, config) { + console.log(rendered); + });*/ + render(template: string, context: any, options: any, callback: (err: any, rendered: any, config: any) => void): void; + + /** server.route(options) + Adds a connection route where: + options - a route configuration object or an array of configuration objects. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.route({ method: 'GET', path: '/', handler: function (request, reply) { return reply('ok'); } }); + server.route([ + { method: 'GET', path: '/1', handler: function (request, reply) { return reply('ok'); } }, + { method: 'GET', path: '/2', handler: function (request, reply) { return reply('ok'); } } + ]);*/ + route(options: IRouteConfiguration): void; + route(options: IRouteConfiguration[]): void; + + /**server.select(labels) + Selects a subset of the server's connections where: + labels - a single string or array of strings of labels used as a logical OR statement to select all the connections with matching labels in their configuration. + Returns a server object with connections set to the requested subset. Selecting again on a selection operates as a logic AND statement between the individual selections. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80, labels: ['a'] }); + server.connection({ port: 8080, labels: ['b'] }); + server.connection({ port: 8081, labels: ['c'] }); + server.connection({ port: 8082, labels: ['c','d'] }); + var a = server.select('a'); // The server with port 80 + var ab = server.select(['a','b']); // A list of servers containing the server with port 80 and the server with port 8080 + var c = server.select('c'); // A list of servers containing the server with port 8081 and the server with port 8082 */ + select(labels: string | string[]): Server | Server[]; + + /** server.start([callback]) + Starts the server connections by listening for incoming requests on the configured port of each listener (unless the connection was configured with autoListen set to false), where: + callback - optional callback when server startup is completed or failed with the signature function(err) where: + err - any startup error condition. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.start(function (err) { + console.log('Server started at: ' + server.info.uri); + });*/ + start(callback?: (err: any) => void): IPromise; + + /** server.state(name, [options]) + HTTP state management uses client cookies to persist a state across multiple requests. Registers a cookie definitions + State defaults can be modified via the server connections.routes.state configuration option. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + // Set cookie definition + server.state('session', { + ttl: 24 * 60 * 60 * 1000, // One day + isSecure: true, + path: '/', + encoding: 'base64json' + }); + // Set state in route handler + var handler = function (request, reply) { + var session = request.state.session; + if (!session) { + session = { user: 'joe' }; + } + session.last = Date.now(); + return reply('Success').state('session', session); + }; + Registered cookies are automatically parsed when received. Parsing rules depends on the route state.parse configuration. If an incoming registered cookie fails parsing, it is not included in request.state, regardless of the state.failAction setting. When state.failAction is set to 'log' and an invalid cookie value is received, the server will emit a 'request-internal' event. To capture these errors subscribe to the 'request-internal' events and filter on 'error' and 'state' tags: + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.on('request-internal', function (request, event, tags) { + if (tags.error && tags.state) { + console.error(event); + } + }); */ + state(name: string, options?: ICookieSettings): void; + + /** server.stop([options], [callback]) + Stops the server's connections by refusing to accept any new connections or requests (existing connections will continue until closed or timeout), where: + options - optional object with: + timeout - overrides the timeout in millisecond before forcefully terminating a connection. Defaults to 5000 (5 seconds). + callback - optional callback method with signature function() which is called once all the connections have ended and it is safe to exit the process. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80 }); + server.stop({ timeout: 60 * 1000 }, function () { + console.log('Server stopped'); + });*/ + stop(options?: { timeout: number }, callback?: () => void): IPromise; + + /**server.table([host]) + Returns a copy of the routing table where: + host - optional host to filter routes matching a specific virtual host. Defaults to all virtual hosts. + The return value is an array where each item is an object containing: + info - the connection.info the connection the table was generated for. + labels - the connection labels. + table - an array of routes where each route contains: + settings - the route config with defaults applied. + method - the HTTP method in lower case. + path - the route path. + Note that if the server has not been started and multiple connections use port 0, the table items will override each other and will produce an incomplete result. + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80, host: 'example.com' }); + server.route({ method: 'GET', path: '/example', handler: function (request, reply) { return reply(); } }); + var table = server.table(); + When calling connection.table() directly on each connection, the return value is the same as the array table item value of an individual connection: + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.connection({ port: 80, host: 'example.com' }); + server.route({ method: 'GET', path: '/example', handler: function (request, reply) { return reply(); } }); + var table = server.connections[0].table(); + //[ + // { + // method: 'get', + // path: '/example', + // settings: { ... } + // } + //] + */ + table(host?: any): IConnectionTable; + + /**server.views(options) + Initializes the server views manager + var Hapi = require('hapi'); + var server = new Hapi.Server(); + server.views({ + engines: { + html: require('handlebars'), + jade: require('jade') + }, + path: '/static/templates' + }); + When server.views() is called within a plugin, the views manager is only available to plugins methods.*/ + views(options: IServerViewsConfiguration): void; + + } } diff --git a/hapi/tsconfig.json b/hapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/harmony-proxy/tsconfig.json b/harmony-proxy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/harmony-proxy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hasher/tsconfig.json b/hasher/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hasher/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hashids/tsconfig.json b/hashids/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hashids/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hashmap/tsconfig.json b/hashmap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hashmap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hashset/tsconfig.json b/hashset/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hashset/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hashtable/tsconfig.json b/hashtable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hashtable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/he/tsconfig.json b/he/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/he/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/heap/tsconfig.json b/heap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/heap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/heatmap.js/tsconfig.json b/heatmap.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/heatmap.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hellojs/hellojs.d.ts b/hellojs/hellojs.d.ts index 6da9f9ca0b..686d5c1adf 100644 --- a/hellojs/hellojs.d.ts +++ b/hellojs/hellojs.d.ts @@ -80,3 +80,8 @@ interface HelloJSServiceDef { } declare var hello: HelloJSStatic; + +// Support AMD require +declare module 'hellojs' { + export = hello; +} diff --git a/hellojs/tsconfig.json b/hellojs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hellojs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/helmet/helmet-tests.ts b/helmet/helmet-tests.ts index 135e632b6d..b08a60d29f 100644 --- a/helmet/helmet-tests.ts +++ b/helmet/helmet-tests.ts @@ -110,8 +110,46 @@ function noSniffTest() { */ function publicKeyPinsTest() { app.use(helmet.publicKeyPins({ + maxAge: 7776000000, + sha256s: ["AbCdEf123=", "ZyXwVu456="], + })); + + app.use(helmet.publicKeyPins({ + maxAge: 7776000000, + sha256s: ["AbCdEf123=", "ZyXwVu456="], + includeSubdomains: false + })); + + app.use(helmet.publicKeyPins({ + maxAge: 7776000000, + sha256s: ["AbCdEf123=", "ZyXwVu456="], + includeSubdomains: true + })); + + app.use(helmet.publicKeyPins({ + maxAge: 7776000000, sha256s: ["AbCdEf123=", "ZyXwVu456="], - includeSubdomains: true, reportUri: "http://example.com" })); + + app.use(helmet.publicKeyPins({ + maxAge: 7776000000, + sha256s: ["AbCdEf123=", "ZyXwVu456="], + reportOnly: true + })); + + app.use(helmet.publicKeyPins({ + maxAge: 7776000000, + sha256s: ["AbCdEf123=", "ZyXwVu456="], + setIf: function (req, res) { return true; } + })); +} + +/** + * @summary Test for {@see helmet#dnsPrefetchControl} function. + */ +function dnsPrefetchControlTest() { + app.use(helmet.dnsPrefetchControl()); + app.use(helmet.dnsPrefetchControl({ allow: false })); + app.use(helmet.dnsPrefetchControl({ allow: true })); } diff --git a/helmet/helmet.d.ts b/helmet/helmet.d.ts index 55b0e89a09..f32ba0a2d9 100644 --- a/helmet/helmet.d.ts +++ b/helmet/helmet.d.ts @@ -3,123 +3,146 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// +declare module "helmet" { + import express = require("express"); + + interface IHelmetCspDirectiveFunction { + (req: express.Request, res: express.Response): string; + } + type HelmetCspDirectiveValue = string | IHelmetCspDirectiveFunction; + interface IHelmetCspDirectives { + baseUri? : HelmetCspDirectiveValue[], + childSrc? : HelmetCspDirectiveValue[], + connectSrc? : HelmetCspDirectiveValue[], + defaultSrc? : HelmetCspDirectiveValue[], + fontSrc? : HelmetCspDirectiveValue[], + formAction? : HelmetCspDirectiveValue[], + frameAncestors? : HelmetCspDirectiveValue[], + frameSrc? : HelmetCspDirectiveValue[], + imgSrc? : HelmetCspDirectiveValue[], + mediaSrc? : HelmetCspDirectiveValue[], + objectSrc? : HelmetCspDirectiveValue[], + pluginTypes? : HelmetCspDirectiveValue[], + reportUri?: string, + sandbox? : HelmetCspDirectiveValue[], + scriptSrc? : HelmetCspDirectiveValue[], + styleSrc? : HelmetCspDirectiveValue[] + } + + interface IHelmetCspConfiguration { + reportOnly? : boolean; + setAllHeaders? : boolean; + disableAndroid? : boolean; + browserSniff?: boolean; + directives? : IHelmetCspDirectives + } -import express = require("../express"); + interface IHelmetPublicKeyPinsSetIfFunction { + (req: express.Request, res: express.Response): boolean; + } -interface IHelmetCspDirectiveFunction { - (req: express.Request, res: express.Response): string; + interface IHelmetPublicKeyPinsConfiguration { + maxAge : number; + sha256s : string[]; + includeSubdomains? : boolean; + reportUri? : string; + reportOnly? : boolean; + setIf?: IHelmetPublicKeyPinsSetIfFunction + } + + interface IHelmetXssFilterConfiguration { + setOnOldIE? : boolean; + } + + interface IHelmetDnsPrefetchControlConfiguration { + allow? : boolean; + } + + /** + * @summary Interface for helmet class. + * @interface + */ + interface Helmet { + /** + * @summary Constructor. + * @return {RequestHandler} The Request handler. + */ + ():express.RequestHandler; + + /** + * @summary Stop browsers from doing DNS prefetching. + */ + dnsPrefetchControl(options ?: IHelmetDnsPrefetchControlConfiguration):express.RequestHandler; + + /** + * @summary Prevent clickjacking. + * @param {string} header The header. + * @return {RequestHandler} The Request handler. + */ + frameguard(header ?: string):express.RequestHandler; + + /** + * @summary Hide "X-Powered-By" header. + * @param {Object} options The options. + * @return {RequestHandler} The Request handler. + */ + hidePoweredBy(options ?: Object):express.RequestHandler; + + /** + * @summary Adds the "Strict-Transport-Security" header. + * @param {Object} options The options. + * @return {RequestHandler} The Request handler. + */ + hsts(options ?: Object):express.RequestHandler; + + /** + * @summary Add the "X-Download-Options" header. + * @return {RequestHandler} The Request handler. + */ + ieNoOpen():express.RequestHandler; + + /** + * @summary Add the "Cache-Control" and "Pragma" headers to stop caching. + * @return {RequestHandler} The Request handler. + */ + noCache(options ?: Object):express.RequestHandler; + + /** + * @summary Adds the "X-Content-Type-Options" header. + * @return {RequestHandler} The Request handler. + */ + noSniff():express.RequestHandler; + + /** + * @summary Adds the "Public-Key-Pins" header. + * @return {RequestHandler} The Request handler. + */ + publicKeyPins(options ?: IHelmetPublicKeyPinsConfiguration):express.RequestHandler; + + /** + * @summary Mitigate cross-site scripting attacks with the "X-XSS-Protection" header. + * @return {RequestHandler} The Request handler. + * @param {Object} options The options. + */ + xssFilter(options ?: IHelmetXssFilterConfiguration):express.RequestHandler; + + /** + * @summary Set policy around third-party content via headers + * @return {RequestHandler} The Request handler + * @param {Object} options The options + */ + csp(options ?: IHelmetCspConfiguration): express.RequestHandler; + + /** + * @see csp + */ + contentSecurityPolicy(options ?: IHelmetCspConfiguration): express.RequestHandler; + + } + + var helmet: Helmet; + export = helmet; } -type HelmetCspDirectiveValue = string | IHelmetCspDirectiveFunction; - -interface IHelmetCspDirectives { - baseUri?: HelmetCspDirectiveValue[], - childSrc?: HelmetCspDirectiveValue[], - connectSrc?: HelmetCspDirectiveValue[], - defaultSrc?: HelmetCspDirectiveValue[], - fontSrc?: HelmetCspDirectiveValue[], - formAction?: HelmetCspDirectiveValue[], - frameAncestors?: HelmetCspDirectiveValue[], - frameSrc?: HelmetCspDirectiveValue[], - imgSrc?: HelmetCspDirectiveValue[], - mediaSrc?: HelmetCspDirectiveValue[], - objectSrc?: HelmetCspDirectiveValue[], - pluginTypes?: HelmetCspDirectiveValue[], - reportUri?: string, - sandbox?: HelmetCspDirectiveValue[], - scriptSrc?: HelmetCspDirectiveValue[], - styleSrc?: HelmetCspDirectiveValue[] -} - -interface IHelmetCspConfiguration { - reportOnly?: boolean; - setAllHeaders?: boolean; - disableAndroid?: boolean; - browserSniff?: boolean; - directives?: IHelmetCspDirectives -} - -interface IHelmetXssFilterConfiguration { - setOnOldIE?: boolean; -} - -/** - * @summary Interface for helmet class. - * @interface - */ -interface Helmet { - /** - * @summary Constructor. - * @return {RequestHandler} The Request handler. - */ - (): express.RequestHandler; - - /** - * @summary Prevent clickjacking. - * @param {string} header The header. - * @return {RequestHandler} The Request handler. - */ - frameguard(header?: string): express.RequestHandler; - - /** - * @summary Hide "X-Powered-By" header. - * @param {Object} options The options. - * @return {RequestHandler} The Request handler. - */ - hidePoweredBy(options?: Object): express.RequestHandler; - - /** - * @summary Adds the "Strict-Transport-Security" header. - * @param {Object} options The options. - * @return {RequestHandler} The Request handler. - */ - hsts(options?: Object): express.RequestHandler; - - /** - * @summary Add the "X-Download-Options" header. - * @return {RequestHandler} The Request handler. - */ - ieNoOpen(): express.RequestHandler; - - /** - * @summary Add the "Cache-Control" and "Pragma" headers to stop caching. - * @return {RequestHandler} The Request handler. - */ - noCache(options?: Object): express.RequestHandler; - - /** - * @summary Adds the "X-Content-Type-Options" header. - * @return {RequestHandler} The Request handler. - */ - noSniff(): express.RequestHandler; - - /** - * @summary Adds the "Public-Key-Pins" header. - * @return {RequestHandler} The Request handler. - */ - publicKeyPins(options?: Object): express.RequestHandler; - - /** - * @summary Mitigate cross-site scripting attacks with the "X-XSS-Protection" header. - * @return {RequestHandler} The Request handler. - * @param {Object} options The options. - */ - xssFilter(options?: IHelmetXssFilterConfiguration): express.RequestHandler; - - /** - * @summary Set policy around third-party content via headers - * @return {RequestHandler} The Request handler - * @param {Object} options The options - */ - csp(options?: IHelmetCspConfiguration): express.RequestHandler; - - /** - * @see csp - */ - contentSecurityPolicy(options?: IHelmetCspConfiguration): express.RequestHandler; - -} - -declare var helmet: Helmet; -export = helmet; diff --git a/helmet/tsconfig.json b/helmet/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/helmet/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/highcharts-ng/tsconfig.json b/highcharts-ng/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/highcharts-ng/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/highcharts/tsconfig.json b/highcharts/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/highcharts/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/highland/highland-tests.ts b/highland/highland-tests.ts index c7e213aa17..7a67670edd 100644 --- a/highland/highland-tests.ts +++ b/highland/highland-tests.ts @@ -137,7 +137,9 @@ fooStream = _(readable); fooStream = _(emitter); fooStream = _(fooStreamThen); -fooStream = _(fooArrThen); +fooStream = _(fooThen); + +fooArrStream = _(fooArrThen); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/highland/highland.d.ts b/highland/highland.d.ts index 8becaf2762..f3617ccd14 100644 --- a/highland/highland.d.ts +++ b/highland/highland.d.ts @@ -67,7 +67,7 @@ interface HighlandStatic { // moar (promise for everything?) (xs: Highland.Thenable>): Highland.Stream; - (xs: Highland.Thenable): Highland.Stream; + (xs: Highland.Thenable): Highland.Stream; /** * The end of stream marker. This is sent along the data channel of a Stream diff --git a/highland/tsconfig.json b/highland/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/highland/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/highlight.js/tsconfig.json b/highlight.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/highlight.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/history/tsconfig.json b/history/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/history/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hooker/tsconfig.json b/hooker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hooker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hopscotch/tsconfig.json b/hopscotch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hopscotch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/howler/tsconfig.json b/howler/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/howler/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/html-entities/tsconfig.json b/html-entities/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/html-entities/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/html-minifier/tsconfig.json b/html-minifier/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/html-minifier/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/html-to-text/tsconfig.json b/html-to-text/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/html-to-text/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/html2canvas/tsconfig.json b/html2canvas/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/html2canvas/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/htmlparser2/tsconfig.json b/htmlparser2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/htmlparser2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/htmltojsx/tsconfig.json b/htmltojsx/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/htmltojsx/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/http-errors/tsconfig.json b/http-errors/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/http-errors/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/http-status-codes/tsconfig.json b/http-status-codes/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/http-status-codes/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/http-status/tsconfig.json b/http-status/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/http-status/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/http-string-parser/tsconfig.json b/http-string-parser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/http-string-parser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/httperr/tsconfig.json b/httperr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/httperr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/humane/tsconfig.json b/humane/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/humane/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hypertext-application-language/tsconfig.json b/hypertext-application-language/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hypertext-application-language/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/hystrixjs/tsconfig.json b/hystrixjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/hystrixjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18n/tsconfig.json b/i18n/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18n/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18next-browser-languagedetector/tsconfig.json b/i18next-browser-languagedetector/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18next-browser-languagedetector/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18next-express-middleware/tsconfig.json b/i18next-express-middleware/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18next-express-middleware/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18next-node-fs-backend/tsconfig.json b/i18next-node-fs-backend/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18next-node-fs-backend/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18next-sprintf-postprocessor/tsconfig.json b/i18next-sprintf-postprocessor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18next-sprintf-postprocessor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index d8627c4462..9f976fd751 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -100,7 +100,7 @@ declare namespace I18next { getFixedT(lng?:string, ns?:string|string[]):TranslationFunction; - t(key:string, options?:TranslationOptions):string; + t(key:string, options?:TranslationOptions):string|any|Array; exists():boolean; diff --git a/i18next/tsconfig.json b/i18next/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/i18next/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/iban/tsconfig.json b/iban/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/iban/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ibm-mobilefirst/tsconfig.json b/ibm-mobilefirst/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ibm-mobilefirst/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/icepick/tsconfig.json b/icepick/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/icepick/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/icheck/tsconfig.json b/icheck/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/icheck/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/iconv/tsconfig.json b/iconv/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/iconv/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/image-size/tsconfig.json b/image-size/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/image-size/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/imagemagick-native/tsconfig.json b/imagemagick-native/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/imagemagick-native/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/imagemagick/tsconfig.json b/imagemagick/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/imagemagick/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/imagesloaded/tsconfig.json b/imagesloaded/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/imagesloaded/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/imap/tsconfig.json b/imap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/imap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/imgur-rest-api/tsconfig.json b/imgur-rest-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/imgur-rest-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/immutability-helper/tsconfig.json b/immutability-helper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/immutability-helper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/impress/tsconfig.json b/impress/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/impress/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/incremental-dom/tsconfig.json b/incremental-dom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/incremental-dom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inflected/tsconfig.json b/inflected/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inflected/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inflection/tsconfig.json b/inflection/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inflection/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inherits/tsconfig.json b/inherits/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inherits/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ini/tsconfig.json b/ini/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ini/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/iniparser/tsconfig.json b/iniparser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/iniparser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inline-css/tsconfig.json b/inline-css/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inline-css/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inquirer/tsconfig.json b/inquirer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inquirer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/insight/tsconfig.json b/insight/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/insight/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/interact.js/tsconfig.json b/interact.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/interact.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/intercomjs/tsconfig.json b/intercomjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/intercomjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/intro.js/tsconfig.json b/intro.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/intro.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/invariant/tsconfig.json b/invariant/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/invariant/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/inversify/tsconfig.json b/inversify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/inversify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ion.rangeSlider/tsconfig.json b/ion.rangeSlider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ion.rangeSlider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ionic/ionic-tests.ts b/ionic/ionic-tests.ts index 8491fc13f8..1790e542f1 100644 --- a/ionic/ionic-tests.ts +++ b/ionic/ionic-tests.ts @@ -387,6 +387,7 @@ class IonicTestController { ready = ionic.Platform.ready(callbackWithReturn); var setGrade: void = ionic.Platform.setGrade('iOS'); var deviceInformation: string = ionic.Platform.device(); + var isBrowser: boolean = ionic.Platform.is('browser'); var isWebView: boolean = ionic.Platform.isWebView(); var isIPad: boolean = ionic.Platform.isIPad(); var isIOS: boolean = ionic.Platform.isIOS(); diff --git a/ionic/ionic.d.ts b/ionic/ionic.d.ts index aa375b3f67..14bbc2cebe 100644 --- a/ionic/ionic.d.ts +++ b/ionic/ionic.d.ts @@ -32,6 +32,10 @@ interface IonicStatic { * Return the current device (given by cordova). */ device(): any; + /** + * Check if the platform name provided is detected. + */ + is(platformName: string): boolean; /** * Check if we are running within a WebView (such as Cordova). */ diff --git a/ionic/tsconfig.json b/ionic/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ionic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ioredis/tsconfig.json b/ioredis/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ioredis/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ip/tsconfig.json b/ip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/irc/tsconfig.json b/irc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/irc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/is-lower-case/tsconfig.json b/is-lower-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/is-lower-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/is-my-json-valid/tsconfig.json b/is-my-json-valid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/is-my-json-valid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/is-upper-case/tsconfig.json b/is-upper-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/is-upper-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/is-url/tsconfig.json b/is-url/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/is-url/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/is/tsconfig.json b/is/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/is/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/iscroll/tsconfig.json b/iscroll/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/iscroll/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/iso8601-localizer/tsconfig.json b/iso8601-localizer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/iso8601-localizer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/isomorphic-fetch/tsconfig.json b/isomorphic-fetch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/isomorphic-fetch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/istanbul/tsconfig.json b/istanbul/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/istanbul/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ix.js/tsconfig.json b/ix.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ix.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jade/tsconfig.json b/jade/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jade/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jake/tsconfig.json b/jake/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jake/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-ajax/tsconfig.json b/jasmine-ajax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-ajax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-data_driven_tests/tsconfig.json b/jasmine-data_driven_tests/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-data_driven_tests/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-es6-promise-matchers/tsconfig.json b/jasmine-es6-promise-matchers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-es6-promise-matchers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-expect/tsconfig.json b/jasmine-expect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-expect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-fixture/tsconfig.json b/jasmine-fixture/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-fixture/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-jquery/tsconfig.json b/jasmine-jquery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-jquery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-matchers/tsconfig.json b/jasmine-matchers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-matchers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-node/tsconfig.json b/jasmine-node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine-promise-matchers/tsconfig.json b/jasmine-promise-matchers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine-promise-matchers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jasmine/tsconfig.json b/jasmine/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jasmine/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/java-applet/tsconfig.json b/java-applet/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/java-applet/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/java/tsconfig.json b/java/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/java/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/javascript-astar/tsconfig.json b/javascript-astar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/javascript-astar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/javascript-bignum/tsconfig.json b/javascript-bignum/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/javascript-bignum/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jbinary/tsconfig.json b/jbinary/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jbinary/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jdataview/tsconfig.json b/jdataview/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jdataview/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jee-jsf/tsconfig.json b/jee-jsf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jee-jsf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jest/jest.d.ts b/jest/jest.d.ts index 033dd23faa..451b9abc88 100644 --- a/jest/jest.d.ts +++ b/jest/jest.d.ts @@ -29,7 +29,7 @@ declare namespace jest { function fn(implementation?: Function): Mock; function dontMock(moduleName: string): void; function genMockFromModule(moduleName: string): Mock; - function mock(moduleName: string): void; + function mock(moduleName: string, factory?: Function): void; function runAllTicks(): void; function runAllTimers(): void; function runOnlyPendingTimers(): void; diff --git a/jest/tsconfig.json b/jest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jfp/tsconfig.json b/jfp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jfp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jjv/tsconfig.json b/jjv/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jjv/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jjve/tsconfig.json b/jjve/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jjve/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/joData/tsconfig.json b/joData/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/joData/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/johnny-five/tsconfig.json b/johnny-five/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/johnny-five/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/joi/tsconfig.json b/joi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/joi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jointjs/tsconfig.json b/jointjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jointjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jqgrid/tsconfig.json b/jqgrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jqgrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jqrangeslider/tsconfig.json b/jqrangeslider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jqrangeslider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-ajax-chain/tsconfig.json b/jquery-ajax-chain/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-ajax-chain/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-backstretch/jquery-backstretch-tests.ts b/jquery-backstretch/jquery-backstretch-tests.ts new file mode 100644 index 0000000000..b658c6aaeb --- /dev/null +++ b/jquery-backstretch/jquery-backstretch-tests.ts @@ -0,0 +1,19 @@ +/// +/// + +var backstretch = jQuery.backstretch(['image.png'], { + centeredX: false, + centeredY: false, + duration: 'normal', + fade: 1000 +}); + +backstretch.next(); +backstretch.prev(); +backstretch.pause(); +backstretch.resize(); +backstretch.resume(); +backstretch.destroy(true); + +jQuery('body').backstretch(['image.png']).pause(); +jQuery('body').backstretch('resume'); diff --git a/jquery-backstretch/jquery-backstretch.d.ts b/jquery-backstretch/jquery-backstretch.d.ts new file mode 100644 index 0000000000..5c951beeee --- /dev/null +++ b/jquery-backstretch/jquery-backstretch.d.ts @@ -0,0 +1,92 @@ +// Type definitions for backstretch v 2.0.4 +// Project: https://github.com/srobbin/jquery-backstretch +// Definitions by: Dmytro Kulyk +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace JQueryBackStretch { + + interface BackStretchOptions { + /** + * The ratio of the width/height of the image doesn't always jive with the + * width/height of the window. This parameter controls whether or not we + * center the image on the X axis to account for the discrepancy. + */ + centeredX?:boolean; + + /** + * This parameter controls whether or not we center the image on the Y axis + * to account for the aforementioned discrepancy. + */ + centeredY?:boolean; + + /** + * This is the speed at which the image will fade in. Integers in + * milliseconds are accepted, as well as standard jQuery speed strings + * (slow, normal, fast). + */ + duration?:number | string; + + /** + * The amount of time in between slides, when using Backstretch as a + * slideshow, expressed as the number of milliseconds. + */ + fade?:number; + } + + interface BackStretch { + /** + * This method is called automatically when the container (window or + * block-level element) is resized, however you can always call this + * manually if needed. + */ + resize():BackStretch; + + /** + * Jump to the slide at a given index, where n is the number of the + * image that you'd like to display. Slide number starts at 0. + * + * @param {number} newIndex + */ + show(newIndex:number):BackStretch; + + /** + * Advance to the next image in a slideshow. + */ + next():BackStretch; + + /** + * Display the previous image in a slideshow. + */ + prev():BackStretch; + + /** + * Pause the slideshow. + */ + pause():BackStretch; + + /** + * Resume a paused slideshow. + */ + resume():BackStretch; + + /** + * Destroy the Backstretch instance. Optionally, you can pass in a Boolean + * parameter, preserveBackground, to determine whether or not you'd like + * to keep the current image stretched as the background image. + * + * @param {boolean} preserveBackground + */ + destroy(preserveBackground?:boolean):void; + } +} + +interface JQueryStatic { + backstretch(images:string[], config?:JQueryBackStretch.BackStretchOptions):JQueryBackStretch.BackStretch; +} + +interface JQuery { + backstretch(images:string[], config?:JQueryBackStretch.BackStretchOptions):JQueryBackStretch.BackStretch; + backstretch(method:string):JQuery; +} \ No newline at end of file diff --git a/jquery-backstretch/tsconfig.json b/jquery-backstretch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-backstretch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-cropbox/tsconfig.json b/jquery-cropbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-cropbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-easy-loading/tsconfig.json b/jquery-easy-loading/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-easy-loading/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-fullscreen/tsconfig.json b/jquery-fullscreen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-fullscreen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-galleria/tsconfig.json b/jquery-galleria/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-galleria/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-handsontable/tsconfig.json b/jquery-handsontable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-handsontable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-jsonrpcclient/tsconfig.json b/jquery-jsonrpcclient/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-jsonrpcclient/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-knob/tsconfig.json b/jquery-knob/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-knob/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-mockjax/tsconfig.json b/jquery-mockjax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-mockjax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-sortable/tsconfig.json b/jquery-sortable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-sortable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-timeentry/tsconfig.json b/jquery-timeentry/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-timeentry/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-urlparam/tsconfig.json b/jquery-urlparam/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-urlparam/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery-validation-unobtrusive/tsconfig.json b/jquery-validation-unobtrusive/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery-validation-unobtrusive/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.address/tsconfig.json b/jquery.address/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.address/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.ajaxfile/tsconfig.json b/jquery.ajaxfile/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.ajaxfile/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.are-you-sure/tsconfig.json b/jquery.are-you-sure/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.are-you-sure/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.autosize/tsconfig.json b/jquery.autosize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.autosize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.base64/tsconfig.json b/jquery.base64/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.base64/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.bbq/tsconfig.json b/jquery.bbq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.bbq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.blockUI/tsconfig.json b/jquery.blockUI/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.blockUI/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.bootstrap.wizard/tsconfig.json b/jquery.bootstrap.wizard/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.bootstrap.wizard/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.cleditor/tsconfig.json b/jquery.cleditor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.cleditor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.clientSideLogging/tsconfig.json b/jquery.clientSideLogging/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.clientSideLogging/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.color/tsconfig.json b/jquery.color/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.color/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.colorbox/tsconfig.json b/jquery.colorbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.colorbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.colorpicker/tsconfig.json b/jquery.colorpicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.colorpicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.contextMenu/tsconfig.json b/jquery.contextMenu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.contextMenu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.cookie/tsconfig.json b/jquery.cookie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.cookie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.customSelect/tsconfig.json b/jquery.customSelect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.customSelect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.cycle/tsconfig.json b/jquery.cycle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.cycle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.cycle2/tsconfig.json b/jquery.cycle2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.cycle2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.dataTables/tsconfig.json b/jquery.dataTables/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.dataTables/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.dropotron/tsconfig.json b/jquery.dropotron/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.dropotron/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.dynatree/tsconfig.json b/jquery.dynatree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.dynatree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.elang/tsconfig.json b/jquery.elang/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.elang/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.fancytree/tsconfig.json b/jquery.fancytree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.fancytree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.fileupload/tsconfig.json b/jquery.fileupload/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.fileupload/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.finger/tsconfig.json b/jquery.finger/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.finger/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.form/tsconfig.json b/jquery.form/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.form/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.fullscreen/tsconfig.json b/jquery.fullscreen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.fullscreen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.gridster/tsconfig.json b/jquery.gridster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.gridster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.highlight-bartaz/tsconfig.json b/jquery.highlight-bartaz/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.highlight-bartaz/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.jnotify/tsconfig.json b/jquery.jnotify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.jnotify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.joyride/tsconfig.json b/jquery.joyride/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.joyride/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.jsignature/tsconfig.json b/jquery.jsignature/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.jsignature/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.leanModal/tsconfig.json b/jquery.leanModal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.leanModal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.livestampjs/tsconfig.json b/jquery.livestampjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.livestampjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.menuaim/tsconfig.json b/jquery.menuaim/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.menuaim/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.mmenu/tsconfig.json b/jquery.mmenu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.mmenu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.notifyBar/tsconfig.json b/jquery.notifyBar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.notifyBar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.noty/tsconfig.json b/jquery.noty/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.noty/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.payment/tsconfig.json b/jquery.payment/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.payment/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.pjax.falsandtru/tsconfig.json b/jquery.pjax.falsandtru/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.pjax.falsandtru/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.pjax/tsconfig.json b/jquery.pjax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.pjax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.placeholder/tsconfig.json b/jquery.placeholder/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.placeholder/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.pnotify/tsconfig.json b/jquery.pnotify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.pnotify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.postMessage/tsconfig.json b/jquery.postMessage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.postMessage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.prettyphoto/tsconfig.json b/jquery.prettyphoto/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.prettyphoto/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.qrcode/tsconfig.json b/jquery.qrcode/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.qrcode/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.rowGrid/tsconfig.json b/jquery.rowGrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.rowGrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.scrollTo/tsconfig.json b/jquery.scrollTo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.scrollTo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.simplePagination/tsconfig.json b/jquery.simplePagination/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.simplePagination/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.simplemodal/tsconfig.json b/jquery.simplemodal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.simplemodal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.simulate/tsconfig.json b/jquery.simulate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.simulate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.slimScroll/tsconfig.json b/jquery.slimScroll/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.slimScroll/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.soap/tsconfig.json b/jquery.soap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.soap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.sortElements/tsconfig.json b/jquery.sortElements/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.sortElements/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.superLink/tsconfig.json b/jquery.superLink/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.superLink/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tagsmanager/tsconfig.json b/jquery.tagsmanager/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tagsmanager/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tile/tsconfig.json b/jquery.tile/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tile/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.timeago/tsconfig.json b/jquery.timeago/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.timeago/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.timepicker/tsconfig.json b/jquery.timepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.timepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.timer/tsconfig.json b/jquery.timer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.timer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tinycarousel/tsconfig.json b/jquery.tinycarousel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tinycarousel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tinyscrollbar/tsconfig.json b/jquery.tinyscrollbar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tinyscrollbar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tipsy/tsconfig.json b/jquery.tipsy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tipsy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.tooltipster/tsconfig.json b/jquery.tooltipster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.tooltipster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.total-storage/tsconfig.json b/jquery.total-storage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.total-storage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.transit/tsconfig.json b/jquery.transit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.transit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.ui.datetimepicker/tsconfig.json b/jquery.ui.datetimepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.ui.datetimepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.ui.layout/tsconfig.json b/jquery.ui.layout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.ui.layout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.uniform/tsconfig.json b/jquery.uniform/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.uniform/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.validation/tsconfig.json b/jquery.validation/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.validation/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.watermark/tsconfig.json b/jquery.watermark/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.watermark/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery.window/tsconfig.json b/jquery.window/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery.window/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index ecd9266b45..a3a8e6581d 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -2528,6 +2528,18 @@ function test_jQuery() { $.post('url.xml', function (data) { var $child = $(data).find('child'); }); + $.post({ + url: "test.php", + success : () => { + console.log("successfull"); + } + }); + $.get({ + url: "test.php", + success : () => { + console.log("successfull"); + } + }); var foo = { foo: 'bar', hello: 'world' }; var $foo = $(foo); var test1 = $foo.prop('foo'); diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 51a2773bf2..6478529dad 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -676,6 +676,12 @@ interface JQueryStatic { * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). */ get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; + /** + * Load data from the server using a HTTP GET request. + * + * @param settings The JQueryAjaxSettings to be used for the request + */ + get(settings : JQueryAjaxSettings): JQueryXHR; /** * Load JSON-encoded data from the server using a GET HTTP request. * @@ -721,7 +727,12 @@ interface JQueryStatic { * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html). */ post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; - + /** + * Load data from the server using a HTTP POST request. + * + * @param settings The JQueryAjaxSettings to be used for the request + */ + post(settings : JQueryAjaxSettings): JQueryXHR; /** * A multi-purpose callbacks list object that provides a powerful way to manage callback lists. * diff --git a/jquery/tsconfig.json b/jquery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jquerymobile/tsconfig.json b/jquerymobile/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jquerymobile/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jqueryui/tsconfig.json b/jqueryui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jqueryui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-beautify/tsconfig.json b/js-beautify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-beautify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-clipper/tsconfig.json b/js-clipper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-clipper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-combinatorics/tsconfig.json b/js-combinatorics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-combinatorics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-cookie/tsconfig.json b/js-cookie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-cookie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-data-angular/tsconfig.json b/js-data-angular/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-data-angular/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-data-http/tsconfig.json b/js-data-http/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-data-http/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-data/tsconfig.json b/js-data/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-data/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-fixtures/tsconfig.json b/js-fixtures/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-fixtures/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-git/tsconfig.json b/js-git/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-git/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-md5/tsconfig.json b/js-md5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-md5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-schema/tsconfig.json b/js-schema/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-schema/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-url/tsconfig.json b/js-url/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-url/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/js-yaml/tsconfig.json b/js-yaml/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/js-yaml/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsbn/tsconfig.json b/jsbn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsbn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jscrollpane/tsconfig.json b/jscrollpane/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jscrollpane/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsdeferred/tsconfig.json b/jsdeferred/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsdeferred/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsdom/tsconfig.json b/jsdom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsdom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsen/tsconfig.json b/jsen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsend/tsconfig.json b/jsend/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsend/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsesc/tsconfig.json b/jsesc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsesc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsfl/tsconfig.json b/jsfl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsfl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jshamcrest/tsconfig.json b/jshamcrest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jshamcrest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsmockito/tsconfig.json b/jsmockito/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsmockito/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsnlog/tsconfig.json b/jsnlog/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsnlog/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsnox/tsconfig.json b/jsnox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsnox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/json-patch/tsconfig.json b/json-patch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/json-patch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/json-pointer/tsconfig.json b/json-pointer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/json-pointer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/json-socket/tsconfig.json b/json-socket/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/json-socket/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/json-stable-stringify/tsconfig.json b/json-stable-stringify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/json-stable-stringify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/json5/tsconfig.json b/json5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/json5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsoneditoronline/tsconfig.json b/jsoneditoronline/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsoneditoronline/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsonpath/tsconfig.json b/jsonpath/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsonpath/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsonwebtoken/tsconfig.json b/jsonwebtoken/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsonwebtoken/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jspdf/tsconfig.json b/jspdf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jspdf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsplumb/tsconfig.json b/jsplumb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsplumb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsrender/tsconfig.json b/jsrender/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsrender/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jss/tsconfig.json b/jss/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jss/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jssha/tsconfig.json b/jssha/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jssha/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jstorage/tsconfig.json b/jstorage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jstorage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jstree/tsconfig.json b/jstree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jstree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsts/tsconfig.json b/jsts/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsts/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsuri/tsconfig.json b/jsuri/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsuri/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsurl/tsconfig.json b/jsurl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsurl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jsx-chai/tsconfig.json b/jsx-chai/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jsx-chai/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jszip/tsconfig.json b/jszip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jszip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jug/tsconfig.json b/jug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jwplayer/tsconfig.json b/jwplayer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jwplayer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jwt-decode/tsconfig.json b/jwt-decode/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jwt-decode/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/jwt-simple/tsconfig.json b/jwt-simple/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/jwt-simple/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kafka-node/tsconfig.json b/kafka-node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kafka-node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/karma-coverage/tsconfig.json b/karma-coverage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/karma-coverage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/karma-jasmine/tsconfig.json b/karma-jasmine/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/karma-jasmine/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/karma/tsconfig.json b/karma/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/karma/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/katex/tsconfig.json b/katex/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/katex/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kefir/tsconfig.json b/kefir/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kefir/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kendo-ui/tsconfig.json b/kendo-ui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kendo-ui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/keyboardjs/tsconfig.json b/keyboardjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/keyboardjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/keymaster/tsconfig.json b/keymaster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/keymaster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/keypress/tsconfig.json b/keypress/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/keypress/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/keytar/tsconfig.json b/keytar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/keytar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kii-cloud-sdk/tsconfig.json b/kii-cloud-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kii-cloud-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kineticjs/tsconfig.json b/kineticjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kineticjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knex/tsconfig.json b/knex/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knex/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockback/tsconfig.json b/knockback/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockback/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout-amd-helpers/tsconfig.json b/knockout-amd-helpers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout-amd-helpers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout-paging/tsconfig.json b/knockout-paging/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout-paging/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout-pre-rendered/tsconfig.json b/knockout-pre-rendered/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout-pre-rendered/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout-secure-binding/tsconfig.json b/knockout-secure-binding/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout-secure-binding/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout-transformations/tsconfig.json b/knockout-transformations/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout-transformations/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.deferred.updates/tsconfig.json b/knockout.deferred.updates/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.deferred.updates/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.editables/tsconfig.json b/knockout.editables/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.editables/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.es5/tsconfig.json b/knockout.es5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.es5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.kogrid/tsconfig.json b/knockout.kogrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.kogrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.mapper/tsconfig.json b/knockout.mapper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.mapper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.mapping/tsconfig.json b/knockout.mapping/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.mapping/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.postbox/tsconfig.json b/knockout.postbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.postbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.projections/tsconfig.json b/knockout.projections/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.projections/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.punches/tsconfig.json b/knockout.punches/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.punches/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.rx/tsconfig.json b/knockout.rx/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.rx/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.validation/tsconfig.json b/knockout.validation/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.validation/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout.viewmodel/tsconfig.json b/knockout.viewmodel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout.viewmodel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockout/tsconfig.json b/knockout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/knockstrap/tsconfig.json b/knockstrap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/knockstrap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ko.plus/tsconfig.json b/ko.plus/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ko.plus/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-bodyparser/tsconfig.json b/koa-bodyparser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-bodyparser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-compose/tsconfig.json b/koa-compose/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-compose/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-favicon/tsconfig.json b/koa-favicon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-favicon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-json/tsconfig.json b/koa-json/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-json/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-mount/koa-mount-tests.ts b/koa-mount/koa-mount-tests.ts new file mode 100644 index 0000000000..560938b22f --- /dev/null +++ b/koa-mount/koa-mount-tests.ts @@ -0,0 +1,26 @@ +/// +/// + +import * as Koa from "koa"; +import mount = require("koa-mount"); + +const a = new Koa(); + +a.use((next) => { + this.body = "Hello"; +}) + +const b = new Koa(); + +b.use((next) => { + this.body = "World"; +}); + +const app = new Koa(); + +app.use(mount("/hello", a)); +app.use(mount("/world", b)); + +app.listen(3000); +console.log("listening on port 3000"); + diff --git a/koa-mount/koa-mount.d.ts b/koa-mount/koa-mount.d.ts new file mode 100644 index 0000000000..6c9c83bb73 --- /dev/null +++ b/koa-mount/koa-mount.d.ts @@ -0,0 +1,23 @@ +// Type definitions for koa-mount v2.0.0 +// Project: https://github.com/koajs/mount +// Definitions by: AmirSaber Sharifi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "koa-mount" { + + import * as Koa from "koa"; + + interface Function { (ctx: Koa.Context, next?: () => any): any } + + function mount(app: Function): Function; + + function mount(app: Koa): Function; + + function mount(prefix: string, app: Function): Function; + + function mount(prefix: string, app: Koa): Function; + + export = mount; +} diff --git a/koa-mount/tsconfig.json b/koa-mount/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-mount/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-router/tsconfig.json b/koa-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa-static/tsconfig.json b/koa-static/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa-static/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/koa/tsconfig.json b/koa/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/koa/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kolite/tsconfig.json b/kolite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kolite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/konami.js/tsconfig.json b/konami.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/konami.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kue/tsconfig.json b/kue/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kue/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/kuromoji/tsconfig.json b/kuromoji/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/kuromoji/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ladda/tsconfig.json b/ladda/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ladda/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/later/tsconfig.json b/later/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/later/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/latinize/tsconfig.json b/latinize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/latinize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lazy.js/tsconfig.json b/lazy.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lazy.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lazypipe/tsconfig.json b/lazypipe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lazypipe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet-curve/tsconfig.json b/leaflet-curve/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet-curve/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet-draw/tsconfig.json b/leaflet-draw/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet-draw/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet-editable/tsconfig.json b/leaflet-editable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet-editable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet-label/tsconfig.json b/leaflet-label/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet-label/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet-markercluster/tsconfig.json b/leaflet-markercluster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet-markercluster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet.awesome-markers/tsconfig.json b/leaflet.awesome-markers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet.awesome-markers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet.fullscreen/tsconfig.json b/leaflet.fullscreen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet.fullscreen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leaflet/tsconfig.json b/leaflet/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leaflet/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/leapmotionTS/tsconfig.json b/leapmotionTS/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/leapmotionTS/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/less-middleware/tsconfig.json b/less-middleware/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/less-middleware/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/less/tsconfig.json b/less/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/less/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lestate/tsconfig.json b/lestate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lestate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/level-sublevel/tsconfig.json b/level-sublevel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/level-sublevel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/levelup/tsconfig.json b/levelup/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/levelup/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/libxmljs/tsconfig.json b/libxmljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/libxmljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lime-js/tsconfig.json b/lime-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lime-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/line-reader/tsconfig.json b/line-reader/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/line-reader/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/linq/tsconfig.json b/linq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/linq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/linqsharp/tsconfig.json b/linqsharp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/linqsharp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lls/tsconfig.json b/lls/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lls/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lobibox/tsconfig.json b/lobibox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lobibox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/localForage/tsconfig.json b/localForage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/localForage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lockfile/tsconfig.json b/lockfile/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lockfile/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lodash-decorators/tsconfig.json b/lodash-decorators/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lodash-decorators/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 7931acb2b2..2d5f5b50f3 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -527,16 +527,12 @@ namespace TestDropRightWhile { result = _.dropRightWhile(array); result = _.dropRightWhile(array, predicateFn); - result = _.dropRightWhile(array, predicateFn, any); result = _.dropRightWhile(array, ''); - result = _.dropRightWhile(array, '', any); result = _.dropRightWhile<{a: number;}, TResult>(array, {a: 42}); result = _.dropRightWhile(list); result = _.dropRightWhile(list, predicateFn); - result = _.dropRightWhile(list, predicateFn, any); result = _.dropRightWhile(list, ''); - result = _.dropRightWhile(list, '', any); result = _.dropRightWhile<{a: number;}, TResult>(list, {a: 42}); } @@ -545,16 +541,12 @@ namespace TestDropRightWhile { result = _(array).dropRightWhile(); result = _(array).dropRightWhile(predicateFn); - result = _(array).dropRightWhile(predicateFn, any); result = _(array).dropRightWhile(''); - result = _(array).dropRightWhile('', any); result = _(array).dropRightWhile<{a: number;}>({a: 42}); result = _(list).dropRightWhile(); result = _(list).dropRightWhile(predicateFn); - result = _(list).dropRightWhile(predicateFn, any); result = _(list).dropRightWhile(''); - result = _(list).dropRightWhile('', any); result = _(list).dropRightWhile<{a: number;}, TResult>({a: 42}); } @@ -563,16 +555,12 @@ namespace TestDropRightWhile { result = _(array).chain().dropRightWhile(); result = _(array).chain().dropRightWhile(predicateFn); - result = _(array).chain().dropRightWhile(predicateFn, any); result = _(array).chain().dropRightWhile(''); - result = _(array).chain().dropRightWhile('', any); result = _(array).chain().dropRightWhile<{a: number;}>({a: 42}); result = _(list).chain().dropRightWhile(); result = _(list).chain().dropRightWhile(predicateFn); - result = _(list).chain().dropRightWhile(predicateFn, any); result = _(list).chain().dropRightWhile(''); - result = _(list).chain().dropRightWhile('', any); result = _(list).chain().dropRightWhile<{a: number;}, TResult>({a: 42}); } } @@ -588,16 +576,12 @@ namespace TestDropWhile { result = _.dropWhile(array); result = _.dropWhile(array, predicateFn); - result = _.dropWhile(array, predicateFn, any); result = _.dropWhile(array, ''); - result = _.dropWhile(array, '', any); result = _.dropWhile<{a: number;}, TResult>(array, {a: 42}); result = _.dropWhile(list); result = _.dropWhile(list, predicateFn); - result = _.dropWhile(list, predicateFn, any); result = _.dropWhile(list, ''); - result = _.dropWhile(list, '', any); result = _.dropWhile<{a: number;}, TResult>(list, {a: 42}); } @@ -606,16 +590,12 @@ namespace TestDropWhile { result = _(array).dropWhile(); result = _(array).dropWhile(predicateFn); - result = _(array).dropWhile(predicateFn, any); result = _(array).dropWhile(''); - result = _(array).dropWhile('', any); result = _(array).dropWhile<{a: number;}>({a: 42}); result = _(list).dropWhile(); result = _(list).dropWhile(predicateFn); - result = _(list).dropWhile(predicateFn, any); result = _(list).dropWhile(''); - result = _(list).dropWhile('', any); result = _(list).dropWhile<{a: number;}, TResult>({a: 42}); } @@ -624,16 +604,12 @@ namespace TestDropWhile { result = _(array).chain().dropWhile(); result = _(array).chain().dropWhile(predicateFn); - result = _(array).chain().dropWhile(predicateFn, any); result = _(array).chain().dropWhile(''); - result = _(array).chain().dropWhile('', any); result = _(array).chain().dropWhile<{a: number;}>({a: 42}); result = _(list).chain().dropWhile(); result = _(list).chain().dropWhile(predicateFn); - result = _(list).chain().dropWhile(predicateFn, any); result = _(list).chain().dropWhile(''); - result = _(list).chain().dropWhile('', any); result = _(list).chain().dropWhile<{a: number;}, TResult>({a: 42}); } } @@ -703,30 +679,22 @@ namespace TestFindIndex { result = _.findIndex(array); result = _.findIndex(array, predicateFn); - result = _.findIndex(array, predicateFn, any); result = _.findIndex(array, ''); - result = _.findIndex(array, '', any); result = _.findIndex<{a: number}, TResult>(array, {a: 42}); result = _.findIndex(list); result = _.findIndex(list, predicateFn); - result = _.findIndex(list, predicateFn, any); result = _.findIndex(list, ''); - result = _.findIndex(list, '', any); result = _.findIndex<{a: number}, TResult>(list, {a: 42}); result = _(array).findIndex(); result = _(array).findIndex(predicateFn); - result = _(array).findIndex(predicateFn, any); result = _(array).findIndex(''); - result = _(array).findIndex('', any); result = _(array).findIndex<{a: number}>({a: 42}); result = _(list).findIndex(); result = _(list).findIndex(predicateFn); - result = _(list).findIndex(predicateFn, any); result = _(list).findIndex(''); - result = _(list).findIndex('', any); result = _(list).findIndex<{a: number}>({a: 42}); } @@ -735,16 +703,12 @@ namespace TestFindIndex { result = _(array).chain().findIndex(); result = _(array).chain().findIndex(predicateFn); - result = _(array).chain().findIndex(predicateFn, any); result = _(array).chain().findIndex(''); - result = _(array).chain().findIndex('', any); result = _(array).chain().findIndex<{a: number}>({a: 42}); result = _(list).chain().findIndex(); result = _(list).chain().findIndex(predicateFn); - result = _(list).chain().findIndex(predicateFn, any); result = _(list).chain().findIndex(''); - result = _(list).chain().findIndex('', any); result = _(list).chain().findIndex<{a: number}>({a: 42}); } } @@ -761,30 +725,22 @@ namespace TestFindLastIndex { result = _.findLastIndex(array); result = _.findLastIndex(array, predicateFn); - result = _.findLastIndex(array, predicateFn, any); result = _.findLastIndex(array, ''); - result = _.findLastIndex(array, '', any); result = _.findLastIndex<{a: number}, TResult>(array, {a: 42}); result = _.findLastIndex(list); result = _.findLastIndex(list, predicateFn); - result = _.findLastIndex(list, predicateFn, any); result = _.findLastIndex(list, ''); - result = _.findLastIndex(list, '', any); result = _.findLastIndex<{a: number}, TResult>(list, {a: 42}); result = _(array).findLastIndex(); result = _(array).findLastIndex(predicateFn); - result = _(array).findLastIndex(predicateFn, any); result = _(array).findLastIndex(''); - result = _(array).findLastIndex('', any); result = _(array).findLastIndex<{a: number}>({a: 42}); result = _(list).findLastIndex(); result = _(list).findLastIndex(predicateFn); - result = _(list).findLastIndex(predicateFn, any); result = _(list).findLastIndex(''); - result = _(list).findLastIndex('', any); result = _(list).findLastIndex<{a: number}>({a: 42}); } @@ -793,16 +749,12 @@ namespace TestFindLastIndex { result = _(array).chain().findLastIndex(); result = _(array).chain().findLastIndex(predicateFn); - result = _(array).chain().findLastIndex(predicateFn, any); result = _(array).chain().findLastIndex(''); - result = _(array).chain().findLastIndex('', any); result = _(array).chain().findLastIndex<{a: number}>({a: 42}); result = _(list).chain().findLastIndex(); result = _(list).chain().findLastIndex(predicateFn); - result = _(list).chain().findLastIndex(predicateFn, any); result = _(list).chain().findLastIndex(''); - result = _(list).chain().findLastIndex('', any); result = _(list).chain().findLastIndex<{a: number}>({a: 42}); } } @@ -1019,6 +971,24 @@ namespace TestFlattenDeep { } } +// _.fromPairs +namespace TestFromPairs { + let array: string[][]; + let result: _.Dictionary; + + { + result = _.fromPairs(array); + } + + { + result = _(array).fromPairs().value(); + } + + { + result = _.chain(array).fromPairs().value(); + } +} + // _.head namespace TestHead { let array: TResult[]; @@ -1412,16 +1382,12 @@ namespace TestRemove { result = _.remove(array); result = _.remove(array, predicateFn); - result = _.remove(array, predicateFn, any); result = _.remove(array, ''); - result = _.remove(array, '', any); result = _.remove<{a: number}, TResult>(array, {a: 42}); result = _.remove(list); result = _.remove(list, predicateFn); - result = _.remove(list, predicateFn, any); result = _.remove(list, ''); - result = _.remove(list, '', any); result = _.remove<{a: number}, TResult>(list, {a: 42}); } @@ -1430,16 +1396,12 @@ namespace TestRemove { result = _(array).remove(); result = _(array).remove(predicateFn); - result = _(array).remove(predicateFn, any); result = _(array).remove(''); - result = _(array).remove('', any); result = _(array).remove<{a: number}>({a: 42}); result = _(list).remove(); result = _(list).remove(predicateFn); - result = _(list).remove(predicateFn, any); result = _(list).remove(''); - result = _(list).remove('', any); result = _(list).remove<{a: number}, TResult>({a: 42}); } @@ -1448,16 +1410,12 @@ namespace TestRemove { result = _(array).chain().remove(); result = _(array).chain().remove(predicateFn); - result = _(array).chain().remove(predicateFn, any); result = _(array).chain().remove(''); - result = _(array).chain().remove('', any); result = _(array).chain().remove<{a: number}>({a: 42}); result = _(list).chain().remove(); result = _(list).chain().remove(predicateFn); - result = _(list).chain().remove(predicateFn, any); result = _(list).chain().remove(''); - result = _(list).chain().remove('', any); result = _(list).chain().remove<{a: number}, TResult>({a: 42}); } } @@ -1834,16 +1792,12 @@ namespace TestTakeRightWhile { result = _.takeRightWhile(array); result = _.takeRightWhile(array, predicateFn); - result = _.takeRightWhile(array, predicateFn, any); result = _.takeRightWhile(array, ''); - result = _.takeRightWhile(array, '', any); result = _.takeRightWhile<{a: number;}, TResult>(array, {a: 42}); result = _.takeRightWhile(list); result = _.takeRightWhile(list, predicateFn); - result = _.takeRightWhile(list, predicateFn, any); result = _.takeRightWhile(list, ''); - result = _.takeRightWhile(list, '', any); result = _.takeRightWhile<{a: number;}, TResult>(list, {a: 42}); } @@ -1852,16 +1806,12 @@ namespace TestTakeRightWhile { result = _(array).takeRightWhile(); result = _(array).takeRightWhile(predicateFn); - result = _(array).takeRightWhile(predicateFn, any); result = _(array).takeRightWhile(''); - result = _(array).takeRightWhile('', any); result = _(array).takeRightWhile<{a: number;}>({a: 42}); result = _(list).takeRightWhile(); result = _(list).takeRightWhile(predicateFn); - result = _(list).takeRightWhile(predicateFn, any); result = _(list).takeRightWhile(''); - result = _(list).takeRightWhile('', any); result = _(list).takeRightWhile<{a: number;}, TResult>({a: 42}); } @@ -1870,16 +1820,12 @@ namespace TestTakeRightWhile { result = _(array).chain().takeRightWhile(); result = _(array).chain().takeRightWhile(predicateFn); - result = _(array).chain().takeRightWhile(predicateFn, any); result = _(array).chain().takeRightWhile(''); - result = _(array).chain().takeRightWhile('', any); result = _(array).chain().takeRightWhile<{a: number;}>({a: 42}); result = _(list).chain().takeRightWhile(); result = _(list).chain().takeRightWhile(predicateFn); - result = _(list).chain().takeRightWhile(predicateFn, any); result = _(list).chain().takeRightWhile(''); - result = _(list).chain().takeRightWhile('', any); result = _(list).chain().takeRightWhile<{a: number;}, TResult>({a: 42}); } } @@ -1895,16 +1841,12 @@ namespace TestTakeWhile { result = _.takeWhile(array); result = _.takeWhile(array, predicateFn); - result = _.takeWhile(array, predicateFn, any); result = _.takeWhile(array, ''); - result = _.takeWhile(array, '', any); result = _.takeWhile<{a: number;}, TResult>(array, {a: 42}); result = _.takeWhile(list); result = _.takeWhile(list, predicateFn); - result = _.takeWhile(list, predicateFn, any); result = _.takeWhile(list, ''); - result = _.takeWhile(list, '', any); result = _.takeWhile<{a: number;}, TResult>(list, {a: 42}); } @@ -1913,16 +1855,12 @@ namespace TestTakeWhile { result = _(array).takeWhile(); result = _(array).takeWhile(predicateFn); - result = _(array).takeWhile(predicateFn, any); result = _(array).takeWhile(''); - result = _(array).takeWhile('', any); result = _(array).takeWhile<{a: number;}>({a: 42}); result = _(list).takeWhile(); result = _(list).takeWhile(predicateFn); - result = _(list).takeWhile(predicateFn, any); result = _(list).takeWhile(''); - result = _(list).takeWhile('', any); result = _(list).takeWhile<{a: number;}, TResult>({a: 42}); } @@ -1931,16 +1869,12 @@ namespace TestTakeWhile { result = _(array).chain().takeWhile(); result = _(array).chain().takeWhile(predicateFn); - result = _(array).chain().takeWhile(predicateFn, any); result = _(array).chain().takeWhile(''); - result = _(array).chain().takeWhile('', any); result = _(array).chain().takeWhile<{a: number;}>({a: 42}); result = _(list).chain().takeWhile(); result = _(list).chain().takeWhile(predicateFn); - result = _(list).chain().takeWhile(predicateFn, any); result = _(list).chain().takeWhile(''); - result = _(list).chain().takeWhile('', any); result = _(list).chain().takeWhile<{a: number;}, TResult>({a: 42}); } } @@ -2443,14 +2377,10 @@ namespace TestUnzip { let result: TResult[]; result = _.unzipWith(testUnzipWithArray); result = _.unzipWith(testUnzipWithArray, testUnzipWithIterator); - result = _.unzipWith(testUnzipWithArray, testUnzipWithIterator, any); result = _.unzipWith(testUnzipWithList); result = _.unzipWith(testUnzipWithList, testUnzipWithIterator); - result = _.unzipWith(testUnzipWithList, testUnzipWithIterator, any); result = _(testUnzipWithArray).unzipWith(testUnzipWithIterator).value(); - result = _(testUnzipWithArray).unzipWith(testUnzipWithIterator, any).value(); result = _(testUnzipWithList).unzipWith(testUnzipWithIterator).value(); - result = _(testUnzipWithList).unzipWith(testUnzipWithIterator, any).value(); } // _.without @@ -2717,14 +2647,12 @@ interface TestZipWithFn { var testZipWithFn: TestZipWithFn; result = _.zipWith([1, 2]); result = _.zipWith([1, 2], testZipWithFn); -result = _.zipWith([1, 2], testZipWithFn, any); -result = _.zipWith([1, 2], [1, 2], testZipWithFn, any); -result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any); +result = _.zipWith([1, 2], [1, 2], testZipWithFn); +result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn); result = _([1, 2]).zipWith().value(); result = _([1, 2]).zipWith(testZipWithFn).value(); -result = _([1, 2]).zipWith(testZipWithFn, any).value(); -result = _([1, 2]).zipWith([1, 2], testZipWithFn, any).value(); -result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any).value(); +result = _([1, 2]).zipWith([1, 2], testZipWithFn).value(); +result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn).value(); /********* * Chain * @@ -2778,7 +2706,6 @@ namespace TestTap { let result: string; _.tap('', interceptor); - _.tap('', interceptor, any); } { @@ -2786,7 +2713,6 @@ namespace TestTap { let result: _.LoDashImplicitArrayWrapper; _.tap([''], interceptor); - _.tap([''], interceptor, any); } { @@ -2794,18 +2720,15 @@ namespace TestTap { let result: _.LoDashImplicitObjectWrapper<{a: string}>; _.tap({a: ''}, interceptor); - _.tap({a: ''}, interceptor, any); } { let interceptor: (value: string) => void; let result: _.LoDashImplicitWrapper; - _.chain('').tap(interceptor, any); - _.chain('').tap(interceptor, any); + _.chain('').tap(interceptor); _('').tap(interceptor); - _('').tap(interceptor, any); } { @@ -2813,10 +2736,8 @@ namespace TestTap { let result: _.LoDashImplicitArrayWrapper; _.chain(['']).tap(interceptor); - _.chain(['']).tap(interceptor, any); _(['']).tap(interceptor); - _(['']).tap(interceptor, any); } { @@ -2824,21 +2745,17 @@ namespace TestTap { let result: _.LoDashImplicitObjectWrapper<{a: string}>; _.chain({a: ''}).tap(interceptor); - _.chain({a: ''}).tap(interceptor, any); _({a: ''}).tap(interceptor); - _({a: ''}).tap(interceptor, any); } { let interceptor: (value: string) => void; let result: _.LoDashExplicitWrapper; - _.chain('').tap(interceptor, any); - _.chain('').tap(interceptor, any); + _.chain('').tap(interceptor); _('').chain().tap(interceptor); - _('').chain().tap(interceptor, any); } { @@ -2846,10 +2763,8 @@ namespace TestTap { let result: _.LoDashExplicitArrayWrapper; _.chain(['']).tap(interceptor); - _.chain(['']).tap(interceptor, any); _(['']).chain().tap(interceptor); - _(['']).chain().tap(interceptor, any); } { @@ -2857,10 +2772,8 @@ namespace TestTap { let result: _.LoDashExplicitObjectWrapper<{a: string}>; _.chain({a: ''}).tap(interceptor); - _.chain({a: ''}).tap(interceptor, any); _({a: ''}).chain().tap(interceptor); - _({a: ''}).chain().tap(interceptor, any); } } @@ -2875,7 +2788,6 @@ namespace TestThru { let result: number; result = _.thru(1, interceptor); - result = _.thru(1, interceptor, any); } { @@ -2883,7 +2795,6 @@ namespace TestThru { let result: _.LoDashImplicitWrapper; result = _(1).thru(interceptor); - result = _(1).thru(interceptor, any); } { @@ -2891,7 +2802,6 @@ namespace TestThru { let result: _.LoDashImplicitWrapper; result = _('').thru(interceptor); - result = _('').thru(interceptor, any); } { @@ -2899,7 +2809,6 @@ namespace TestThru { let result: _.LoDashImplicitWrapper; result = _(true).thru(interceptor); - result = _(true).thru(interceptor, any); } { @@ -2907,7 +2816,6 @@ namespace TestThru { let result: _.LoDashImplicitObjectWrapper<{a: string}>; result = _({a: ''}).thru<{a: string}>(interceptor); - result = _({a: ''}).thru<{a: string}>(interceptor, any); } { @@ -2915,7 +2823,6 @@ namespace TestThru { let result: _.LoDashImplicitArrayWrapper; result = _([1, 2, 3]).thru(interceptor); - result = _([1, 2, 3]).thru(interceptor, any); } { @@ -2923,7 +2830,6 @@ namespace TestThru { let result: _.LoDashExplicitWrapper; result = _(1).chain().thru(interceptor); - result = _(1).chain().thru(interceptor, any); } { @@ -2931,7 +2837,6 @@ namespace TestThru { let result: _.LoDashExplicitWrapper; result = _('').chain().thru(interceptor); - result = _('').chain().thru(interceptor, any); } { @@ -2939,7 +2844,6 @@ namespace TestThru { let result: _.LoDashExplicitWrapper; result = _(true).chain().thru(interceptor); - result = _(true).chain().thru(interceptor, any); } { @@ -2947,7 +2851,6 @@ namespace TestThru { let result: _.LoDashExplicitObjectWrapper<{a: string}>; result = _({a: ''}).chain().thru<{a: string}>(interceptor); - result = _({a: ''}).chain().thru<{a: string}>(interceptor, any); } { @@ -2955,7 +2858,6 @@ namespace TestThru { let result: _.LoDashExplicitArrayWrapper; result = _([1, 2, 3]).chain().thru(interceptor); - result = _([1, 2, 3]).chain().thru(interceptor, any); } } @@ -3134,12 +3036,12 @@ namespace TestPlant { namespace TestReverse { { let result: _.LoDashImplicitArrayWrapper; - result: _([42]).reverse(); + result = _([42]).reverse(); } { let result: _.LoDashExplicitArrayWrapper; - result: _([42]).chain().reverse(); + result = _([42]).chain().reverse(); } } @@ -3326,37 +3228,28 @@ namespace TestCountBy { result = _.countBy(''); result = _.countBy('', stringIterator); - result = _.countBy('', stringIterator, any); result = _.countBy(array); result = _.countBy(array, listIterator); - result = _.countBy(array, listIterator, any); result = _.countBy(array, ''); - result = _.countBy(array, '', any); result = _.countBy<{a: number}, TResult>(array, {a: 42}); result = _.countBy(array, {a: 42}); result = _.countBy(list); result = _.countBy(list, listIterator); - result = _.countBy(list, listIterator, any); result = _.countBy(list, ''); - result = _.countBy(list, '', any); result = _.countBy<{a: number}, TResult>(list, {a: 42}); result = _.countBy(list, {a: 42}); result = _.countBy(dictionary); result = _.countBy(dictionary, dictionaryIterator); - result = _.countBy(dictionary, dictionaryIterator, any); result = _.countBy(dictionary, ''); - result = _.countBy(dictionary, '', any); result = _.countBy<{a: number}, TResult>(dictionary, {a: 42}); result = _.countBy(dictionary, {a: 42}); result = _.countBy(numericDictionary); result = _.countBy(numericDictionary, numericDictionaryIterator); - result = _.countBy(numericDictionary, numericDictionaryIterator, any); result = _.countBy(numericDictionary, ''); - result = _.countBy(numericDictionary, '', any); result = _.countBy<{a: number}, TResult>(numericDictionary, {a: 42}); result = _.countBy(numericDictionary, {a: 42}); } @@ -3366,37 +3259,28 @@ namespace TestCountBy { result = _('').countBy(); result = _('').countBy(stringIterator); - result = _('').countBy(stringIterator, any); result = _(array).countBy(); result = _(array).countBy(listIterator); - result = _(array).countBy(listIterator, any); result = _(array).countBy(''); - result = _(array).countBy('', any); result = _(array).countBy<{a: number}>({a: 42}); result = _(array).countBy({a: 42}); result = _(list).countBy(); result = _(list).countBy(listIterator); - result = _(list).countBy(listIterator, any); result = _(list).countBy(''); - result = _(list).countBy('', any); result = _(list).countBy<{a: number}>({a: 42}); result = _(list).countBy({a: 42}); result = _(dictionary).countBy(); result = _(dictionary).countBy(dictionaryIterator); - result = _(dictionary).countBy(dictionaryIterator, any); result = _(dictionary).countBy(''); - result = _(dictionary).countBy('', any); result = _(dictionary).countBy<{a: number}>({a: 42}); result = _(dictionary).countBy({a: 42}); result = _(numericDictionary).countBy(); result = _(numericDictionary).countBy(numericDictionaryIterator); - result = _(numericDictionary).countBy(numericDictionaryIterator, any); result = _(numericDictionary).countBy(''); - result = _(numericDictionary).countBy('', any); result = _(numericDictionary).countBy<{a: number}>({a: 42}); result = _(numericDictionary).countBy({a: 42}); } @@ -3406,37 +3290,28 @@ namespace TestCountBy { result = _('').chain().countBy(); result = _('').chain().countBy(stringIterator); - result = _('').chain().countBy(stringIterator, any); result = _(array).chain().countBy(); result = _(array).chain().countBy(listIterator); - result = _(array).chain().countBy(listIterator, any); result = _(array).chain().countBy(''); - result = _(array).chain().countBy('', any); result = _(array).chain().countBy<{a: number}>({a: 42}); result = _(array).chain().countBy({a: 42}); result = _(list).chain().countBy(); result = _(list).chain().countBy(listIterator); - result = _(list).chain().countBy(listIterator, any); result = _(list).chain().countBy(''); - result = _(list).chain().countBy('', any); result = _(list).chain().countBy<{a: number}>({a: 42}); result = _(list).chain().countBy({a: 42}); result = _(dictionary).chain().countBy(); result = _(dictionary).chain().countBy(dictionaryIterator); - result = _(dictionary).chain().countBy(dictionaryIterator, any); result = _(dictionary).chain().countBy(''); - result = _(dictionary).chain().countBy('', any); result = _(dictionary).chain().countBy<{a: number}>({a: 42}); result = _(dictionary).chain().countBy({a: 42}); result = _(numericDictionary).chain().countBy(); result = _(numericDictionary).chain().countBy(numericDictionaryIterator); - result = _(numericDictionary).chain().countBy(numericDictionaryIterator, any); result = _(numericDictionary).chain().countBy(''); - result = _(numericDictionary).chain().countBy('', any); result = _(numericDictionary).chain().countBy<{a: number}>({a: 42}); result = _(numericDictionary).chain().countBy({a: 42}); } @@ -3456,84 +3331,72 @@ namespace TestEach { let result: string; _.each('', stringIterator); - _.each('', stringIterator, any); } { let result: TResult[]; _.each(array, listIterator); - _.each(array, listIterator, any); } { let result: _.List; _.each(list, listIterator); - _.each(list, listIterator, any); } { let result: _.Dictionary; _.each(dictionary, dictionaryIterator); - _.each(dictionary, dictionaryIterator, any); } { let result: _.LoDashImplicitWrapper; _('').each(stringIterator); - _('').each(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; _(array).each(listIterator); - _(array).each(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.List>; _(list).each(listIterator); - _(list).each(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; _(dictionary).each(dictionaryIterator); - _(dictionary).each(dictionaryIterator, any); } { let result: _.LoDashExplicitWrapper; _('').chain().each(stringIterator); - _('').chain().each(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; _(array).chain().each(listIterator); - _(array).chain().each(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.List>; _(list).chain().each(listIterator); - _(list).chain().each(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; _(dictionary).chain().each(dictionaryIterator); - _(dictionary).chain().each(dictionaryIterator, any); } } @@ -3551,84 +3414,72 @@ namespace TestEachRight { let result: string; _.eachRight('', stringIterator); - _.eachRight('', stringIterator, any); } { let result: TResult[]; _.eachRight(array, listIterator); - _.eachRight(array, listIterator, any); } { let result: _.List; _.eachRight(list, listIterator); - _.eachRight(list, listIterator, any); } { let result: _.Dictionary; _.eachRight(dictionary, dictionaryIterator); - _.eachRight(dictionary, dictionaryIterator, any); } { let result: _.LoDashImplicitWrapper; _('').eachRight(stringIterator); - _('').eachRight(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; _(array).eachRight(listIterator); - _(array).eachRight(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.List>; _(list).eachRight(listIterator); - _(list).eachRight(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; _(dictionary).eachRight(dictionaryIterator); - _(dictionary).eachRight(dictionaryIterator, any); } { let result: _.LoDashExplicitWrapper; _('').chain().eachRight(stringIterator); - _('').chain().eachRight(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; _(array).chain().eachRight(listIterator); - _(array).chain().eachRight(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.List>; _(list).chain().eachRight(listIterator); - _(list).chain().eachRight(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; _(dictionary).chain().eachRight(dictionaryIterator); - _(dictionary).chain().eachRight(dictionaryIterator, any); } } @@ -3740,28 +3591,21 @@ namespace TestFilter { let result: string[]; result = _.filter('', stringIterator); - result = _.filter('', stringIterator, any); } { let result: TResult[]; result = _.filter(array, listIterator); - result = _.filter(array, listIterator, any); result = _.filter(array, ''); - result = _.filter(array, '', any); result = _.filter<{a: number}, TResult>(array, {a: 42}); result = _.filter(list, listIterator); - result = _.filter(list, listIterator, any); result = _.filter(list, ''); - result = _.filter(list, '', any); result = _.filter<{a: number}, TResult>(list, {a: 42}); result = _.filter(dictionary, dictionaryIterator); - result = _.filter(dictionary, dictionaryIterator, any); result = _.filter(dictionary, ''); - result = _.filter(dictionary, '', any); result = _.filter<{a: number}, TResult>(dictionary, {a: 42}); } @@ -3769,28 +3613,21 @@ namespace TestFilter { let result: _.LoDashImplicitArrayWrapper; result = _('').filter(stringIterator); - result = _('').filter(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; result = _(array).filter(listIterator); - result = _(array).filter(listIterator, any); result = _(array).filter(''); - result = _(array).filter('', any); result = _(array).filter<{a: number}>({a: 42}); result = _(list).filter(listIterator); - result = _(list).filter(listIterator, any); result = _(list).filter(''); - result = _(list).filter('', any); result = _(list).filter<{a: number}, TResult>({a: 42}); result = _(dictionary).filter(dictionaryIterator); - result = _(dictionary).filter(dictionaryIterator, any); result = _(dictionary).filter(''); - result = _(dictionary).filter('', any); result = _(dictionary).filter<{a: number}, TResult>({a: 42}); } @@ -3798,28 +3635,21 @@ namespace TestFilter { let result: _.LoDashExplicitArrayWrapper; result = _('').chain().filter(stringIterator); - result = _('').chain().filter(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; result = _(array).chain().filter(listIterator); - result = _(array).chain().filter(listIterator, any); result = _(array).chain().filter(''); - result = _(array).chain().filter('', any); result = _(array).chain().filter<{a: number}>({a: 42}); result = _(list).chain().filter(listIterator); - result = _(list).chain().filter(listIterator, any); result = _(list).chain().filter(''); - result = _(list).chain().filter('', any); result = _(list).chain().filter<{a: number}, TResult>({a: 42}); result = _(dictionary).chain().filter(dictionaryIterator); - result = _(dictionary).chain().filter(dictionaryIterator, any); result = _(dictionary).chain().filter(''); - result = _(dictionary).chain().filter('', any); result = _(dictionary).chain().filter<{a: number}, TResult>({a: 42}); } } @@ -3837,37 +3667,31 @@ namespace TestFind { result = _.find(array); result = _.find(array, listIterator); - result = _.find(array, listIterator, any); result = _.find(array, ''); result = _.find<{a: number}, TResult>(array, {a: 42}); result = _.find(list); result = _.find(list, listIterator); - result = _.find(list, listIterator, any); result = _.find(list, ''); result = _.find<{a: number}, TResult>(list, {a: 42}); result = _.find(dictionary); result = _.find(dictionary, dictionaryIterator); - result = _.find(dictionary, dictionaryIterator, any); result = _.find(dictionary, ''); result = _.find<{a: number}, TResult>(dictionary, {a: 42}); result = _(array).find(); result = _(array).find(listIterator); - result = _(array).find(listIterator, any); result = _(array).find(''); result = _(array).find<{a: number}>({a: 42}); result = _(list).find(); result = _(list).find(listIterator); - result = _(list).find(listIterator, any); result = _(list).find(''); result = _(list).find<{a: number}, TResult>({a: 42}); result = _(dictionary).find(); result = _(dictionary).find(dictionaryIterator); - result = _(dictionary).find(dictionaryIterator, any); result = _(dictionary).find(''); result = _(dictionary).find<{a: number}, TResult>({a: 42}); } @@ -4089,84 +3913,72 @@ namespace TestForEach { let result: string; _.forEach('', stringIterator); - _.forEach('', stringIterator, any); } { let result: TResult[]; _.forEach(array, listIterator); - _.forEach(array, listIterator, any); } { let result: _.List; _.forEach(list, listIterator); - _.forEach(list, listIterator, any); } { let result: _.Dictionary; _.forEach(dictionary, dictionaryIterator); - _.forEach(dictionary, dictionaryIterator, any); } { let result: _.LoDashImplicitWrapper; _('').forEach(stringIterator); - _('').forEach(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; _(array).forEach(listIterator); - _(array).forEach(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.List>; _(list).forEach(listIterator); - _(list).forEach(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; _(dictionary).forEach(dictionaryIterator); - _(dictionary).forEach(dictionaryIterator, any); } { let result: _.LoDashExplicitWrapper; _('').chain().forEach(stringIterator); - _('').chain().forEach(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; _(array).chain().forEach(listIterator); - _(array).chain().forEach(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.List>; _(list).chain().forEach(listIterator); - _(list).chain().forEach(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; _(dictionary).chain().forEach(dictionaryIterator); - _(dictionary).chain().forEach(dictionaryIterator, any); } } @@ -4184,84 +3996,72 @@ namespace TestForEachRight { let result: string; _.forEachRight('', stringIterator); - _.forEachRight('', stringIterator, any); } { let result: TResult[]; _.forEachRight(array, listIterator); - _.forEachRight(array, listIterator, any); } { let result: _.List; _.forEachRight(list, listIterator); - _.forEachRight(list, listIterator, any); } { let result: _.Dictionary; _.forEachRight(dictionary, dictionaryIterator); - _.forEachRight(dictionary, dictionaryIterator, any); } { let result: _.LoDashImplicitWrapper; _('').forEachRight(stringIterator); - _('').forEachRight(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; _(array).forEachRight(listIterator); - _(array).forEachRight(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.List>; _(list).forEachRight(listIterator); - _(list).forEachRight(listIterator, any); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; _(dictionary).forEachRight(dictionaryIterator); - _(dictionary).forEachRight(dictionaryIterator, any); } { let result: _.LoDashExplicitWrapper; _('').chain().forEachRight(stringIterator); - _('').chain().forEachRight(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; _(array).chain().forEachRight(listIterator); - _(array).chain().forEachRight(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.List>; _(list).chain().forEachRight(listIterator); - _(list).chain().forEachRight(listIterator, any); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; _(dictionary).chain().forEachRight(dictionaryIterator); - _(dictionary).chain().forEachRight(dictionaryIterator, any); } } @@ -4282,9 +4082,7 @@ namespace TestGroupBy { result = _.groupBy(''); result = _.groupBy('', stringIterator); - result = _.groupBy('', stringIterator, any); result = _.groupBy('', stringIterator); - result = _.groupBy('', stringIterator, any); } { @@ -4292,38 +4090,29 @@ namespace TestGroupBy { result = _.groupBy(array); result = _.groupBy(array, listIterator); - result = _.groupBy(array, listIterator, any); result = _.groupBy(array, ''); - result = _.groupBy(array, '', any); result = _.groupBy(array, {a: 42}); result = _.groupBy(array, listIterator); - result = _.groupBy(array, listIterator, any); - result = _.groupBy(array, '', true); + result = _.groupBy(array, ''); result = _.groupBy<{a: number}, SampleType>(array, {a: 42}); result = _.groupBy(list); result = _.groupBy(list, listIterator); - result = _.groupBy(list, listIterator, any); result = _.groupBy(list, ''); - result = _.groupBy(list, '', any); result = _.groupBy(list, {a: 42}); result = _.groupBy(list, listIterator); - result = _.groupBy(list, listIterator, any); - result = _.groupBy(list, '', true); + result = _.groupBy(list, ''); result = _.groupBy<{a: number}, SampleType>(list, {a: 42}); result = _.groupBy(dictionary); result = _.groupBy(dictionary, dictionaryIterator); - result = _.groupBy(dictionary, dictionaryIterator, any); result = _.groupBy(dictionary, ''); - result = _.groupBy(dictionary, '', any); result = _.groupBy(dictionary, {a: 42}); result = _.groupBy(dictionary, dictionaryIterator); - result = _.groupBy(dictionary, dictionaryIterator, any); - result = _.groupBy(dictionary, '', true); + result = _.groupBy(dictionary, ''); result = _.groupBy<{a: number}, SampleType>(dictionary, {a: 42}); } @@ -4332,7 +4121,6 @@ namespace TestGroupBy { result = _('').groupBy(); result = _('').groupBy(stringIterator); - result = _('').groupBy(stringIterator, any); } { @@ -4340,33 +4128,26 @@ namespace TestGroupBy { result = _(array).groupBy(); result = _(array).groupBy(listIterator); - result = _(array).groupBy(listIterator, any); result = _(array).groupBy(''); - result = _(array).groupBy('', true); + result = _(array).groupBy(''); result = _(array).groupBy<{a: number}>({a: 42}); result = _(list).groupBy(); result = _(list).groupBy(listIterator); - result = _(list).groupBy(listIterator, any); result = _(list).groupBy(''); - result = _(list).groupBy('', any); result = _(list).groupBy({a: 42}); result = _(list).groupBy(listIterator); - result = _(list).groupBy(listIterator, any); - result = _(list).groupBy('', true); + result = _(list).groupBy(''); result = _(list).groupBy<{a: number}, SampleType>({a: 42}); result = _(dictionary).groupBy(); result = _(dictionary).groupBy(dictionaryIterator); - result = _(dictionary).groupBy(dictionaryIterator, any); result = _(dictionary).groupBy(''); - result = _(dictionary).groupBy('', any); result = _(dictionary).groupBy({a: 42}); result = _(dictionary).groupBy(dictionaryIterator); - result = _(dictionary).groupBy(dictionaryIterator, any); - result = _(dictionary).groupBy('', true); + result = _(dictionary).groupBy(''); result = _(dictionary).groupBy<{a: number}, SampleType>({a: 42}); } @@ -4375,7 +4156,6 @@ namespace TestGroupBy { result = _('').chain().groupBy(); result = _('').chain().groupBy(stringIterator); - result = _('').chain().groupBy(stringIterator, any); } { @@ -4383,33 +4163,26 @@ namespace TestGroupBy { result = _(array).chain().groupBy(); result = _(array).chain().groupBy(listIterator); - result = _(array).chain().groupBy(listIterator, any); result = _(array).chain().groupBy(''); - result = _(array).chain().groupBy('', true); + result = _(array).chain().groupBy(''); result = _(array).chain().groupBy<{a: number}>({a: 42}); result = _(list).chain().groupBy(); result = _(list).chain().groupBy(listIterator); - result = _(list).chain().groupBy(listIterator, any); result = _(list).chain().groupBy(''); - result = _(list).chain().groupBy('', any); result = _(list).chain().groupBy({a: 42}); result = _(list).chain().groupBy(listIterator); - result = _(list).chain().groupBy(listIterator, any); - result = _(list).chain().groupBy('', true); + result = _(list).chain().groupBy(''); result = _(list).chain().groupBy<{a: number}, SampleType>({a: 42}); result = _(dictionary).chain().groupBy(); result = _(dictionary).chain().groupBy(dictionaryIterator); - result = _(dictionary).chain().groupBy(dictionaryIterator, any); result = _(dictionary).chain().groupBy(''); - result = _(dictionary).chain().groupBy('', any); result = _(dictionary).chain().groupBy({a: 42}); result = _(dictionary).chain().groupBy(dictionaryIterator); - result = _(dictionary).chain().groupBy(dictionaryIterator, any); - result = _(dictionary).chain().groupBy('', true); + result = _(dictionary).chain().groupBy(''); result = _(dictionary).chain().groupBy<{a: number}, SampleType>({a: 42}); } } @@ -4479,7 +4252,6 @@ namespace TestKeyBy { result = _.keyBy('abcd'); result = _.keyBy('abcd', stringIterator); - result = _.keyBy('abcd', stringIterator, any); } { @@ -4487,33 +4259,25 @@ namespace TestKeyBy { result = _.keyBy(array); result = _.keyBy(array, listIterator); - result = _.keyBy(array, listIterator, any); result = _.keyBy(array, 'a'); - result = _.keyBy(array, 'a', any); result = _.keyBy<{a: number}, SampleObject>(array, {a: 42}); result = _.keyBy(array, {a: 42}); result = _.keyBy(list); result = _.keyBy(list, listIterator); - result = _.keyBy(list, listIterator, any); result = _.keyBy(list, 'a'); - result = _.keyBy(list, 'a', any); result = _.keyBy<{a: number}, SampleObject>(list, {a: 42}); result = _.keyBy(list, {a: 42}); result = _.keyBy(numericDictionary); result = _.keyBy(numericDictionary, numericDictionaryIterator); - result = _.keyBy(numericDictionary, numericDictionaryIterator, any); result = _.keyBy(numericDictionary, 'a'); - result = _.keyBy(numericDictionary, 'a', any); result = _.keyBy<{a: number}, SampleObject>(numericDictionary, {a: 42}); result = _.keyBy(numericDictionary, {a: 42}); result = _.keyBy(dictionary); result = _.keyBy(dictionary, dictionaryIterator); - result = _.keyBy(dictionary, dictionaryIterator, any); result = _.keyBy(dictionary, 'a'); - result = _.keyBy(dictionary, 'a', any); result = _.keyBy<{a: number}, SampleObject>(dictionary, {a: 42}); result = _.keyBy(dictionary, {a: 42}); } @@ -4523,7 +4287,6 @@ namespace TestKeyBy { result = _('abcd').keyBy(); result = _('abcd').keyBy(stringIterator); - result = _('abcd').keyBy(stringIterator, any); } { @@ -4531,32 +4294,24 @@ namespace TestKeyBy { result = _(array).keyBy(); result = _(array).keyBy(listIterator); - result = _(array).keyBy(listIterator, any); result = _(array).keyBy('a'); - result = _(array).keyBy('a', any); result = _(array).keyBy<{a: number}>({a: 42}); result = _(list).keyBy(); result = _(list).keyBy(listIterator); - result = _(list).keyBy(listIterator, any); result = _(list).keyBy('a'); - result = _(list).keyBy('a', any); result = _(list).keyBy<{a: number}, SampleObject>({a: 42}); result = _(list).keyBy({a: 42}); result = _(numericDictionary).keyBy(); result = _(numericDictionary).keyBy(numericDictionaryIterator); - result = _(numericDictionary).keyBy(numericDictionaryIterator, any); result = _(numericDictionary).keyBy('a'); - result = _(numericDictionary).keyBy('a', any); result = _(numericDictionary).keyBy<{a: number}, SampleObject>({a: 42}); result = _(numericDictionary).keyBy({a: 42}); result = _(dictionary).keyBy(); result = _(dictionary).keyBy(dictionaryIterator); - result = _(dictionary).keyBy(dictionaryIterator, any); result = _(dictionary).keyBy('a'); - result = _(dictionary).keyBy('a', any); result = _(dictionary).keyBy<{a: number}, SampleObject>({a: 42}); result = _(dictionary).keyBy({a: 42}); } @@ -4566,7 +4321,6 @@ namespace TestKeyBy { result = _('abcd').chain().keyBy(); result = _('abcd').chain().keyBy(stringIterator); - result = _('abcd').chain().keyBy(stringIterator, any); } { @@ -4574,32 +4328,24 @@ namespace TestKeyBy { result = _(array).chain().keyBy(); result = _(array).chain().keyBy(listIterator); - result = _(array).chain().keyBy(listIterator, any); result = _(array).chain().keyBy('a'); - result = _(array).chain().keyBy('a', any); result = _(array).chain().keyBy<{a: number}>({a: 42}); result = _(list).chain().keyBy(); result = _(list).chain().keyBy(listIterator); - result = _(list).chain().keyBy(listIterator, any); result = _(list).chain().keyBy('a'); - result = _(list).chain().keyBy('a', any); result = _(list).chain().keyBy<{a: number}, SampleObject>({a: 42}); result = _(list).chain().keyBy({a: 42}); result = _(numericDictionary).chain().keyBy(); result = _(numericDictionary).chain().keyBy(numericDictionaryIterator); - result = _(numericDictionary).chain().keyBy(numericDictionaryIterator, any); result = _(numericDictionary).chain().keyBy('a'); - result = _(numericDictionary).chain().keyBy('a', any); result = _(numericDictionary).chain().keyBy<{a: number}, SampleObject>({a: 42}); result = _(numericDictionary).chain().keyBy({a: 42}); result = _(dictionary).chain().keyBy(); result = _(dictionary).chain().keyBy(dictionaryIterator); - result = _(dictionary).chain().keyBy(dictionaryIterator, any); result = _(dictionary).chain().keyBy('a'); - result = _(dictionary).chain().keyBy('a', any); result = _(dictionary).chain().keyBy<{a: number}, SampleObject>({a: 42}); result = _(dictionary).chain().keyBy({a: 42}); } @@ -4749,17 +4495,14 @@ namespace TestMap { result = _.map(array); result = _.map(array, listIterator); - result = _.map(array, listIterator, any); result = _.map(array, ''); result = _.map(list); result = _.map(list, listIterator); - result = _.map(list, listIterator, any); result = _.map(list, ''); result = _.map(dictionary); result = _.map(dictionary, dictionaryIterator); - result = _.map(dictionary, dictionaryIterator, any); result = _.map(dictionary, ''); } @@ -4776,17 +4519,14 @@ namespace TestMap { result = _(array).map(); result = _(array).map(listIterator); - result = _(array).map(listIterator, any); result = _(array).map(''); result = _(list).map(); result = _(list).map(listIterator); - result = _(list).map(listIterator, any); result = _(list).map(''); result = _(dictionary).map(); result = _(dictionary).map(dictionaryIterator); - result = _(dictionary).map(dictionaryIterator, any); result = _(dictionary).map(''); } @@ -4803,17 +4543,14 @@ namespace TestMap { result = _(array).chain().map(); result = _(array).chain().map(listIterator); - result = _(array).chain().map(listIterator, any); result = _(array).chain().map(''); result = _(list).chain().map(); result = _(list).chain().map(listIterator); - result = _(list).chain().map(listIterator, any); result = _(list).chain().map(''); result = _(dictionary).chain().map(); result = _(dictionary).chain().map(dictionaryIterator); - result = _(dictionary).chain().map(dictionaryIterator, any); result = _(dictionary).chain().map(''); } @@ -4939,7 +4676,7 @@ result = _([1, 2, 3]).reduce(function (sum: number, num: number) result = _({ 'a': 1, 'b': 2, 'c': 3 }).reduce(function (r: ABC, num: number, key: string) { r[key] = num * 3; return r; -}, {}); +}, {}); result = _.reduceRight([[0, 1], [2, 3], [4, 5]], function (a: number[], b: number[]) { return a.concat(b); }, []); @@ -4957,28 +4694,21 @@ namespace TestReject { let result: string[]; result = _.reject('', stringIterator); - result = _.reject('', stringIterator, any); } { let result: TResult[]; result = _.reject(array, listIterator); - result = _.reject(array, listIterator, any); result = _.reject(array, ''); - result = _.reject(array, '', any); result = _.reject<{a: number}, TResult>(array, {a: 42}); result = _.reject(list, listIterator); - result = _.reject(list, listIterator, any); result = _.reject(list, ''); - result = _.reject(list, '', any); result = _.reject<{a: number}, TResult>(list, {a: 42}); result = _.reject(dictionary, dictionaryIterator); - result = _.reject(dictionary, dictionaryIterator, any); result = _.reject(dictionary, ''); - result = _.reject(dictionary, '', any); result = _.reject<{a: number}, TResult>(dictionary, {a: 42}); } @@ -4986,28 +4716,21 @@ namespace TestReject { let result: _.LoDashImplicitArrayWrapper; result = _('').reject(stringIterator); - result = _('').reject(stringIterator, any); } { let result: _.LoDashImplicitArrayWrapper; result = _(array).reject(listIterator); - result = _(array).reject(listIterator, any); result = _(array).reject(''); - result = _(array).reject('', any); result = _(array).reject<{a: number}>({a: 42}); result = _(list).reject(listIterator); - result = _(list).reject(listIterator, any); result = _(list).reject(''); - result = _(list).reject('', any); result = _(list).reject<{a: number}, TResult>({a: 42}); result = _(dictionary).reject(dictionaryIterator); - result = _(dictionary).reject(dictionaryIterator, any); result = _(dictionary).reject(''); - result = _(dictionary).reject('', any); result = _(dictionary).reject<{a: number}, TResult>({a: 42}); } @@ -5015,28 +4738,21 @@ namespace TestReject { let result: _.LoDashExplicitArrayWrapper; result = _('').chain().reject(stringIterator); - result = _('').chain().reject(stringIterator, any); } { let result: _.LoDashExplicitArrayWrapper; result = _(array).chain().reject(listIterator); - result = _(array).chain().reject(listIterator, any); result = _(array).chain().reject(''); - result = _(array).chain().reject('', any); result = _(array).chain().reject<{a: number}>({a: 42}); result = _(list).chain().reject(listIterator); - result = _(list).chain().reject(listIterator, any); result = _(list).chain().reject(''); - result = _(list).chain().reject('', any); result = _(list).chain().reject<{a: number}, TResult>({a: 42}); result = _(dictionary).chain().reject(dictionaryIterator); - result = _(dictionary).chain().reject(dictionaryIterator, any); result = _(dictionary).chain().reject(''); - result = _(dictionary).chain().reject('', any); result = _(dictionary).chain().reject<{a: number}, TResult>({a: 42}); } } @@ -8970,7 +8686,6 @@ namespace TestExtend { result = _.extend(obj, s1); result = _.extend(obj, s1, customizer); - result = _.extend(obj, s1, customizer, any); } { @@ -8978,7 +8693,6 @@ namespace TestExtend { result = _.extend(obj, s1, s2); result = _.extend(obj, s1, s2, customizer); - result = _.extend(obj, s1, s2, customizer, any); } { @@ -8986,7 +8700,6 @@ namespace TestExtend { result = _.extend(obj, s1, s2, s3); result = _.extend(obj, s1, s2, s3, customizer); - result = _.extend(obj, s1, s2, s3, customizer, any); } { @@ -8994,7 +8707,6 @@ namespace TestExtend { result = _.extend(obj, s1, s2, s3, s4); result = _.extend(obj, s1, s2, s3, s4, customizer); - result = _.extend(obj, s1, s2, s3, s4, customizer, any); } { @@ -9002,7 +8714,6 @@ namespace TestExtend { result = _.extend(obj, s1, s2, s3, s4, s5); result = _.extend(obj, s1, s2, s3, s4, s5, customizer); - result = _.extend(obj, s1, s2, s3, s4, s5, customizer, any); } { @@ -9016,7 +8727,6 @@ namespace TestExtend { result = _(obj).extend(s1); result = _(obj).extend(s1, customizer); - result = _(obj).extend(s1, customizer, any); } { @@ -9024,7 +8734,6 @@ namespace TestExtend { result = _(obj).extend(s1, s2); result = _(obj).extend(s1, s2, customizer); - result = _(obj).extend(s1, s2, customizer, any); } { @@ -9032,7 +8741,6 @@ namespace TestExtend { result = _(obj).extend(s1, s2, s3); result = _(obj).extend(s1, s2, s3, customizer); - result = _(obj).extend(s1, s2, s3, customizer, any); } { @@ -9040,7 +8748,6 @@ namespace TestExtend { result = _(obj).extend(s1, s2, s3, s4); result = _(obj).extend(s1, s2, s3, s4, customizer); - result = _(obj).extend(s1, s2, s3, s4, customizer, any); } { @@ -9048,7 +8755,6 @@ namespace TestExtend { result = _(obj).extend(s1, s2, s3, s4, s5); result = _(obj).extend(s1, s2, s3, s4, s5, customizer); - result = _(obj).extend(s1, s2, s3, s4, s5, customizer, any); } { @@ -9062,7 +8768,6 @@ namespace TestExtend { result = _(obj).chain().extend(s1); result = _(obj).chain().extend(s1, customizer); - result = _(obj).chain().extend(s1, customizer, any); } { @@ -9070,7 +8775,6 @@ namespace TestExtend { result = _(obj).chain().extend(s1, s2); result = _(obj).chain().extend(s1, s2, customizer); - result = _(obj).chain().extend(s1, s2, customizer, any); } { @@ -9078,7 +8782,6 @@ namespace TestExtend { result = _(obj).chain().extend(s1, s2, s3); result = _(obj).chain().extend(s1, s2, s3, customizer); - result = _(obj).chain().extend(s1, s2, s3, customizer, any); } { @@ -9086,7 +8789,6 @@ namespace TestExtend { result = _(obj).chain().extend(s1, s2, s3, s4); result = _(obj).chain().extend(s1, s2, s3, s4, customizer); - result = _(obj).chain().extend(s1, s2, s3, s4, customizer, any); } { @@ -9094,7 +8796,6 @@ namespace TestExtend { result = _(obj).chain().extend(s1, s2, s3, s4, s5); result = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer); - result = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer, any); } } @@ -9107,22 +8808,18 @@ namespace TestFindKey { result = _.findKey<{a: string;}>({a: ''}); result = _.findKey<{a: string;}>({a: ''}, predicateFn); - result = _.findKey<{a: string;}>({a: ''}, predicateFn, any); result = _.findKey<{a: string;}>({a: ''}, ''); - result = _.findKey<{a: string;}>({a: ''}, '', any); result = _.findKey<{a: number;}, {a: string;}>({a: ''}, {a: 42}); result = _<{a: string;}>({a: ''}).findKey(); result = _<{a: string;}>({a: ''}).findKey(predicateFn); - result = _<{a: string;}>({a: ''}).findKey(predicateFn, any); result = _<{a: string;}>({a: ''}).findKey(''); - result = _<{a: string;}>({a: ''}).findKey('', any); result = _<{a: string;}>({a: ''}).findKey<{a: number;}>({a: 42}); } @@ -9132,10 +8829,8 @@ namespace TestFindKey { let result: string; result = _.findKey({a: ''}, predicateFn); - result = _.findKey({a: ''}, predicateFn, any); result = _<{a: string;}>({a: ''}).findKey(predicateFn); - result = _<{a: string;}>({a: ''}).findKey(predicateFn, any); } { @@ -9145,11 +8840,9 @@ namespace TestFindKey { result = _<{a: string;}>({a: ''}).chain().findKey(); result = _<{a: string;}>({a: ''}).chain().findKey(predicateFn); - result = _<{a: string;}>({a: ''}).chain().findKey(predicateFn, any); result = _<{a: string;}>({a: ''}).chain().findKey(''); - result = _<{a: string;}>({a: ''}).chain().findKey('', any); result = _<{a: string;}>({a: ''}).chain().findKey<{a: number;}>({a: 42}); } @@ -9159,7 +8852,6 @@ namespace TestFindKey { let result: _.LoDashExplicitWrapper; result = _<{a: string;}>({a: ''}).chain().findKey(predicateFn); - result = _<{a: string;}>({a: ''}).chain().findKey(predicateFn, any); } } @@ -9172,22 +8864,18 @@ namespace TestFindLastKey { result = _.findLastKey<{a: string;}>({a: ''}); result = _.findLastKey<{a: string;}>({a: ''}, predicateFn); - result = _.findLastKey<{a: string;}>({a: ''}, predicateFn, any); result = _.findLastKey<{a: string;}>({a: ''}, ''); - result = _.findLastKey<{a: string;}>({a: ''}, '', any); result = _.findLastKey<{a: number;}, {a: string;}>({a: ''}, {a: 42}); result = _<{a: string;}>({a: ''}).findLastKey(); result = _<{a: string;}>({a: ''}).findLastKey(predicateFn); - result = _<{a: string;}>({a: ''}).findLastKey(predicateFn, any); result = _<{a: string;}>({a: ''}).findLastKey(''); - result = _<{a: string;}>({a: ''}).findLastKey('', any); result = _<{a: string;}>({a: ''}).findLastKey<{a: number;}>({a: 42}); } @@ -9197,10 +8885,8 @@ namespace TestFindLastKey { let result: string; result = _.findLastKey({a: ''}, predicateFn); - result = _.findLastKey({a: ''}, predicateFn, any); result = _<{a: string;}>({a: ''}).findLastKey(predicateFn); - result = _<{a: string;}>({a: ''}).findLastKey(predicateFn, any); } { @@ -9210,11 +8896,9 @@ namespace TestFindLastKey { result = _<{a: string;}>({a: ''}).chain().findLastKey(); result = _<{a: string;}>({a: ''}).chain().findLastKey(predicateFn); - result = _<{a: string;}>({a: ''}).chain().findLastKey(predicateFn, any); result = _<{a: string;}>({a: ''}).chain().findLastKey(''); - result = _<{a: string;}>({a: ''}).chain().findLastKey('', any); result = _<{a: string;}>({a: ''}).chain().findLastKey<{a: number;}>({a: 42}); } @@ -9224,7 +8908,6 @@ namespace TestFindLastKey { let result: _.LoDashExplicitWrapper; result = _<{a: string;}>({a: ''}).chain().findLastKey(predicateFn); - result = _<{a: string;}>({a: ''}).chain().findLastKey(predicateFn, any); } } @@ -9243,7 +8926,6 @@ namespace TestForIn { result = _.forIn(dictionary); result = _.forIn(dictionary, dictionaryIterator); - result = _.forIn(dictionary, dictionaryIterator, any); } { @@ -9251,7 +8933,6 @@ namespace TestForIn { result = _.forIn(object); result = _.forIn(object, objectIterator); - result = _.forIn(object, objectIterator, any); } { @@ -9259,7 +8940,6 @@ namespace TestForIn { result = _(dictionary).forIn(); result = _(dictionary).forIn(dictionaryIterator); - result = _(dictionary).forIn(dictionaryIterator, any); } { @@ -9267,7 +8947,6 @@ namespace TestForIn { result = _(dictionary).chain().forIn(); result = _(dictionary).chain().forIn(dictionaryIterator); - result = _(dictionary).chain().forIn(dictionaryIterator, any); } } @@ -9286,7 +8965,6 @@ namespace TestForInRight { result = _.forInRight(dictionary); result = _.forInRight(dictionary, dictionaryIterator); - result = _.forInRight(dictionary, dictionaryIterator, any); } { @@ -9294,7 +8972,6 @@ namespace TestForInRight { result = _.forInRight(object); result = _.forInRight(object, objectIterator); - result = _.forInRight(object, objectIterator, any); } { @@ -9302,7 +8979,6 @@ namespace TestForInRight { result = _(dictionary).forInRight(); result = _(dictionary).forInRight(dictionaryIterator); - result = _(dictionary).forInRight(dictionaryIterator, any); } { @@ -9310,7 +8986,6 @@ namespace TestForInRight { result = _(dictionary).chain().forInRight(); result = _(dictionary).chain().forInRight(dictionaryIterator); - result = _(dictionary).chain().forInRight(dictionaryIterator, any); } } @@ -9329,7 +9004,6 @@ namespace TestForOwn { result = _.forOwn(dictionary); result = _.forOwn(dictionary, dictionaryIterator); - result = _.forOwn(dictionary, dictionaryIterator, any); } { @@ -9337,7 +9011,6 @@ namespace TestForOwn { result = _.forOwn(object); result = _.forOwn(object, objectIterator); - result = _.forOwn(object, objectIterator, any); } { @@ -9345,7 +9018,6 @@ namespace TestForOwn { result = _(dictionary).forOwn(); result = _(dictionary).forOwn(dictionaryIterator); - result = _(dictionary).forOwn(dictionaryIterator, any); } { @@ -9353,7 +9025,6 @@ namespace TestForOwn { result = _(dictionary).chain().forOwn(); result = _(dictionary).chain().forOwn(dictionaryIterator); - result = _(dictionary).chain().forOwn(dictionaryIterator, any); } } @@ -9372,7 +9043,6 @@ namespace TestForOwnRight { result = _.forOwnRight(dictionary); result = _.forOwnRight(dictionary, dictionaryIterator); - result = _.forOwnRight(dictionary, dictionaryIterator, any); } { @@ -9380,7 +9050,6 @@ namespace TestForOwnRight { result = _.forOwnRight(object); result = _.forOwnRight(object, objectIterator); - result = _.forOwnRight(object, objectIterator, any); } { @@ -9388,7 +9057,6 @@ namespace TestForOwnRight { result = _(dictionary).forOwnRight(); result = _(dictionary).forOwnRight(dictionaryIterator); - result = _(dictionary).forOwnRight(dictionaryIterator, any); } { @@ -9396,7 +9064,6 @@ namespace TestForOwnRight { result = _(dictionary).chain().forOwnRight(); result = _(dictionary).chain().forOwnRight(dictionaryIterator); - result = _(dictionary).chain().forOwnRight(dictionaryIterator, any); } } @@ -9779,23 +9446,17 @@ namespace TestMapKeys { result = _.mapKeys(array); result = _.mapKeys(array, listIterator); - result = _.mapKeys(array, listIterator, any); result = _.mapKeys(array, ''); - result = _.mapKeys(array, '', any); result = _.mapKeys(array, {}); result = _.mapKeys(list); result = _.mapKeys(list, listIterator); - result = _.mapKeys(list, listIterator, any); result = _.mapKeys(list, ''); - result = _.mapKeys(list, '', any); result = _.mapKeys(list, {}); result = _.mapKeys(dictionary); result = _.mapKeys(dictionary, dictionaryIterator); - result = _.mapKeys(dictionary, dictionaryIterator, any); result = _.mapKeys(dictionary, ''); - result = _.mapKeys(dictionary, '', any); result = _.mapKeys(dictionary, {}); } @@ -9804,23 +9465,17 @@ namespace TestMapKeys { result = _(array).mapKeys(); result = _(array).mapKeys(listIterator); - result = _(array).mapKeys(listIterator, any); result = _(array).mapKeys(''); - result = _(array).mapKeys('', any); result = _(array).mapKeys<{}>({}); result = _(list).mapKeys(); result = _(list).mapKeys(listIterator); - result = _(list).mapKeys(listIterator, any); result = _(list).mapKeys(''); - result = _(list).mapKeys('', any); result = _(list).mapKeys({}); result = _(dictionary).mapKeys(); result = _(dictionary).mapKeys(dictionaryIterator); - result = _(dictionary).mapKeys(dictionaryIterator, any); result = _(dictionary).mapKeys(''); - result = _(dictionary).mapKeys('', any); result = _(dictionary).mapKeys({}); } @@ -9829,23 +9484,17 @@ namespace TestMapKeys { result = _(array).chain().mapKeys(); result = _(array).chain().mapKeys(listIterator); - result = _(array).chain().mapKeys(listIterator, any); result = _(array).chain().mapKeys(''); - result = _(array).chain().mapKeys('', any); result = _(array).chain().mapKeys<{}>({}); result = _(list).chain().mapKeys(); result = _(list).chain().mapKeys(listIterator); - result = _(list).chain().mapKeys(listIterator, any); result = _(list).chain().mapKeys(''); - result = _(list).chain().mapKeys('', any); result = _(list).chain().mapKeys({}); result = _(dictionary).chain().mapKeys(); result = _(dictionary).chain().mapKeys(dictionaryIterator); - result = _(dictionary).chain().mapKeys(dictionaryIterator, any); result = _(dictionary).chain().mapKeys(''); - result = _(dictionary).chain().mapKeys('', any); result = _(dictionary).chain().mapKeys({}); } } @@ -10388,12 +10037,10 @@ namespace TestTransform { result = _.transform(array); result = _.transform(array, iterator); result = _.transform(array, iterator, accumulator); - result = _.transform(array, iterator, accumulator, any); result = _(array).transform().value(); result = _(array).transform(iterator).value(); result = _(array).transform(iterator, accumulator).value(); - result = _(array).transform(iterator, accumulator, any).value(); } { @@ -10403,11 +10050,9 @@ namespace TestTransform { result = _.transform(array, iterator); result = _.transform(array, iterator, accumulator); - result = _.transform(array, iterator, accumulator, any); result = _(array).transform(iterator).value(); result = _(array).transform(iterator, accumulator).value(); - result = _(array).transform(iterator, accumulator, any).value(); } { @@ -10418,12 +10063,10 @@ namespace TestTransform { result = _.transform(dictionary); result = _.transform(dictionary, iterator); result = _.transform(dictionary, iterator, accumulator); - result = _.transform(dictionary, iterator, accumulator, any); result = _(dictionary).transform().value(); result = _(dictionary).transform(iterator).value(); result = _(dictionary).transform(iterator, accumulator).value(); - result = _(dictionary).transform(iterator, accumulator, any).value(); } { @@ -10433,11 +10076,9 @@ namespace TestTransform { result = _.transform(dictionary, iterator); result = _.transform(dictionary, iterator, accumulator); - result = _.transform(dictionary, iterator, accumulator, any); result = _(dictionary).transform(iterator).value(); result = _(dictionary).transform(iterator, accumulator).value(); - result = _(dictionary).transform(iterator, accumulator, any).value(); } } @@ -11207,77 +10848,77 @@ namespace TestAttempt { namespace TestConstant { { let result: () => number; - result: _.constant(42); + result = _.constant(42); } { let result: () => string; - result: _.constant('a'); + result = _.constant('a'); } { let result: () => boolean; - result: _.constant(true); + result = _.constant(true); } { let result: () => string[]; - result: _.constant(['a']); + result = _.constant(['a']); } { let result: () => {a: string}; - result: _.constant<{a: string}>({a: 'a'}); + result = _.constant<{a: string}>({a: 'a'}); } { let result: _.LoDashImplicitObjectWrapper<() => number>; - result: _(42).constant(); + result = _(42).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => string>; - result: _('a').constant(); + result = _('a').constant(); } { let result: _.LoDashImplicitObjectWrapper<() => boolean>; - result: _(true).constant(); + result = _(true).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => string[]>; - result: _(['a']).constant(); + result = _(['a']).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => {a: string}>; - result: _({a: 'a'}).constant<{a: string}>(); + result = _({a: 'a'}).constant<{a: string}>(); } { let result: _.LoDashExplicitObjectWrapper<() => number>; - result: _(42).chain().constant(); + result = _(42).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => string>; - result: _('a').chain().constant(); + result = _('a').chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => boolean>; - result: _(true).chain().constant(); + result = _(true).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => string[]>; - result: _(['a']).chain().constant(); + result = _(['a']).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => {a: string}>; - result: _({a: 'a'}).chain().constant<{a: string}>(); + result = _({a: 'a'}).chain().constant<{a: string}>(); } } @@ -11329,63 +10970,54 @@ namespace TestIteratee { let result: (...args: any[]) => TResult; result = _.iteratee(Function); - result = _.iteratee(Function, any); } { let result: (object: any) => TResult; result = _.iteratee(''); - result = _.iteratee('', any); } { let result: (object: any) => boolean; result = _.iteratee({}); - result = _.iteratee({}, any); } { let result: _.LoDashImplicitObjectWrapper<(...args: any[]) => TResult>; result = _(Function).iteratee(); - result = _(Function).iteratee(any); } { let result: _.LoDashImplicitObjectWrapper<(object: any) => TResult>; result = _('').iteratee(); - result = _('').iteratee(any); } { let result: _.LoDashImplicitObjectWrapper<(object: any) => boolean>; result = _({}).iteratee(); - result = _({}).iteratee(any); } { let result: _.LoDashExplicitObjectWrapper<(...args: any[]) => TResult>; result = _(Function).chain().iteratee(); - result = _(Function).chain().iteratee(any); } { let result: _.LoDashExplicitObjectWrapper<(object: any) => TResult>; result = _('').chain().iteratee(); - result = _('').chain().iteratee(any); } { let result: _.LoDashExplicitObjectWrapper<(object: any) => boolean>; result = _({}).chain().iteratee(); - result = _({}).chain().iteratee(any); } } @@ -11462,7 +11094,6 @@ namespace TestMethod { let result: (object: any) => {a: string}; result = _.method<{a: string}>('a.0'); - result = _.method<{a: string}>('a.0', any); result = _.method<{a: string}>('a.0', any, any); result = _.method<{a: string}>('a.0', any, any, any); @@ -11476,7 +11107,6 @@ namespace TestMethod { let result: (object: {a: string}) => {b: string}; result = _.method<{a: string}, {b: string}>('a.0'); - result = _.method<{a: string}, {b: string}>('a.0', any); result = _.method<{a: string}, {b: string}>('a.0', any, any); result = _.method<{a: string}, {b: string}>('a.0', any, any, any); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index bd996b9638..0e506e9597 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -1241,8 +1241,7 @@ declare module _ { */ dropRightWhile( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): TValue[]; /** @@ -1250,8 +1249,7 @@ declare module _ { */ dropRightWhile( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): TValue[]; /** @@ -1268,16 +1266,14 @@ declare module _ { * @see _.dropRightWhile */ dropRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.dropRightWhile */ dropRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -1293,16 +1289,14 @@ declare module _ { * @see _.dropRightWhile */ dropRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.dropRightWhile */ dropRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -1318,16 +1312,14 @@ declare module _ { * @see _.dropRightWhile */ dropRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.dropRightWhile */ dropRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -1343,16 +1335,14 @@ declare module _ { * @see _.dropRightWhile */ dropRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.dropRightWhile */ dropRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -1385,8 +1375,7 @@ declare module _ { */ dropWhile( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): TValue[]; /** @@ -1394,8 +1383,7 @@ declare module _ { */ dropWhile( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): TValue[]; /** @@ -1412,16 +1400,14 @@ declare module _ { * @see _.dropWhile */ dropWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.dropWhile */ dropWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -1437,16 +1423,14 @@ declare module _ { * @see _.dropWhile */ dropWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.dropWhile */ dropWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -1462,16 +1446,14 @@ declare module _ { * @see _.dropWhile */ dropWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.dropWhile */ dropWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -1487,16 +1469,14 @@ declare module _ { * @see _.dropWhile */ dropWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.dropWhile */ dropWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -1604,8 +1584,7 @@ declare module _ { */ findIndex( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** @@ -1613,8 +1592,7 @@ declare module _ { */ findIndex( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1631,16 +1609,14 @@ declare module _ { * @see _.findIndex */ findIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** * @see _.findIndex */ findIndex( - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1656,16 +1632,14 @@ declare module _ { * @see _.findIndex */ findIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** * @see _.findIndex */ findIndex( - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1681,16 +1655,14 @@ declare module _ { * @see _.findIndex */ findIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitWrapper; /** * @see _.findIndex */ findIndex( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -1706,16 +1678,14 @@ declare module _ { * @see _.findIndex */ findIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitWrapper; /** * @see _.findIndex */ findIndex( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -1747,8 +1717,7 @@ declare module _ { */ findLastIndex( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** @@ -1756,8 +1725,7 @@ declare module _ { */ findLastIndex( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1774,16 +1742,14 @@ declare module _ { * @see _.findLastIndex */ findLastIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** * @see _.findLastIndex */ findLastIndex( - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1799,16 +1765,14 @@ declare module _ { * @see _.findLastIndex */ findLastIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): number; /** * @see _.findLastIndex */ findLastIndex( - predicate?: string, - thisArg?: any + predicate?: string ): number; /** @@ -1824,16 +1788,14 @@ declare module _ { * @see _.findLastIndex */ findLastIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitWrapper; /** * @see _.findLastIndex */ findLastIndex( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -1849,16 +1811,14 @@ declare module _ { * @see _.findLastIndex */ findLastIndex( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitWrapper; /** * @see _.findLastIndex */ findLastIndex( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -2058,7 +2018,23 @@ declare module _ { */ fromPairs( array: any[]|List - ): any[]; + ): Dictionary; + } + + //_.fromPairs DUMMY + interface LoDashImplicitArrayWrapper { + /** + * @see _.fromPairs + */ + fromPairs(): LoDashImplicitObjectWrapper; + } + + //_.fromPairs DUMMY + interface LoDashExplicitArrayWrapper { + /** + * @see _.fromPairs + */ + fromPairs(): LoDashExplicitObjectWrapper; } //_.head @@ -2756,8 +2732,7 @@ declare module _ { */ remove( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): T[]; /** @@ -2765,8 +2740,7 @@ declare module _ { */ remove( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): T[]; /** @@ -2783,16 +2757,14 @@ declare module _ { * @see _.remove */ remove( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.remove */ remove( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -2808,16 +2780,14 @@ declare module _ { * @see _.remove */ remove( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.remove */ remove( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -2833,16 +2803,14 @@ declare module _ { * @see _.remove */ remove( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.remove */ remove( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -2858,16 +2826,14 @@ declare module _ { * @see _.remove */ remove( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.remove */ remove( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -3888,8 +3854,7 @@ declare module _ { */ takeRightWhile( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): TValue[]; /** @@ -3897,8 +3862,7 @@ declare module _ { */ takeRightWhile( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): TValue[]; /** @@ -3915,16 +3879,14 @@ declare module _ { * @see _.takeRightWhile */ takeRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.takeRightWhile */ takeRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -3940,16 +3902,14 @@ declare module _ { * @see _.takeRightWhile */ takeRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.takeRightWhile */ takeRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -3965,16 +3925,14 @@ declare module _ { * @see _.takeRightWhile */ takeRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.takeRightWhile */ takeRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -3990,16 +3948,14 @@ declare module _ { * @see _.takeRightWhile */ takeRightWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.takeRightWhile */ takeRightWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -4032,8 +3988,7 @@ declare module _ { */ takeWhile( array: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): TValue[]; /** @@ -4041,8 +3996,7 @@ declare module _ { */ takeWhile( array: List, - predicate?: string, - thisArg?: any + predicate?: string ): TValue[]; /** @@ -4059,16 +4013,14 @@ declare module _ { * @see _.takeWhile */ takeWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.takeWhile */ takeWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -4084,16 +4036,14 @@ declare module _ { * @see _.takeWhile */ takeWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.takeWhile */ takeWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashImplicitArrayWrapper; /** @@ -4109,16 +4059,14 @@ declare module _ { * @see _.takeWhile */ takeWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.takeWhile */ takeWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -4134,16 +4082,14 @@ declare module _ { * @see _.takeWhile */ takeWhile( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.takeWhile */ takeWhile( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitArrayWrapper; /** @@ -5391,8 +5337,7 @@ declare module _ { */ unzipWith( array: List>, - iteratee?: MemoIterator, - thisArg?: any + iteratee?: MemoIterator ): TResult[]; } @@ -5401,8 +5346,7 @@ declare module _ { * @see _.unzipWith */ unzipWith( - iteratee?: MemoIterator, - thisArg?: any + iteratee?: MemoIterator ): LoDashImplicitArrayWrapper; } @@ -5411,8 +5355,7 @@ declare module _ { * @see _.unzipWith */ unzipWith( - iteratee?: MemoIterator, - thisArg?: any + iteratee?: MemoIterator ): LoDashImplicitArrayWrapper; } @@ -5801,8 +5744,7 @@ declare module _ { **/ tap( value: T, - interceptor: (value: T) => void, - thisArg?: any + interceptor: (value: T) => void ): T; } @@ -5811,8 +5753,7 @@ declare module _ { * @see _.tap */ tap( - interceptor: (value: T) => void, - thisArg?: any + interceptor: (value: T) => void ): TWrapper; } @@ -5821,8 +5762,7 @@ declare module _ { * @see _.tap */ tap( - interceptor: (value: T) => void, - thisArg?: any + interceptor: (value: T) => void ): TWrapper; } @@ -5838,8 +5778,7 @@ declare module _ { */ thru( value: T, - interceptor: (value: T) => TResult, - thisArg?: any + interceptor: (value: T) => TResult ): TResult; } @@ -5848,36 +5787,31 @@ declare module _ { * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any): LoDashImplicitWrapper; + interceptor: (value: T) => TResult): LoDashImplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any): LoDashImplicitWrapper; + interceptor: (value: T) => TResult): LoDashImplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any): LoDashImplicitWrapper; + interceptor: (value: T) => TResult): LoDashImplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any): LoDashImplicitObjectWrapper; + interceptor: (value: T) => TResult): LoDashImplicitObjectWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult[], - thisArg?: any): LoDashImplicitArrayWrapper; + interceptor: (value: T) => TResult[]): LoDashImplicitArrayWrapper; } interface LoDashExplicitWrapperBase { @@ -5885,40 +5819,35 @@ declare module _ { * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any + interceptor: (value: T) => TResult ): LoDashExplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any + interceptor: (value: T) => TResult ): LoDashExplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any + interceptor: (value: T) => TResult ): LoDashExplicitWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult, - thisArg?: any + interceptor: (value: T) => TResult ): LoDashExplicitObjectWrapper; /** * @see _.thru */ thru( - interceptor: (value: T) => TResult[], - thisArg?: any + interceptor: (value: T) => TResult[] ): LoDashExplicitArrayWrapper; } @@ -6174,8 +6103,7 @@ declare module _ { */ countBy( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): Dictionary; /** @@ -6183,8 +6111,7 @@ declare module _ { */ countBy( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -6192,8 +6119,7 @@ declare module _ { */ countBy( collection: NumericDictionary, - iteratee?: NumericDictionaryIterator, - thisArg?: any + iteratee?: NumericDictionaryIterator ): Dictionary; /** @@ -6201,8 +6127,7 @@ declare module _ { */ countBy( collection: List|Dictionary|NumericDictionary, - iteratee?: string, - thisArg?: any + iteratee?: string ): Dictionary; /** @@ -6227,8 +6152,7 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; } @@ -6237,16 +6161,14 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; /** * @see _.countBy */ countBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -6262,16 +6184,14 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator ): LoDashImplicitObjectWrapper>; /** * @see _.countBy */ countBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -6287,8 +6207,7 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; } @@ -6297,16 +6216,14 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; /** * @see _.countBy */ countBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -6322,16 +6239,14 @@ declare module _ { * @see _.countBy */ countBy( - iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator ): LoDashExplicitObjectWrapper>; /** * @see _.countBy */ countBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -6349,8 +6264,7 @@ declare module _ { */ each( collection: T[], - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): T[]; /** @@ -6358,8 +6272,7 @@ declare module _ { */ each( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): List; /** @@ -6367,8 +6280,7 @@ declare module _ { */ each( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -6376,8 +6288,7 @@ declare module _ { */ each( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; /** @@ -6385,8 +6296,7 @@ declare module _ { */ each( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; } @@ -6395,8 +6305,7 @@ declare module _ { * @see _.forEach */ each( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitWrapper; } @@ -6405,8 +6314,7 @@ declare module _ { * @see _.forEach */ each( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitArrayWrapper; } @@ -6415,8 +6323,7 @@ declare module _ { * @see _.forEach */ each( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper; } @@ -6425,8 +6332,7 @@ declare module _ { * @see _.forEach */ each( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitWrapper; } @@ -6435,8 +6341,7 @@ declare module _ { * @see _.forEach */ each( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitArrayWrapper; } @@ -6445,8 +6350,7 @@ declare module _ { * @see _.forEach */ each( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper; } @@ -6457,8 +6361,7 @@ declare module _ { */ eachRight( collection: T[], - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): T[]; /** @@ -6466,8 +6369,7 @@ declare module _ { */ eachRight( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): List; /** @@ -6475,8 +6377,7 @@ declare module _ { */ eachRight( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -6484,8 +6385,7 @@ declare module _ { */ eachRight( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; /** @@ -6493,8 +6393,7 @@ declare module _ { */ eachRight( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; } @@ -6503,8 +6402,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitWrapper; } @@ -6513,8 +6411,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitArrayWrapper; } @@ -6523,8 +6420,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper; } @@ -6533,8 +6429,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitWrapper; } @@ -6543,8 +6438,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitArrayWrapper; } @@ -6553,8 +6447,7 @@ declare module _ { * @see _.forEachRight */ eachRight( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper; } @@ -6720,8 +6613,7 @@ declare module _ { */ filter( collection: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): T[]; /** @@ -6729,8 +6621,7 @@ declare module _ { */ filter( collection: Dictionary, - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): T[]; /** @@ -6738,8 +6629,7 @@ declare module _ { */ filter( collection: string, - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): string[]; /** @@ -6747,8 +6637,7 @@ declare module _ { */ filter( collection: List|Dictionary, - predicate: string, - thisArg?: any + predicate: string ): T[]; /** @@ -6765,8 +6654,7 @@ declare module _ { * @see _.filter */ filter( - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): LoDashImplicitArrayWrapper; } @@ -6775,16 +6663,14 @@ declare module _ { * @see _.filter */ filter( - predicate: ListIterator, - thisArg?: any + predicate: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.filter */ filter( - predicate: string, - thisArg?: any + predicate: string ): LoDashImplicitArrayWrapper; /** @@ -6798,16 +6684,14 @@ declare module _ { * @see _.filter */ filter( - predicate: ListIterator|DictionaryIterator, - thisArg?: any + predicate: ListIterator|DictionaryIterator ): LoDashImplicitArrayWrapper; /** * @see _.filter */ filter( - predicate: string, - thisArg?: any + predicate: string ): LoDashImplicitArrayWrapper; /** @@ -6821,8 +6705,7 @@ declare module _ { * @see _.filter */ filter( - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): LoDashExplicitArrayWrapper; } @@ -6831,16 +6714,14 @@ declare module _ { * @see _.filter */ filter( - predicate: ListIterator, - thisArg?: any + predicate: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.filter */ filter( - predicate: string, - thisArg?: any + predicate: string ): LoDashExplicitArrayWrapper; /** @@ -6854,16 +6735,14 @@ declare module _ { * @see _.filter */ filter( - predicate: ListIterator|DictionaryIterator, - thisArg?: any + predicate: ListIterator|DictionaryIterator ): LoDashExplicitArrayWrapper; /** * @see _.filter */ filter( - predicate: string, - thisArg?: any + predicate: string ): LoDashExplicitArrayWrapper; /** @@ -6894,8 +6773,7 @@ declare module _ { */ find( collection: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): T; /** @@ -6903,8 +6781,7 @@ declare module _ { */ find( collection: Dictionary, - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): T; /** @@ -6912,8 +6789,7 @@ declare module _ { */ find( collection: List|Dictionary, - predicate?: string, - thisArg?: any + predicate?: string ): T; /** @@ -6930,16 +6806,14 @@ declare module _ { * @see _.find */ find( - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): T; /** * @see _.find */ find( - predicate?: string, - thisArg?: any + predicate?: string ): T; /** @@ -6955,16 +6829,14 @@ declare module _ { * @see _.find */ find( - predicate?: ListIterator|DictionaryIterator, - thisArg?: any + predicate?: ListIterator|DictionaryIterator ): TResult; /** * @see _.find */ find( - predicate?: string, - thisArg?: any + predicate?: string ): TResult; /** @@ -6987,24 +6859,21 @@ declare module _ { **/ findLast( collection: Array, - callback: ListIterator, - thisArg?: any): T; + callback: ListIterator): T; /** * @see _.find **/ findLast( collection: List, - callback: ListIterator, - thisArg?: any): T; + callback: ListIterator): T; /** * @see _.find **/ findLast( collection: Dictionary, - callback: DictionaryIterator, - thisArg?: any): T; + callback: DictionaryIterator): T; /** * @see _.find @@ -7060,8 +6929,7 @@ declare module _ { * @see _.findLast */ findLast( - callback: ListIterator, - thisArg?: any): T; + callback: ListIterator): T; /** * @see _.findLast * @param _.where style callback @@ -7361,8 +7229,7 @@ declare module _ { */ forEach( collection: T[], - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): T[]; /** @@ -7370,8 +7237,7 @@ declare module _ { */ forEach( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): List; /** @@ -7379,8 +7245,7 @@ declare module _ { */ forEach( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -7388,8 +7253,7 @@ declare module _ { */ forEach( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; /** @@ -7397,8 +7261,7 @@ declare module _ { */ forEach( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; } @@ -7407,8 +7270,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitWrapper; } @@ -7417,8 +7279,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitArrayWrapper; } @@ -7427,8 +7288,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper; } @@ -7437,8 +7297,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitWrapper; } @@ -7447,8 +7306,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitArrayWrapper; } @@ -7457,8 +7315,7 @@ declare module _ { * @see _.forEach */ forEach( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper; } @@ -7475,8 +7332,7 @@ declare module _ { */ forEachRight( collection: T[], - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): T[]; /** @@ -7484,8 +7340,7 @@ declare module _ { */ forEachRight( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): List; /** @@ -7493,8 +7348,7 @@ declare module _ { */ forEachRight( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -7502,8 +7356,7 @@ declare module _ { */ forEachRight( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; /** @@ -7511,8 +7364,7 @@ declare module _ { */ forEachRight( collection: T, - iteratee?: ObjectIterator, - thisArgs?: any + iteratee?: ObjectIterator ): T; } @@ -7521,8 +7373,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitWrapper; } @@ -7531,8 +7382,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashImplicitArrayWrapper; } @@ -7541,8 +7391,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper; } @@ -7551,8 +7400,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitWrapper; } @@ -7561,8 +7409,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee: ListIterator, - thisArg?: any + iteratee: ListIterator ): LoDashExplicitArrayWrapper; } @@ -7571,8 +7418,7 @@ declare module _ { * @see _.forEachRight */ forEachRight( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper; } @@ -7600,8 +7446,7 @@ declare module _ { */ groupBy( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): Dictionary; /** @@ -7609,8 +7454,7 @@ declare module _ { */ groupBy( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): Dictionary; /** @@ -7618,8 +7462,7 @@ declare module _ { */ groupBy( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -7627,8 +7470,7 @@ declare module _ { */ groupBy( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -7636,8 +7478,7 @@ declare module _ { */ groupBy( collection: List|Dictionary, - iteratee?: string, - thisArg?: TValue + iteratee?: string ): Dictionary; /** @@ -7645,8 +7486,7 @@ declare module _ { */ groupBy( collection: List|Dictionary, - iteratee?: string, - thisArg?: any + iteratee?: string ): Dictionary; /** @@ -7671,8 +7511,7 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; } @@ -7681,16 +7520,14 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: TValue + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -7706,32 +7543,28 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: TValue + iteratee?: string ): LoDashImplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -7754,8 +7587,7 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; } @@ -7764,16 +7596,14 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: TValue + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -7789,32 +7619,28 @@ declare module _ { * @see _.groupBy */ groupBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: TValue + iteratee?: string ): LoDashExplicitObjectWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -7943,8 +7769,7 @@ declare module _ { */ keyBy( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): Dictionary; /** @@ -7952,8 +7777,7 @@ declare module _ { */ keyBy( collection: NumericDictionary, - iteratee?: NumericDictionaryIterator, - thisArg?: any + iteratee?: NumericDictionaryIterator ): Dictionary; /** @@ -7961,8 +7785,7 @@ declare module _ { */ keyBy( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -7970,8 +7793,7 @@ declare module _ { */ keyBy( collection: List|NumericDictionary|Dictionary, - iteratee?: string, - thisArg?: any + iteratee?: string ): Dictionary; /** @@ -7996,8 +7818,7 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; } @@ -8006,16 +7827,14 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -8031,16 +7850,14 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator ): LoDashImplicitObjectWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; /** @@ -8063,8 +7880,7 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; } @@ -8073,16 +7889,14 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -8098,16 +7912,14 @@ declare module _ { * @see _.keyBy */ keyBy( - iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator ): LoDashExplicitObjectWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; /** @@ -8358,8 +8170,7 @@ declare module _ { */ map( collection: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): TResult[]; /** @@ -8367,14 +8178,12 @@ declare module _ { */ map( collection: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): TResult[]; map( collection: NumericDictionary, - iteratee?: NumericDictionaryIterator, - thisArg?: any + iteratee?: NumericDictionaryIterator ): TResult[]; /** @@ -8399,8 +8208,7 @@ declare module _ { * @see _.map */ map( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitArrayWrapper; /** @@ -8423,8 +8231,7 @@ declare module _ { * @see _.map */ map( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitArrayWrapper; /** @@ -8447,8 +8254,7 @@ declare module _ { * @see _.map */ map( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitArrayWrapper; /** @@ -8471,8 +8277,7 @@ declare module _ { * @see _.map */ map( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitArrayWrapper; /** @@ -8513,16 +8318,14 @@ declare module _ { **/ partition( collection: List, - callback: ListIterator, - thisArg?: any): T[][]; + callback: ListIterator): T[][]; /** * @see _.partition **/ partition( collection: Dictionary, - callback: DictionaryIterator, - thisArg?: any): T[][]; + callback: DictionaryIterator): T[][]; /** * @see _.partition @@ -8574,8 +8377,7 @@ declare module _ { * @see _.partition */ partition( - callback: ListIterator, - thisArg?: any): LoDashImplicitArrayWrapper; + callback: ListIterator): LoDashImplicitArrayWrapper; } interface LoDashImplicitArrayWrapper { @@ -8583,8 +8385,7 @@ declare module _ { * @see _.partition */ partition( - callback: ListIterator, - thisArg?: any): LoDashImplicitArrayWrapper; + callback: ListIterator): LoDashImplicitArrayWrapper; /** * @see _.partition */ @@ -8608,15 +8409,13 @@ declare module _ { * @see _.partition */ partition( - callback: ListIterator, - thisArg?: any): LoDashImplicitArrayWrapper; + callback: ListIterator): LoDashImplicitArrayWrapper; /** * @see _.partition */ partition( - callback: DictionaryIterator, - thisArg?: any): LoDashImplicitArrayWrapper; + callback: DictionaryIterator): LoDashImplicitArrayWrapper; /** * @see _.partition @@ -8655,8 +8454,7 @@ declare module _ { reduce( collection: Array, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce @@ -8664,8 +8462,7 @@ declare module _ { reduce( collection: List, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce @@ -8673,8 +8470,7 @@ declare module _ { reduce( collection: Dictionary, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce @@ -8682,40 +8478,35 @@ declare module _ { reduce( collection: NumericDictionary, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce **/ reduce( collection: Array, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; /** * @see _.reduce **/ reduce( collection: List, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; /** * @see _.reduce **/ reduce( collection: Dictionary, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; /** * @see _.reduce **/ reduce( collection: NumericDictionary, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; } @@ -8725,15 +8516,13 @@ declare module _ { **/ reduce( callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce **/ reduce( - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; } interface LoDashImplicitObjectWrapper { @@ -8742,15 +8531,13 @@ declare module _ { **/ reduce( callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduce **/ reduce( - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; } //_.reduceRight @@ -8767,8 +8554,7 @@ declare module _ { reduceRight( collection: Array, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduceRight @@ -8776,8 +8562,7 @@ declare module _ { reduceRight( collection: List, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduceRight @@ -8785,32 +8570,28 @@ declare module _ { reduceRight( collection: Dictionary, callback: MemoIterator, - accumulator: TResult, - thisArg?: any): TResult; + accumulator: TResult): TResult; /** * @see _.reduceRight **/ reduceRight( collection: Array, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; /** * @see _.reduceRight **/ reduceRight( collection: List, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; /** * @see _.reduceRight **/ reduceRight( collection: Dictionary, - callback: MemoIterator, - thisArg?: any): TResult; + callback: MemoIterator): TResult; } //_.reject @@ -8826,8 +8607,7 @@ declare module _ { */ reject( collection: List, - predicate?: ListIterator, - thisArg?: any + predicate?: ListIterator ): T[]; /** @@ -8835,8 +8615,7 @@ declare module _ { */ reject( collection: Dictionary, - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): T[]; /** @@ -8844,8 +8623,7 @@ declare module _ { */ reject( collection: string, - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): string[]; /** @@ -8853,8 +8631,7 @@ declare module _ { */ reject( collection: List|Dictionary, - predicate: string, - thisArg?: any + predicate: string ): T[]; /** @@ -8871,8 +8648,7 @@ declare module _ { * @see _.reject */ reject( - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): LoDashImplicitArrayWrapper; } @@ -8881,16 +8657,14 @@ declare module _ { * @see _.reject */ reject( - predicate: ListIterator, - thisArg?: any + predicate: ListIterator ): LoDashImplicitArrayWrapper; /** * @see _.reject */ reject( - predicate: string, - thisArg?: any + predicate: string ): LoDashImplicitArrayWrapper; /** @@ -8904,16 +8678,14 @@ declare module _ { * @see _.reject */ reject( - predicate: ListIterator|DictionaryIterator, - thisArg?: any + predicate: ListIterator|DictionaryIterator ): LoDashImplicitArrayWrapper; /** * @see _.reject */ reject( - predicate: string, - thisArg?: any + predicate: string ): LoDashImplicitArrayWrapper; /** @@ -8927,8 +8699,7 @@ declare module _ { * @see _.reject */ reject( - predicate?: StringIterator, - thisArg?: any + predicate?: StringIterator ): LoDashExplicitArrayWrapper; } @@ -8937,16 +8708,14 @@ declare module _ { * @see _.reject */ reject( - predicate: ListIterator, - thisArg?: any + predicate: ListIterator ): LoDashExplicitArrayWrapper; /** * @see _.reject */ reject( - predicate: string, - thisArg?: any + predicate: string ): LoDashExplicitArrayWrapper; /** @@ -8960,16 +8729,14 @@ declare module _ { * @see _.reject */ reject( - predicate: ListIterator|DictionaryIterator, - thisArg?: any + predicate: ListIterator|DictionaryIterator ): LoDashExplicitArrayWrapper; /** * @see _.reject */ reject( - predicate: string, - thisArg?: any + predicate: string ): LoDashExplicitArrayWrapper; /** @@ -10120,7 +9887,6 @@ declare module _ { **/ createCallback( func: string, - thisArg?: any, argCount?: number): () => any; /** @@ -10128,7 +9894,6 @@ declare module _ { **/ createCallback( func: Dictionary, - thisArg?: any, argCount?: number): () => boolean; } @@ -10137,7 +9902,6 @@ declare module _ { * @see _.createCallback **/ createCallback( - thisArg?: any, argCount?: number): LoDashImplicitObjectWrapper<() => any>; } @@ -10146,7 +9910,6 @@ declare module _ { * @see _.createCallback **/ createCallback( - thisArg?: any, argCount?: number): LoDashImplicitObjectWrapper<() => any>; } @@ -13349,16 +13112,14 @@ declare module _ { * @see _.maxBy */ maxBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): T; /** * @see _.maxBy */ maxBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): T; /** @@ -13514,16 +13275,14 @@ declare module _ { * @see _.minBy */ minBy( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): T; /** * @see _.minBy */ minBy( - iteratee?: string, - thisArg?: any + iteratee?: string ): T; /** @@ -14917,8 +14676,7 @@ declare module _ { extend( object: TObject, source: TSource, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): TResult; /** @@ -14928,8 +14686,7 @@ declare module _ { object: TObject, source1: TSource1, source2: TSource2, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): TResult; /** @@ -14940,8 +14697,7 @@ declare module _ { source1: TSource1, source2: TSource2, source3: TSource3, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): TResult; /** @@ -14955,8 +14711,7 @@ declare module _ { source2: TSource2, source3: TSource3, source4: TSource4, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): TResult; /** @@ -14978,8 +14733,7 @@ declare module _ { */ extend( source: TSource, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashImplicitObjectWrapper; /** @@ -14988,8 +14742,7 @@ declare module _ { extend( source1: TSource1, source2: TSource2, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashImplicitObjectWrapper; /** @@ -14999,8 +14752,7 @@ declare module _ { source1: TSource1, source2: TSource2, source3: TSource3, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashImplicitObjectWrapper; /** @@ -15011,8 +14763,7 @@ declare module _ { source2: TSource2, source3: TSource3, source4: TSource4, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashImplicitObjectWrapper; /** @@ -15032,8 +14783,7 @@ declare module _ { */ extend( source: TSource, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashExplicitObjectWrapper; /** @@ -15042,8 +14792,7 @@ declare module _ { extend( source1: TSource1, source2: TSource2, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashExplicitObjectWrapper; /** @@ -15053,8 +14802,7 @@ declare module _ { source1: TSource1, source2: TSource2, source3: TSource3, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashExplicitObjectWrapper; /** @@ -15065,8 +14813,7 @@ declare module _ { source2: TSource2, source3: TSource3, source4: TSource4, - customizer?: AssignCustomizer, - thisArg?: any + customizer?: AssignCustomizer ): LoDashExplicitObjectWrapper; /** @@ -15102,8 +14849,7 @@ declare module _ { */ findKey( object: TObject, - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): string; /** @@ -15111,8 +14857,7 @@ declare module _ { */ findKey( object: TObject, - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): string; /** @@ -15120,8 +14865,7 @@ declare module _ { */ findKey( object: TObject, - predicate?: string, - thisArg?: any + predicate?: string ): string; /** @@ -15138,24 +14882,21 @@ declare module _ { * @see _.findKey */ findKey( - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): string; /** * @see _.findKey */ findKey( - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): string; /** * @see _.findKey */ findKey( - predicate?: string, - thisArg?: any + predicate?: string ): string; /** @@ -15171,24 +14912,21 @@ declare module _ { * @see _.findKey */ findKey( - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): LoDashExplicitWrapper; /** * @see _.findKey */ findKey( - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): LoDashExplicitWrapper; /** * @see _.findKey */ findKey( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -15220,8 +14958,7 @@ declare module _ { */ findLastKey( object: TObject, - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): string; /** @@ -15229,8 +14966,7 @@ declare module _ { */ findLastKey( object: TObject, - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): string; /** @@ -15238,8 +14974,7 @@ declare module _ { */ findLastKey( object: TObject, - predicate?: string, - thisArg?: any + predicate?: string ): string; /** @@ -15256,24 +14991,21 @@ declare module _ { * @see _.findLastKey */ findLastKey( - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): string; /** * @see _.findLastKey */ findLastKey( - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): string; /** * @see _.findLastKey */ findLastKey( - predicate?: string, - thisArg?: any + predicate?: string ): string; /** @@ -15289,24 +15021,21 @@ declare module _ { * @see _.findLastKey */ findLastKey( - predicate?: DictionaryIterator, - thisArg?: any + predicate?: DictionaryIterator ): LoDashExplicitWrapper; /** * @see _.findLastKey */ findLastKey( - predicate?: ObjectIterator, - thisArg?: any + predicate?: ObjectIterator ): LoDashExplicitWrapper; /** * @see _.findLastKey */ findLastKey( - predicate?: string, - thisArg?: any + predicate?: string ): LoDashExplicitWrapper; /** @@ -15331,8 +15060,7 @@ declare module _ { */ forIn( object: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -15340,8 +15068,7 @@ declare module _ { */ forIn( object: T, - iteratee?: ObjectIterator, - thisArg?: any + iteratee?: ObjectIterator ): T; } @@ -15350,8 +15077,7 @@ declare module _ { * @see _.forIn */ forIn( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashImplicitObjectWrapper; } @@ -15360,8 +15086,7 @@ declare module _ { * @see _.forIn */ forIn( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashExplicitObjectWrapper; } @@ -15377,8 +15102,7 @@ declare module _ { */ forInRight( object: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -15386,8 +15110,7 @@ declare module _ { */ forInRight( object: T, - iteratee?: ObjectIterator, - thisArg?: any + iteratee?: ObjectIterator ): T; } @@ -15396,8 +15119,7 @@ declare module _ { * @see _.forInRight */ forInRight( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashImplicitObjectWrapper; } @@ -15406,8 +15128,7 @@ declare module _ { * @see _.forInRight */ forInRight( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashExplicitObjectWrapper; } @@ -15425,8 +15146,7 @@ declare module _ { */ forOwn( object: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -15434,8 +15154,7 @@ declare module _ { */ forOwn( object: T, - iteratee?: ObjectIterator, - thisArg?: any + iteratee?: ObjectIterator ): T; } @@ -15444,8 +15163,7 @@ declare module _ { * @see _.forOwn */ forOwn( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashImplicitObjectWrapper; } @@ -15454,8 +15172,7 @@ declare module _ { * @see _.forOwn */ forOwn( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashExplicitObjectWrapper; } @@ -15471,8 +15188,7 @@ declare module _ { */ forOwnRight( object: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -15480,8 +15196,7 @@ declare module _ { */ forOwnRight( object: T, - iteratee?: ObjectIterator, - thisArg?: any + iteratee?: ObjectIterator ): T; } @@ -15490,8 +15205,7 @@ declare module _ { * @see _.forOwnRight */ forOwnRight( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashImplicitObjectWrapper; } @@ -15500,8 +15214,7 @@ declare module _ { * @see _.forOwnRight */ forOwnRight( - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): _.LoDashExplicitObjectWrapper; } @@ -15999,8 +15712,7 @@ declare module _ { */ mapKeys( object: List, - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): Dictionary; /** @@ -16008,8 +15720,7 @@ declare module _ { */ mapKeys( object: Dictionary, - iteratee?: DictionaryIterator, - thisArg?: any + iteratee?: DictionaryIterator ): Dictionary; /** @@ -16025,8 +15736,7 @@ declare module _ { */ mapKeys( object: List|Dictionary, - iteratee?: string, - thisArg?: any + iteratee?: string ): Dictionary; } @@ -16035,8 +15745,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashImplicitObjectWrapper>; /** @@ -16050,8 +15759,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; } @@ -16060,8 +15768,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashImplicitObjectWrapper>; /** @@ -16075,8 +15782,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashImplicitObjectWrapper>; } @@ -16085,8 +15791,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: ListIterator, - thisArg?: any + iteratee?: ListIterator ): LoDashExplicitObjectWrapper>; /** @@ -16100,8 +15805,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; } @@ -16110,8 +15814,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: ListIterator|DictionaryIterator, - thisArg?: any + iteratee?: ListIterator|DictionaryIterator ): LoDashExplicitObjectWrapper>; /** @@ -16125,8 +15828,7 @@ declare module _ { * @see _.mapKeys */ mapKeys( - iteratee?: string, - thisArg?: any + iteratee?: string ): LoDashExplicitObjectWrapper>; } @@ -16151,10 +15853,10 @@ declare module _ { * @param {Object} [thisArg] The `this` binding of `iteratee`. * @return {Object} Returns the new mapped object. */ - mapValues(obj: Dictionary, callback: ObjectIterator, thisArg?: any): Dictionary; + mapValues(obj: Dictionary, callback: ObjectIterator): Dictionary; mapValues(obj: Dictionary, where: Dictionary): Dictionary; mapValues(obj: T, pluck: string): TMapped; - mapValues(obj: T, callback: ObjectIterator, thisArg?: any): T; + mapValues(obj: T, callback: ObjectIterator): T; } interface LoDashImplicitObjectWrapper { @@ -16163,7 +15865,7 @@ declare module _ { * TValue is the type of the property values of T. * TResult is the type output by the ObjectIterator function */ - mapValues(callback: ObjectIterator, thisArg?: any): LoDashImplicitObjectWrapper>; + mapValues(callback: ObjectIterator): LoDashImplicitObjectWrapper>; /** * @see _.mapValues @@ -16174,17 +15876,33 @@ declare module _ { /** * @see _.mapValues - * TResult is the type of the properties on the object specified by pluck. - * T should be a Dictionary>> + * TResult is the type of the properties of each object in the values of T + * T should be a Dictionary> */ - mapValues(pluck: string, where: Dictionary): LoDashImplicitArrayWrapper>; + mapValues(where: Dictionary): LoDashImplicitArrayWrapper; + } + + interface LoDashExplicitObjectWrapper { + /** + * @see _.mapValues + * TValue is the type of the property values of T. + * TResult is the type output by the ObjectIterator function + */ + mapValues(callback: ObjectIterator): LoDashExplicitObjectWrapper>; + + /** + * @see _.mapValues + * TResult is the type of the property specified by pluck. + * T should be a Dictionary> + */ + mapValues(pluck: string): LoDashExplicitObjectWrapper>; /** * @see _.mapValues * TResult is the type of the properties of each object in the values of T * T should be a Dictionary> */ - mapValues(where: Dictionary): LoDashImplicitArrayWrapper; + mapValues(where: Dictionary): LoDashExplicitObjectWrapper; } //_.merge @@ -16635,7 +16353,7 @@ declare module _ { */ pickBy( object: T, - predicate: ObjectIterator + predicate?: ObjectIterator ): TResult; } @@ -16644,7 +16362,7 @@ declare module _ { * @see _.pickBy */ pickBy( - predicate: ObjectIterator + predicate?: ObjectIterator ): LoDashImplicitObjectWrapper; } @@ -16653,7 +16371,7 @@ declare module _ { * @see _.pickBy */ pickBy( - predicate: ObjectIterator + predicate?: ObjectIterator ): LoDashExplicitObjectWrapper; } @@ -16973,8 +16691,7 @@ declare module _ { transform( object: T[], iteratee?: MemoVoidArrayIterator, - accumulator?: TResult[], - thisArg?: any + accumulator?: TResult[] ): TResult[]; /** @@ -16983,8 +16700,7 @@ declare module _ { transform( object: T[], iteratee?: MemoVoidArrayIterator>, - accumulator?: Dictionary, - thisArg?: any + accumulator?: Dictionary ): Dictionary; /** @@ -16993,8 +16709,7 @@ declare module _ { transform( object: Dictionary, iteratee?: MemoVoidDictionaryIterator>, - accumulator?: Dictionary, - thisArg?: any + accumulator?: Dictionary ): Dictionary; /** @@ -17003,8 +16718,7 @@ declare module _ { transform( object: Dictionary, iteratee?: MemoVoidDictionaryIterator, - accumulator?: TResult[], - thisArg?: any + accumulator?: TResult[] ): TResult[]; } @@ -17014,8 +16728,7 @@ declare module _ { */ transform( iteratee?: MemoVoidArrayIterator, - accumulator?: TResult[], - thisArg?: any + accumulator?: TResult[] ): LoDashImplicitArrayWrapper; /** @@ -17023,8 +16736,7 @@ declare module _ { */ transform( iteratee?: MemoVoidArrayIterator>, - accumulator?: Dictionary, - thisArg?: any + accumulator?: Dictionary ): LoDashImplicitObjectWrapper>; } @@ -17034,8 +16746,7 @@ declare module _ { */ transform( iteratee?: MemoVoidDictionaryIterator>, - accumulator?: Dictionary, - thisArg?: any + accumulator?: Dictionary ): LoDashImplicitObjectWrapper>; /** @@ -17043,8 +16754,7 @@ declare module _ { */ transform( iteratee?: MemoVoidDictionaryIterator, - accumulator?: TResult[], - thisArg?: any + accumulator?: TResult[] ): LoDashImplicitArrayWrapper; } @@ -18344,24 +18054,21 @@ declare module _ { * // => [{ 'user': 'fred', 'age': 40 }] */ iteratee( - func: Function, - thisArg?: any + func: Function ): (...args: any[]) => TResult; /** * @see _.iteratee */ iteratee( - func: string, - thisArg?: any + func: string ): (object: any) => TResult; /** * @see _.iteratee */ iteratee( - func: Object, - thisArg?: any + func: Object ): (object: any) => boolean; /** @@ -18374,38 +18081,38 @@ declare module _ { /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashImplicitObjectWrapper<(object: any) => TResult>; + iteratee(): LoDashImplicitObjectWrapper<(object: any) => TResult>; } interface LoDashImplicitObjectWrapper { /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashImplicitObjectWrapper<(object: any) => boolean>; + iteratee(): LoDashImplicitObjectWrapper<(object: any) => boolean>; /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashImplicitObjectWrapper<(...args: any[]) => TResult>; + iteratee(): LoDashImplicitObjectWrapper<(...args: any[]) => TResult>; } interface LoDashExplicitWrapper { /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashExplicitObjectWrapper<(object: any) => TResult>; + iteratee(): LoDashExplicitObjectWrapper<(object: any) => TResult>; } interface LoDashExplicitObjectWrapper { /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashExplicitObjectWrapper<(object: any) => boolean>; + iteratee(): LoDashExplicitObjectWrapper<(object: any) => boolean>; /** * @see _.iteratee */ - iteratee(thisArg?: any): LoDashExplicitObjectWrapper<(...args: any[]) => TResult>; + iteratee(): LoDashExplicitObjectWrapper<(...args: any[]) => TResult>; } //_.matches diff --git a/lodash/tsconfig.json b/lodash/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lodash/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/log4javascript/log4javascript.d.ts b/log4javascript/log4javascript.d.ts index 1307053fad..460e17c91f 100644 --- a/log4javascript/log4javascript.d.ts +++ b/log4javascript/log4javascript.d.ts @@ -274,6 +274,8 @@ declare namespace log4javascript { messages: any[]; exception: Error; + constructor(logger: Logger, timeStamp: Date, level: Level, messages: string[], exception?: Error); + getThrowableStrRep: () => string; getCombinedMessages: () => string; toString: () => string; diff --git a/log4javascript/tsconfig.json b/log4javascript/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/log4javascript/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/log4js/tsconfig.json b/log4js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/log4js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/logg/tsconfig.json b/logg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/logg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/loggly/tsconfig.json b/loggly/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/loggly/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/loglevel/tsconfig.json b/loglevel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/loglevel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/logrotate-stream/tsconfig.json b/logrotate-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/logrotate-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lokijs/tsconfig.json b/lokijs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lokijs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lolex/tsconfig.json b/lolex/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lolex/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/long/tsconfig.json b/long/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/long/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lory.js/tsconfig.json b/lory.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lory.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lovefield/tsconfig.json b/lovefield/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lovefield/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lower-case-first/tsconfig.json b/lower-case-first/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lower-case-first/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lower-case/tsconfig.json b/lower-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lower-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lru-cache/tsconfig.json b/lru-cache/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lru-cache/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lscache/tsconfig.json b/lscache/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lscache/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/luaparse/tsconfig.json b/luaparse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/luaparse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lunr/tsconfig.json b/lunr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lunr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lwip/tsconfig.json b/lwip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lwip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/lz-string/tsconfig.json b/lz-string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/lz-string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mCustomScrollbar/tsconfig.json b/mCustomScrollbar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mCustomScrollbar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/magic-number/tsconfig.json b/magic-number/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/magic-number/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/magicsuggest/tsconfig.json b/magicsuggest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/magicsuggest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mailcheck/tsconfig.json b/mailcheck/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mailcheck/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/maildev/tsconfig.json b/maildev/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/maildev/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mailparser/tsconfig.json b/mailparser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mailparser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/main-bower-files/tsconfig.json b/main-bower-files/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/main-bower-files/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/maker.js/tsconfig.json b/maker.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/maker.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mandrill-api/tsconfig.json b/mandrill-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mandrill-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mapbox/tsconfig.json b/mapbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mapbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mapsjs/tsconfig.json b/mapsjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mapsjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/maquette/tsconfig.json b/maquette/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/maquette/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mariasql/tsconfig.json b/mariasql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mariasql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/marked/tsconfig.json b/marked/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/marked/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/markerclustererplus/tsconfig.json b/markerclustererplus/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/markerclustererplus/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/markitup/tsconfig.json b/markitup/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/markitup/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/maskedinput/tsconfig.json b/maskedinput/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/maskedinput/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/material-design-lite/material-design-lite-tests.ts b/material-design-lite/material-design-lite-tests.ts new file mode 100644 index 0000000000..afbf5faf15 --- /dev/null +++ b/material-design-lite/material-design-lite-tests.ts @@ -0,0 +1,38 @@ +// Test file for Google Maps JavaScript API Definition file +/// + +componentHandler.upgradeDom(); +componentHandler.upgradeDom('MaterialButton'); +componentHandler.upgradeDom('MaterialButton', 'mdl-button'); + +componentHandler.upgradeElement(document.createElement('div')); +componentHandler.upgradeElement(document.getElementById('id')); +componentHandler.upgradeElement(document.getElementsByTagName('button')[0], 'MaterialButton'); + +componentHandler.upgradeElements(document.getElementsByTagName('div')); +componentHandler.upgradeElements([document.createElement('div')]); +componentHandler.upgradeElements(document.querySelectorAll('div.mdl-button')); + +componentHandler.upgradeAllRegistered(); + +componentHandler.registerUpgradedCallback('MaterialButton', function(element : HTMLElement) {}); + +componentHandler.register({ + constructor: function(element: HTMLElement) {}, + classAsString: 'MaterialCheese', + cssClass: 'mdl-cheese' +}); +componentHandler.register({ + constructor: function(element: HTMLElement) {}, + classAsString: 'MaterialFoo', + cssClass: 'mdl-foo', + widget: true +}); +componentHandler.register({ + constructor: function(element: HTMLElement) {}, + classAsString: 'MaterialFoo', + cssClass: 'mdl-foo', + widget: 'FooBar' +}); + +componentHandler.downgradeElements(document.querySelectorAll('div')); diff --git a/material-design-lite/material-design-lite.d.ts b/material-design-lite/material-design-lite.d.ts new file mode 100644 index 0000000000..11b93ea792 --- /dev/null +++ b/material-design-lite/material-design-lite.d.ts @@ -0,0 +1,128 @@ +// Type definitions for material-design-lite v1.1.3 +// Project: https://getmdl.io +// Definitions by: Brad Zacher +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module MaterialDesignLite { + interface ComponentHandler { + /** + * Searches existing DOM for elements of our component type and upgrades them + * if they have not already been upgraded. + */ + upgradeDom() : void; + /** + * Searches existing DOM for elements of our component type and upgrades them + * if they have not already been upgraded. + * + * @param {string} jsClass the programatic name of the element class we + * need to create a new instance of. + */ + upgradeDom(jsClass : string) : void; + /** + * Searches existing DOM for elements of our component type and upgrades them + * if they have not already been upgraded. + * + * @param {string} jsClass the programatic name of the element class we + * need to create a new instance of. + * @param {string} cssClass the name of the CSS class elements of this + * type will have. + */ + upgradeDom(jsClass : string, cssClass : string) : void; + + /** + * Upgrades a specific element rather than all in the DOM. + * + * @param {!Element} element The element we wish to upgrade. + */ + upgradeElement(element : HTMLElement) : void; + /** + * Upgrades a specific element rather than all in the DOM. + * + * @param {!Element} element The element we wish to upgrade. + * @param {string} jsClass Optional name of the class we want to upgrade + * the element to. + */ + upgradeElement(element : HTMLElement, jsClass : string) : void; + + /** + * Upgrades a specific list of elements rather than all in the DOM. + * + * @param {!Element} elements + * The elements we wish to upgrade. + */ + upgradeElements(elements : HTMLElement) : void; + /** + * Upgrades a specific list of elements rather than all in the DOM. + * + * @param {!Array} elements + * The elements we wish to upgrade. + */ + upgradeElements(elements : Array) : void; + /** + * Upgrades a specific list of elements rather than all in the DOM. + * + * @param {!NodeList} elements + * The elements we wish to upgrade. + */ + upgradeElements(elements : NodeList) : void; + /** + * Upgrades a specific list of elements rather than all in the DOM. + * + * @param {!HTMLCollection} elements + * The elements we wish to upgrade. + */ + upgradeElements(elements : HTMLCollection) : void; + + /** + * Upgrades all registered components found in the current DOM. This is + * automatically called on window load. + */ + upgradeAllRegistered() : void; + + /** + * Allows user to be alerted to any upgrades that are performed for a given + * component type + * + * @param {string} jsClass The class name of the MDL component we wish + * to hook into for any upgrades performed. + * @param {function(!HTMLElement)} callback The function to call upon an + * upgrade. This function should expect 1 parameter - the HTMLElement which + * got upgraded. + */ + registerUpgradedCallback(jsClass : string, callback : (element : HTMLElement) => any) : void; + + /** + * Registers a class for future use and attempts to upgrade existing DOM. + * + * @param {componentHandler.ComponentConfigPublic} config the registration configuration + */ + register(config : ComponentConfigPublic) : void; + + /** + * Downgrade either a given node, an array of nodes, or a NodeList. + * + * @param {!Node} nodes The list of nodes. + */ + downgradeElements(nodes : Node) : void; + /** + * Downgrade either a given node, an array of nodes, or a NodeList. + * + * @param {!Array} nodes The list of nodes. + */ + downgradeElements(nodes : Array) : void; + /** + * Downgrade either a given node, an array of nodes, or a NodeList. + * + * @param {!NodeList} nodes The list of nodes. + */ + downgradeElements(nodes : NodeList) : void; + } + interface ComponentConfigPublic { + constructor(element : HTMLElement) : void; + classAsString : string; + cssClass : string; + widget? : string | boolean; + } +} + +declare var componentHandler : MaterialDesignLite.ComponentHandler; \ No newline at end of file diff --git a/material-design-lite/tsconfig.json b/material-design-lite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/material-design-lite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/material-ui/tsconfig.json b/material-ui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/material-ui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/materialize-css/tsconfig.json b/materialize-css/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/materialize-css/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mathjax/tsconfig.json b/mathjax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mathjax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mathjs/tsconfig.json b/mathjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mathjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/matter-js/tsconfig.json b/matter-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/matter-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/md5/tsconfig.json b/md5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/md5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mdns/tsconfig.json b/mdns/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mdns/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/memory-cache/tsconfig.json b/memory-cache/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/memory-cache/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mendixmodelsdk/tsconfig.json b/mendixmodelsdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mendixmodelsdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/merge-descriptors/tsconfig.json b/merge-descriptors/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/merge-descriptors/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/merge-stream/tsconfig.json b/merge-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/merge-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/merge2/tsconfig.json b/merge2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/merge2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meshblu/tsconfig.json b/meshblu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meshblu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mess/tsconfig.json b/mess/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mess/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/messenger/tsconfig.json b/messenger/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/messenger/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor-jboulhous-dev/tsconfig.json b/meteor-jboulhous-dev/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor-jboulhous-dev/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor-persistent-session/tsconfig.json b/meteor-persistent-session/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor-persistent-session/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor-prime8consulting-oauth2/tsconfig.json b/meteor-prime8consulting-oauth2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor-prime8consulting-oauth2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor-publish-composite/tsconfig.json b/meteor-publish-composite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor-publish-composite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor-roles/tsconfig.json b/meteor-roles/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor-roles/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/meteor/tsconfig.json b/meteor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/meteor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/method-override/tsconfig.json b/method-override/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/method-override/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/metismenu/tsconfig.json b/metismenu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/metismenu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/microgears/tsconfig.json b/microgears/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/microgears/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/micromatch/tsconfig.json b/micromatch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/micromatch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/microsoft-ajax/tsconfig.json b/microsoft-ajax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/microsoft-ajax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/microsoft-live-connect/tsconfig.json b/microsoft-live-connect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/microsoft-live-connect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/microsoft-sdk-soap/tsconfig.json b/microsoft-sdk-soap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/microsoft-sdk-soap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/milkcocoa/tsconfig.json b/milkcocoa/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/milkcocoa/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/milliseconds/tsconfig.json b/milliseconds/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/milliseconds/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mime/tsconfig.json b/mime/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mime/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/minilog/tsconfig.json b/minilog/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/minilog/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/minimatch/tsconfig.json b/minimatch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/minimatch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/minimist/tsconfig.json b/minimist/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/minimist/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mithril/tsconfig.json b/mithril/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mithril/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mixpanel/tsconfig.json b/mixpanel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mixpanel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mixto/tsconfig.json b/mixto/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mixto/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mkdirp/tsconfig.json b/mkdirp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mkdirp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mkpath/tsconfig.json b/mkpath/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mkpath/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mmmagic/tsconfig.json b/mmmagic/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mmmagic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mobile-detect/tsconfig.json b/mobile-detect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mobile-detect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mobservable-react/tsconfig.json b/mobservable-react/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mobservable-react/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mobservable/tsconfig.json b/mobservable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mobservable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mocha-phantomjs/tsconfig.json b/mocha-phantomjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mocha-phantomjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mocha/tsconfig.json b/mocha/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mocha/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mock-fs/tsconfig.json b/mock-fs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mock-fs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mockery/tsconfig.json b/mockery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mockery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/modernizr/tsconfig.json b/modernizr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/modernizr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/moment-range/tsconfig.json b/moment-range/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/moment-range/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/moment-timezone/tsconfig.json b/moment-timezone/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/moment-timezone/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/moment/tsconfig.json b/moment/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/moment/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 8b342f1487..a08251b8ba 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -7,12 +7,12 @@ /// - -import {EventEmitter} from 'events'; +declare module "mongodb" { + import {EventEmitter} from 'events'; -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html -export declare class MongoClient { + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html + export class MongoClient { constructor(); static connect(uri: string, callback: MongoCallback): void; @@ -22,30 +22,30 @@ export declare class MongoClient { connect(uri: string, callback: MongoCallback): void; connect(uri: string, options?: MongoClientOptions): Promise; connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; -} + } -export interface MongoCallback { + export interface MongoCallback { (error: MongoError, result: T): void; -} + } -// http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html -export declare class MongoError extends Error { + // http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html + export class MongoError extends Error { constructor(message: string); static create(options: Object): MongoError; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html#.connect -export interface MongoClientOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html#.connect + export interface MongoClientOptions { uri_decode_auth?: boolean; db?: DbCreateOptions; server?: ServerOptions; replSet?: ReplSetOptions; mongos?: MongosOptions; promiseLibrary?: Object; -} + } -// See : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html -export interface DbCreateOptions { + // See : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html + export interface DbCreateOptions { authSource?: string; // the write concern for the operation where < 1 is no acknowlegement of write and w >= 1, w = ‘majority’ or tag acknowledges the write. w?: number | string; @@ -69,10 +69,10 @@ export interface DbCreateOptions { pkFactory?: Object; promiseLibrary?: Object; readConcern?: { level?: Object }; -} + } -// See http://mongodb.github.io/node-mongodb-native/2.1/api/ReadPreference.html -export declare class ReadPreference { + // See http://mongodb.github.io/node-mongodb-native/2.1/api/ReadPreference.html + export class ReadPreference { constructor(mode: string, tags: Object); mode: string; tags: any; @@ -83,10 +83,10 @@ export declare class ReadPreference { static NEAREST: string; isValid(mode: string): boolean; static isValid(mode: string): boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html -export interface SocketOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html + export interface SocketOptions { // Reconnect on error. default:false autoReconnect?: boolean; // TCP Socket NoDelay option. default:true @@ -97,10 +97,10 @@ export interface SocketOptions { connectTimeoutMS?: number; // TCP Socket timeout setting. default 0 socketTimeoutMS?: number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html -export interface ServerOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html + export interface ServerOptions { // - specify the number of connections in the pool default:5 poolSize?: number; ssl?: boolean; @@ -113,10 +113,10 @@ export interface ServerOptions { socketOptions?: SocketOptions; reconnectTries?: number; reconnectInterval?: number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -export interface ReplSetOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html + export interface ReplSetOptions { ha?: boolean; haInterval?: number; replicaSet?: string; @@ -132,10 +132,10 @@ export interface ReplSetOptions { sslKey?: Buffer | string; sslPass?: Buffer | string; socketOptions?: SocketOptions; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Mongos.html -export interface MongosOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Mongos.html + export interface MongosOptions { ha?: boolean; haInterval?: number; // - specify the number of connections in the pool default:5 @@ -148,10 +148,10 @@ export interface MongosOptions { sslKey?: Buffer | string; sslPass?: Buffer | string; socketOptions?: SocketOptions; -} + } -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html -export declare class Db extends EventEmitter { + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html + export class Db extends EventEmitter { constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); serverConfig: Server | ReplSet | Mongos; @@ -164,8 +164,8 @@ export declare class Db extends EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser addUser(username: string, password: string, callback: MongoCallback): void; - addUser(username: string, password: string, options?: { w?: number | string, wtimeout?: number, j?: boolean, customData?: Object, roles?: Object[] }): Promise; - addUser(username: string, password: string, options: { w?: number | string, wtimeout?: number, j?: boolean, customData?: Object, roles?: Object[] }, callback: MongoCallback): void; + addUser(username: string, password: string, options?: DbAddUserOptions): Promise; + addUser(username: string, password: string, options: DbAddUserOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#admin admin(): Admin; // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#authenticate @@ -184,7 +184,7 @@ export declare class Db extends EventEmitter { collections(): Promise; collections(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#command - command(command: Object, callback?: MongoCallback): void; + command(command: Object, callback: MongoCallback): void; command(command: Object, options?: { readPreference: ReadPreference | string }): Promise; command(command: Object, options: { readPreference: ReadPreference | string }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection @@ -199,8 +199,8 @@ export declare class Db extends EventEmitter { db(dbName: string): Db; db(dbName: string, options: { noListener?: boolean, returnNonCachedInstance?: boolean }): Db; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropCollection - dropCollection(name: string): Promise; - dropCollection(name: string, callback: MongoCallback): void; + dropCollection(name: string): Promise; + dropCollection(name: string, callback: MongoCallback): void; // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase dropDatabase(): Promise; dropDatabase(callback: MongoCallback): void; @@ -219,7 +219,7 @@ export declare class Db extends EventEmitter { indexInformation(name: string, options?: { full?: boolean, readPreference?: ReadPreference | string }): Promise; indexInformation(name: string, options: { full?: boolean, readPreference?: ReadPreference | string }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#listCollections - listCollections(filter: Object, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; + listCollections(filter: { name?: string }, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#logout logout(callback: MongoCallback): void; logout(options?: { dbName?: string }): Promise; @@ -231,7 +231,7 @@ export declare class Db extends EventEmitter { removeUser(username: string, callback: MongoCallback): void; removeUser(username: string, options?: { w?: number | string, wtimeout?: number, j?: boolean }): Promise; removeUser(username: string, options: { w?: number | string, wtimeout?: number, j?: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection renameCollection(fromCollection: string, toCollection: string, callback: MongoCallback): void; renameCollection(fromCollection: string, toCollection: string, options?: { dropTarget?: boolean }): Promise; renameCollection(fromCollection: string, toCollection: string, options: { dropTarget?: boolean }, callback: MongoCallback): void; @@ -239,31 +239,42 @@ export declare class Db extends EventEmitter { stats(callback: MongoCallback): void; stats(options?: { scale?: number }): Promise; stats(options: { scale?: number }, callback: MongoCallback): void; -} + } -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html -export declare class Server extends EventEmitter { + + + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html + export class Server extends EventEmitter { constructor(host: string, port: number, options?: ServerOptions); connections(): Array; -} + } -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -export declare class ReplSet extends EventEmitter { + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html + export class ReplSet extends EventEmitter { constructor(servers: Array, options?: ReplSetOptions); connections(): Array; -} - -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -export declare class Mongos extends EventEmitter { + } + + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html + export class Mongos extends EventEmitter { constructor(servers: Array, options?: MongosOptions); connections(): Array; -} + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser + export interface DbAddUserOptions { + w?: string | number; + wtimeout?: number; + j?: boolean; + customData?: Object; + roles?: Object[]; + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection -export interface CollectionCreateOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection + export interface CollectionCreateOptions { w?: number | string; wtimeout?: number; j?: boolean; @@ -276,10 +287,10 @@ export interface CollectionCreateOptions { size?: number; max?: number; autoIndexId?: boolean; -} + } -// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection -export interface DbCollectionOptions { + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection + export interface DbCollectionOptions { w?: number | string; wtimeout?: number; j?: boolean; @@ -289,10 +300,10 @@ export interface DbCollectionOptions { serializeFunctions?: boolean; strict?: boolean; readConcern?: { level: Object }; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex -export interface IndexOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex + export interface IndexOptions { // The write concern. w?: number | string; // The write concern timeout. @@ -319,10 +330,10 @@ export interface IndexOptions { expireAfterSeconds?: number; // Override the auto generated index name (useful if the resulting name is larger than 128 bytes) name?: string; -} + } -// http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html -export interface Admin { + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html + export interface Admin { // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser addUser(username: string, password: string, callback: MongoCallback): void; addUser(username: string, password: string, options?: AddUserOptions): Promise; @@ -333,68 +344,68 @@ export interface Admin { authenticate(username: string, password: string, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#buildInfo buildInfo(): Promise; - buildInfo(callback: MongoCallback): void + buildInfo(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#command command(command: Object, callback: MongoCallback): void; command(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; command(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#listDatabases listDatabases(): Promise; - listDatabases(callback: MongoCallback): void + listDatabases(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#logout logout(): Promise; - logout(callback: MongoCallback): void + logout(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#ping ping(): Promise; - ping(callback: MongoCallback): void + ping(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo profilingInfo(): Promise; - profilingInfo(callback: MongoCallback): void + profilingInfo(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel profilingLevel(): Promise; - profilingLevel(callback: MongoCallback): void + profilingLevel(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser removeUser(username: string, callback: MongoCallback): void; removeUser(username: string, options?: FSyncOptions): Promise; removeUser(username: string, options: FSyncOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#replSetGetStatus replSetGetStatus(): Promise; - replSetGetStatus(callback: MongoCallback): void + replSetGetStatus(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverInfo serverInfo(): Promise; - serverInfo(callback: MongoCallback): void + serverInfo(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverStatus serverStatus(): Promise; - serverStatus(callback: MongoCallback): void + serverStatus(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#setProfilingLevel setProfilingLevel(level: string): Promise; - setProfilingLevel(level: string, callback: MongoCallback): void + setProfilingLevel(level: string, callback: MongoCallback): void; // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#validateCollection validateCollection(collectionNme: string, callback: MongoCallback): void; validateCollection(collectionNme: string, options?: Object): Promise; validateCollection(collectionNme: string, options: Object, callback: MongoCallback): void; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser -export interface AddUserOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser + export interface AddUserOptions { w?: number | string; wtimeout?: number; j?: boolean; fsync: boolean; customData?: Object; roles?: Object[] -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser -export interface FSyncOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser + export interface FSyncOptions { w?: number | string; wtimeout?: number; j?: boolean; fsync?: boolean -} + } -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/ObjectID.html -export declare class ObjectID { + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/ObjectID.html + export class ObjectID { constructor(s?: string | number); generationTime: number; @@ -417,10 +428,10 @@ export declare class ObjectID { getTimestamp(): Date; // Returns the ObjectID id as a 24 byte hex string representation toHexString(): string; -} + } -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Binary.html -export declare class Binary { + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Binary.html + export class Binary { constructor(buffer: Buffer, subType?: number); static SUBTYPE_BYTE_ARRAY: number; @@ -441,16 +452,16 @@ export declare class Binary { value(): string; // Writes a buffer or string to the binary write(buffer: Buffer | string, offset: number): void; -} -//http://mongodb.github.io/node-mongodb-native/2.1/api/Double.html -export declare class Double { + } + //http://mongodb.github.io/node-mongodb-native/2.1/api/Double.html + export class Double { constructor(value: number); valueOf(): number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Long.html -export declare class Long { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Long.html + export class Long { constructor(low: number, high: number); static MAX_VALUE: Long; @@ -495,16 +506,16 @@ export declare class Long { toNumber(): number; toString(radix?: number): string; xor(other: Long): Long; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/MaxKey.html -export declare class MaxKey { } + //http://mongodb.github.io/node-mongodb-native/2.1/api/MaxKey.html + export class MaxKey { } -//http://mongodb.github.io/node-mongodb-native/2.1/api/MinKey.html -export declare class MinKey { } + //http://mongodb.github.io/node-mongodb-native/2.1/api/MinKey.html + export class MinKey { } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Timestamp.html -export declare class Timestamp { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Timestamp.html + export class Timestamp { constructor(low: number, high: number); static MAX_VALUE: Timestamp; @@ -549,10 +560,10 @@ export declare class Timestamp { toNumber(): number; toString(radix?: number): string; xor(other: Timestamp): Timestamp; -} + } -// Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html -export interface Collection { + // Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html + export interface Collection { // Get the collection name. collectionName: string; // Get the full collection namespace. @@ -564,12 +575,12 @@ export interface Collection { // Get current index hint for collection. hint: any; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate - aggregate(pipeline: Object[], callback: MongoCallback): void | AggregationCursor; - aggregate(pipeline: Object[], options: CollectionAggrigationOptions, callback: MongoCallback): void | AggregationCursor; + aggregate(pipeline: Object[], callback: MongoCallback): AggregationCursor; + aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite - bulkWrite(operations: Object[], callback: MongoCallback): void - bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise - bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void + bulkWrite(operations: Object[], callback: MongoCallback): void; + bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; + bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count count(query: Object, callback: MongoCallback): void; count(query: Object, options?: MongoCountPreferences): Promise; @@ -590,9 +601,9 @@ export interface Collection { deleteOne(filter: Object, options?: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }): Promise; deleteOne(filter: Object, options: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#distinct - distinct(key: string, query: Object, callback: MongoCallback): void + distinct(key: string, query: Object, callback: MongoCallback): void; distinct(key: string, query: Object, options?: { readPreference?: ReadPreference | string }): Promise; - distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void + distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#drop drop(): Promise; drop(callback: MongoCallback): void; @@ -604,7 +615,16 @@ export interface Collection { dropIndexes(): Promise; dropIndexes(callback?: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#find - find(query: Object): Cursor; + find(query?: Object): Cursor; + /** @deprecated */ + find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne + /** @deprecated use find().limit(1).next(function(err, doc){}) */ + findOne(filter: Object, callback: MongoCallback): void; + /** @deprecated use find().limit(1).next(function(err, doc){}) */ + findOne(filter: Object, options?: FindOneOptions): Promise; + /** @deprecated use find().limit(1).next(function(err, doc){}) */ + findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete findOneAndDelete(filter: Object, callback: MongoCallback): void; findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise; @@ -640,17 +660,24 @@ export interface Collection { indexInformation(options?: { full: boolean }): Promise; indexInformation(options: { full: boolean }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp - initializeOrderedBulkOp(options: CollectionOptions): OrderedBulkOperation; + initializeOrderedBulkOp(options?: CollectionOptions): OrderedBulkOperation; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp - initializeUnorderedBulkOp(options: CollectionOptions): UnorderedBulkOperation; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany - insertMany(docs: Object[], callback: MongoCallback): void - insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; - insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void + initializeUnorderedBulkOp(options?: CollectionOptions): UnorderedBulkOperation; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - insertOne(docs: Object, callback: MongoCallback): void + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, callback: MongoCallback): void; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options?: CollectionInsertOneOptions): Promise; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany + insertMany(docs: Object[], callback: MongoCallback): void; + insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; + insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + insertOne(docs: Object, callback: MongoCallback): void; insertOne(docs: Object, options?: CollectionInsertOneOptions): Promise; - insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void + insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#isCapped isCapped(): Promise; isCapped(callback: MongoCallback): void; @@ -678,10 +705,22 @@ export interface Collection { replaceOne(filter: Object, doc: Object, callback: MongoCallback): void; replaceOne(filter: Object, doc: Object, options?: ReplaceOneOptions): Promise; replaceOne(filter: Object, doc: Object, options: ReplaceOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#save + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, callback: MongoCallback): void; + save(doc: Object, options?: CollectionOptions): Promise; + save(doc: Object, options: CollectionOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#stats stats(callback: MongoCallback): void; stats(options?: { scale: number }): Promise; stats(options: { scale: number }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#update + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, callback: MongoCallback): void; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options?: ReplaceOneOptions & { multi?: boolean }): Promise; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options: ReplaceOneOptions & { multi?: boolean }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateMany updateMany(filter: Object, update: Object, callback: MongoCallback): void; updateMany(filter: Object, update: Object, options?: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }): Promise; @@ -690,10 +729,11 @@ export interface Collection { updateOne(filter: Object, update: Object, callback: MongoCallback): void; updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): void; -} + } -// Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ -export interface CollStats { + // Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ + //TODO complete this + export interface CollStats { // Namespace. ns: string; // Number of documents. @@ -717,17 +757,18 @@ export interface CollStats { totalIndexSize: number; // Size of specific indexes in bytes. indexSizes: { - _id_: number; - username: number; + _id_: number; + username: number; }; capped: boolean; maxSize: boolean; wiredTiger: any; indexDetails: any; -} + ok: number; + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate -export interface CollectionAggrigationOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate + export interface CollectionAggregationOptions { readPreference?: ReadPreference | string; // Return the query as cursor, on 2.6 > it returns as a real cursor // on pre 2.6 it returns as an emulated cursor. @@ -742,10 +783,10 @@ export interface CollectionAggrigationOptions { maxTimeMS?: boolean; // Allow driver to bypass schema validation in MongoDB 3.2 or higher. bypassDocumentValidation?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany -export interface CollectionInsertManyOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany + export interface CollectionInsertManyOptions { // The write concern. w?: number | string; // The write concern timeout. @@ -756,10 +797,10 @@ export interface CollectionInsertManyOptions { serializeFunctions?: boolean; //Force server to assign _id values instead of driver. forceServerObjectId?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite -export interface CollectionBluckWriteOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite + export interface CollectionBluckWriteOptions { // The write concern. w?: number | string; // The write concern timeout. @@ -772,10 +813,10 @@ export interface CollectionBluckWriteOptions { ordered?: boolean; // Allow driver to bypass schema validation in MongoDB 3.2 or higher. bypassDocumentValidation?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult -export interface BulkWriteOpResultObject { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult + export interface BulkWriteOpResultObject { insertedCount?: number; matchedCount?: number; modifiedCount?: number; @@ -784,10 +825,10 @@ export interface BulkWriteOpResultObject { insertedIds?: any; upsertedIds?: any; result?: any; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count -export interface MongoCountPreferences { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count + export interface MongoCountPreferences { // The limit of documents to count. limit?: number; // The number of documents to skip for the count. @@ -796,52 +837,52 @@ export interface MongoCountPreferences { hint?: string; // The preferred read preference readPreference?: ReadPreference | string; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult -export interface DeleteWriteOpResultObject { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult + export interface DeleteWriteOpResultObject { //The raw result returned from MongoDB, field will vary depending on server version. result: { - //Is 1 if the command executed correctly. - ok?: number; - //The total count of documents deleted. - n?: number; + //Is 1 if the command executed correctly. + ok?: number; + //The total count of documents deleted. + n?: number; } //The connection object used for the operation. connection?: any; //The number of documents deleted. deletedCount?: number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult -export interface FindAndModifyWriteOpResultObject { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult + export interface FindAndModifyWriteOpResultObject { //Document returned from findAndModify command. value?: any; //The raw lastErrorObject returned from the command. lastErrorObject?: any; //Is 1 if the command executed correctly. ok?: number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace -export interface FindOneAndReplaceOption { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace + export interface FindOneAndReplaceOption { projection?: Object; sort?: Object; maxTimeMS?: number; upsert?: boolean; returnOriginal?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch -export interface GeoHaystackSearchOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch + export interface GeoHaystackSearchOptions { readPreference?: ReadPreference | string; maxDistance?: number; search?: Object; limit?: number; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear -export interface GeoNearOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear + export interface GeoNearOptions { readPreference?: ReadPreference | string; num?: number; minDistance?: number; @@ -851,41 +892,41 @@ export interface GeoNearOptions { spherical?: boolean; uniqueDocs?: boolean; includeLocs?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html -export declare class Code { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html + export class Code { constructor(code: string | Function, scope?: Object) code: string | Function; scope: any; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany -export interface CollectionOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany + export interface CollectionOptions { //The write concern. w?: number | string; //The write concern timeout. wtimeout?: number; //Specify a journal write concern. j?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html -export interface OrderedBulkOperation { + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html + export interface OrderedBulkOperation { length: number; //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute execute(callback: MongoCallback): void; - execute(options: FSyncOptions): Promise; + execute(options?: FSyncOptions): Promise; execute(options: FSyncOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#find find(selector: Object): FindOperatorsOrdered; //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert insert(doc: Object): OrderedBulkOperation; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html -export interface BulkWriteResult { - ok: boolean; + //http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html + export interface BulkWriteResult { + ok: number; nInserted: number; nUpdated: number; nUpserted: number; @@ -902,50 +943,50 @@ export interface BulkWriteResult { getWriteErrorCount(): number; getWriteErrors(): Array; hasWriteErrors(): boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html -export interface WriteError { + //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html + export interface WriteError { //Write concern error code. code: number; //Write concern error original bulk operation index. index: number; //Write concern error message. errmsg: string; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html -export interface WriteConcernError { + //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html + export interface WriteConcernError { //Write concern error code. code: number; //Write concern error message. errmsg: string; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html -export interface FindOperatorsOrdered { + //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html + export interface FindOperatorsOrdered { delete(): OrderedBulkOperation; deleteOne(): OrderedBulkOperation; replaceOne(doc: Object): OrderedBulkOperation; update(doc: Object): OrderedBulkOperation; updateOne(doc: Object): OrderedBulkOperation; upsert(): FindOperatorsOrdered; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html -export interface UnorderedBulkOperation { + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html + export interface UnorderedBulkOperation { //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute execute(callback: MongoCallback): void; - execute(options: FSyncOptions): Promise; + execute(options?: FSyncOptions): Promise; execute(options: FSyncOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#find find(selector: Object): FindOperatorsUnordered; //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert insert(doc: Object): UnorderedBulkOperation; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html -export interface FindOperatorsUnordered { + //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html + export interface FindOperatorsUnordered { length: number; remove(): UnorderedBulkOperation; removeOne(): UnorderedBulkOperation; @@ -953,19 +994,43 @@ export interface FindOperatorsUnordered { update(doc: Object): UnorderedBulkOperation; updateOne(doc: Object): UnorderedBulkOperation; upsert(): FindOperatorsUnordered; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult -export interface InsertWriteOpResult { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne + export interface FindOneOptions { + limit?: number, + sort?: Array | Object, + fields?: Object, + skip?: number, + hint?: Object, + explain?: boolean, + snapshot?: boolean, + timeout?: boolean, + tailable?: boolean, + batchSize?: number, + returnKey?: boolean, + maxScan?: number, + min?: number, + max?: number, + showDiskLoc?: boolean, + comment?: string, + raw?: boolean, + readPreference?: ReadPreference | string, + partial?: boolean, + maxTimeMs?: number + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult + export interface InsertWriteOpResult { insertedCount: number; ops: Array; insertedIds: Array; connection: any; result: { ok: number, n: number } -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne -export interface CollectionInsertOneOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + export interface CollectionInsertOneOptions { // The write concern. w?: number | string; // The write concern timeout. @@ -978,46 +1043,46 @@ export interface CollectionInsertOneOptions { forceServerObjectId?: boolean; //Allow driver to bypass schema validation in MongoDB 3.2 or higher. bypassDocumentValidation?: boolean -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult -export interface InsertOneWriteOpResult { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult + export interface InsertOneWriteOpResult { insertedCount: number; ops: Array; insertedId: ObjectID; connection: any; result: { ok: number, n: number } -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan -export interface ParallelCollectionScanOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan + export interface ParallelCollectionScanOptions { readPreference?: ReadPreference | string; batchSize?: number; numCursors?: number; raw?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne -export interface ReplaceOneOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne + export interface ReplaceOneOptions { upsert?: boolean; w?: number | string; wtimeout?: number; j?: boolean; bypassDocumentValidation?: boolean; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult -export interface UpdateWriteOpResult { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult + export interface UpdateWriteOpResult { result: { ok: number, n: number, nModified: number }; connection: any; matchedCount: number; modifiedCount: number; upsertedCount: number; upsertedId: { _id: ObjectID }; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce -export interface MapReduceOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce + export interface MapReduceOptions { readPreference?: ReadPreference | string; out?: Object; query?: Object; @@ -1029,11 +1094,17 @@ export interface MapReduceOptions { jsMode?: boolean; verbose?: boolean; bypassDocumentValidation?: boolean -} + } - -//http://mongodb.github.io/node-mongodb-native/2.1/api/external-Readable.html -export interface Readable { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult + export interface WriteOpResult { + ops: Array; + connection: any; + result: any; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/external-Readable.html + export interface Readable { pause(): void; pipe(destination: Writable, options?: Object): void; read(size: number): string | Buffer | void; @@ -1042,16 +1113,16 @@ export interface Readable { unpipe(destination?: Writable): void; unshift(stream: Buffer | string): void; wrap(stream: Stream): void; -} + } -export interface Writable { } -export interface Stream { } + export interface Writable { } + export interface Stream { } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback -export type CursorResult = any | void | boolean; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback + export type CursorResult = any | void | boolean; -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html -export interface Cursor extends Readable, NodeJS.EventEmitter { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html + export interface Cursor extends Readable, NodeJS.EventEmitter { sortValue: string; timeout: boolean; @@ -1143,32 +1214,32 @@ export interface Cursor extends Readable, NodeJS.EventEmitter { unshift(stream: Buffer | string): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#wrap wrap(stream: Stream): void; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count -export interface CursorCommentOptions { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count + export interface CursorCommentOptions { skip?: number; limit?: number; maxTimeMS?: number; hint?: string; readPreference?: ReadPreference | string; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback -export interface IteratorCallback { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback + export interface IteratorCallback { (doc: any): void; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback -export interface EndCallback { + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback + export interface EndCallback { (error: MongoError): void; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback -export type AggregationCursorResult = any | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback + export type AggregationCursorResult = any | void; -//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html -export interface AggregationCursor extends Readable, NodeJS.EventEmitter { + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html + export interface AggregationCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize batchSize(value: number): AggregationCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone @@ -1177,7 +1248,7 @@ export interface AggregationCursor extends Readable, NodeJS.EventEmitter { close(): Promise; close(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#each - each(callback: MongoCallback): void + each(callback: MongoCallback): void; // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#explain explain(): Promise; explain(callback: MongoCallback): void; @@ -1219,8 +1290,8 @@ export interface AggregationCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#sort sort(document: Object): AggregationCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; + toArray(): Promise; + toArray(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unpipe unpipe(destination?: Writable): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unshift @@ -1229,10 +1300,10 @@ export interface AggregationCursor extends Readable, NodeJS.EventEmitter { unwind(field: string): AggregationCursor; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#wrap wrap(stream: Stream): void; -} + } -//http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html -export interface CommandCursor extends Readable, NodeJS.EventEmitter { + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html + export interface CommandCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize batchSize(value: number): CommandCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone @@ -1241,7 +1312,7 @@ export interface CommandCursor extends Readable, NodeJS.EventEmitter { close(): Promise; close(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#each - each(callback: MongoCallback): void + each(callback: MongoCallback): void; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#isClosed isClosed(): boolean; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#maxTimeMS @@ -1264,12 +1335,13 @@ export interface CommandCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#setReadPreference setReadPreference(readPreference: string | ReadPreference): CommandCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; + toArray(): Promise; + toArray(callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unpipe unpipe(destination?: Writable): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unshift unshift(stream: Buffer | string): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#wrap wrap(stream: Stream): void; + } } diff --git a/mongodb/tsconfig.json b/mongodb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mongodb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mongoose-auto-increment/tsconfig.json b/mongoose-auto-increment/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mongoose-auto-increment/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mongoose-deep-populate/tsconfig.json b/mongoose-deep-populate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mongoose-deep-populate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mongoose-mock/tsconfig.json b/mongoose-mock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mongoose-mock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mongoose/tsconfig.json b/mongoose/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mongoose/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/morgan/tsconfig.json b/morgan/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/morgan/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mousetrap/tsconfig.json b/mousetrap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mousetrap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/moviedb/tsconfig.json b/moviedb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/moviedb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mpromise/tsconfig.json b/mpromise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mpromise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mqtt/tsconfig.json b/mqtt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mqtt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ms/tsconfig.json b/ms/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ms/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/msgpack/tsconfig.json b/msgpack/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/msgpack/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/msnodesql/tsconfig.json b/msnodesql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/msnodesql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/msportalfx-test/tsconfig.json b/msportalfx-test/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/msportalfx-test/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mssql/tsconfig.json b/mssql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mssql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mu2/tsconfig.json b/mu2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mu2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/multer/tsconfig.json b/multer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/multer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/multiparty/tsconfig.json b/multiparty/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/multiparty/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/multiplexjs/tsconfig.json b/multiplexjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/multiplexjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mustache/tsconfig.json b/mustache/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mustache/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mysql/tsconfig.json b/mysql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mysql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/mz/tsconfig.json b/mz/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/mz/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nanoajax/tsconfig.json b/nanoajax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nanoajax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/natural-sort/tsconfig.json b/natural-sort/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/natural-sort/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/natural/tsconfig.json b/natural/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/natural/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/navigation/tsconfig.json b/navigation/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/navigation/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nconf/tsconfig.json b/nconf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nconf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ncp/tsconfig.json b/ncp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ncp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nedb/tsconfig.json b/nedb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nedb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/needle/tsconfig.json b/needle/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/needle/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/netmask/tsconfig.json b/netmask/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/netmask/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nexpect/tsconfig.json b/nexpect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nexpect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-command/tsconfig.json b/ng-command/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-command/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-cordova/tsconfig.json b/ng-cordova/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-cordova/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-dialog/ng-dialog.d.ts b/ng-dialog/ng-dialog.d.ts index f522c3185b..fc959102bb 100644 --- a/ng-dialog/ng-dialog.d.ts +++ b/ng-dialog/ng-dialog.d.ts @@ -5,6 +5,18 @@ /// +declare module "ng-dialog" { + export type IDialogService = angular.dialog.IDialogService; + export type IDialogOpenResult = angular.dialog.IDialogOpenResult; + export type IDialogClosePromise = angular.dialog.IDialogClosePromise; + export type IDialogProvider = angular.dialog.IDialogProvider; + export type IDialogScope = angular.dialog.IDialogScope; + export type IDialogConfirmScope = angular.dialog.IDialogConfirmScope; + export type IDialogOptions = angular.dialog.IDialogOptions; + export type IDialogOpenOptions = angular.dialog.IDialogOpenOptions; + export type IDialogOpenConfirmOptions = angular.dialog.IDialogOpenConfirmOptions; +} + declare namespace angular.dialog { interface IDialogService { diff --git a/ng-dialog/tsconfig.json b/ng-dialog/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-dialog/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-facebook/tsconfig.json b/ng-facebook/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-facebook/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-file-upload/tsconfig.json b/ng-file-upload/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-file-upload/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-flow/tsconfig.json b/ng-flow/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-flow/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-grid/tsconfig.json b/ng-grid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-grid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-i18next/tsconfig.json b/ng-i18next/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-i18next/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-notify/tsconfig.json b/ng-notify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-notify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-stomp/tsconfig.json b/ng-stomp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-stomp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ng-table/tsconfig.json b/ng-table/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ng-table/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngbootbox/tsconfig.json b/ngbootbox/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngbootbox/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngkookies/tsconfig.json b/ngkookies/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngkookies/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngprogress-lite/tsconfig.json b/ngprogress-lite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngprogress-lite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngprogress/tsconfig.json b/ngprogress/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngprogress/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngstorage/tsconfig.json b/ngstorage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngstorage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngtoaster/tsconfig.json b/ngtoaster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngtoaster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ngwysiwyg/tsconfig.json b/ngwysiwyg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ngwysiwyg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nightmare/tsconfig.json b/nightmare/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nightmare/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/noVNC/tsconfig.json b/noVNC/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/noVNC/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/noble/tsconfig.json b/noble/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/noble/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nock/nock.d.ts b/nock/nock.d.ts index 63e3bef0b6..3319456a5e 100644 --- a/nock/nock.d.ts +++ b/nock/nock.d.ts @@ -5,100 +5,121 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/nock.d.ts +declare module "nock" { + export = nock; -export = nock; + function nock (host: string, options?: nock.Options): nock.Scope; -declare function nock(host: string, options?: nock.Options): nock.Scope; + namespace nock { + export function cleanAll(): void; -declare namespace nock { - export function cleanAll(): void; + export function disableNetConnect(): void; + export function enableNetConnect(): void; + export function enableNetConnect(regex: RegExp): void; + export function enableNetConnect(domain: string): void; - export function disableNetConnect(): void; - export function enableNetConnect(): void; - export function enableNetConnect(regex: RegExp): void; - export function enableNetConnect(domain: string): void; + export var recorder: Recorder; - export var recorder: Recorder; + export interface Scope { + get(path: string, data?: string): Scope; + get(path: RegExp, data?: string): Scope; - export interface Scope { - get(path: string, data?: string): Scope; + post(path: string, data?: string): Scope; + post(path: string, data?: Object): Scope; + post(path: string, regex?: RegExp): Scope; + post(path: RegExp, data?: string): Scope; + post(path: RegExp, data?: Object): Scope; + post(path: RegExp, regex?: RegExp): Scope; - post(path: string, data?: string): Scope; - post(path: string, data?: Object): Scope; - post(path: string, regex?: RegExp): Scope; + patch(path: string, data?: string): Scope; + patch(path: string, data?: Object): Scope; + patch(path: string, regex?: RegExp): Scope; + patch(path: RegExp, data?: string): Scope; + patch(path: RegExp, data?: Object): Scope; + patch(path: RegExp, regex?: RegExp): Scope; - patch(path: string, data?: string): Scope; - patch(path: string, data?: Object): Scope; - patch(path: string, regex?: RegExp): Scope; + put(path: string, data?: string): Scope; + put(path: string, data?: Object): Scope; + put(path: string, regex?: RegExp): Scope; + put(path: RegExp, data?: string): Scope; + put(path: RegExp, data?: Object): Scope; + put(path: RegExp, regex?: RegExp): Scope; - put(path: string, data?: string): Scope; - put(path: string, data?: Object): Scope; - put(path: string, regex?: RegExp): Scope; + head(path: string): Scope; + head(path: RegExp): Scope; - head(path: string): Scope; + delete(path: string, data?: string): Scope; + delete(path: string, data?: Object): Scope; + delete(path: string, regex?: RegExp): Scope; + delete(path: RegExp, data?: string): Scope; + delete(path: RegExp, data?: Object): Scope; + delete(path: RegExp, regex?: RegExp): Scope; - delete(path: string, data?: string): Scope; - delete(path: string, data?: Object): Scope; - delete(path: string, regex?: RegExp): Scope; + merge(path: string, data?: string): Scope; + merge(path: string, data?: Object): Scope; + merge(path: string, regex?: RegExp): Scope; + merge(path: RegExp, data?: string): Scope; + merge(path: RegExp, data?: Object): Scope; + merge(path: RegExp, regex?: RegExp): Scope; - merge(path: string, data?: string): Scope; - merge(path: string, data?: Object): Scope; - merge(path: string, regex?: RegExp): Scope; + query(params: any): Scope; + query(acceptAnyParams: boolean): Scope; - query(params: any): Scope; - query(acceptAnyParams: boolean): Scope; + intercept(path: string, verb: string, body?: string, options?: any): Scope; + intercept(path: string, verb: string, body?: Object, options?: any): Scope; + intercept(path: string, verb: string, body?: RegExp, options?: any): Scope; + intercept(path: RegExp, verb: string, body?: string, options?: any): Scope; + intercept(path: RegExp, verb: string, body?: Object, options?: any): Scope; + intercept(path: RegExp, verb: string, body?: RegExp, options?: any): Scope; - intercept(path: string, verb: string, body?: string, options?: any): Scope; - intercept(path: string, verb: string, body?: Object, options?: any): Scope; - intercept(path: string, verb: string, body?: RegExp, options?: any): Scope; + reply(responseCode: number, body?: string, headers?: Object): Scope; + reply(responseCode: number, body?: Object, headers?: Object): Scope; + reply(responseCode: number, callback: (uri: string, body: string) => string, headers?: Object): Scope; + replyWithFile(responseCode: number, fileName: string): Scope; + replyWithError(errorMessage: string): Scope; - reply(responseCode: number, body?: string, headers?: Object): Scope; - reply(responseCode: number, body?: Object, headers?: Object): Scope; - reply(responseCode: number, callback: (uri: string, body: string) => string, headers?: Object): Scope; - replyWithFile(responseCode: number, fileName: string): Scope; - replyWithError(errorMessage: string): Scope; + defaultReplyHeaders(headers: Object): Scope; - defaultReplyHeaders(headers: Object): Scope; + matchHeader(name: string, value: string): Scope; + matchHeader(name: string, regex: RegExp): Scope; + matchHeader(name: string, fn: (value: string) => boolean): Scope; - matchHeader(name: string, value: string): Scope; - matchHeader(name: string, regex: RegExp): Scope; - matchHeader(name: string, fn: (value: string) => boolean): Scope; + filteringPath(regex: RegExp, replace: string): Scope; + filteringPath(fn: (path: string) => string): Scope; + filteringRequestBody(regex: RegExp, replace: string): Scope; + filteringRequestBody(fn: (path: string) => string): Scope; - filteringPath(regex: RegExp, replace: string): Scope; - filteringPath(fn: (path: string) => string): Scope; - filteringRequestBody(regex: RegExp, replace: string): Scope; - filteringRequestBody(fn: (path: string) => string): Scope; + persist(): Scope; + log(out: () => void): Scope; - persist(): Scope; - log(out: () => void): Scope; + delay(timeMs: number): Scope; + delayConnection(timeMs: number): Scope; - delay(timeMs: number): Scope; - delayConnection(timeMs: number): Scope; + times(repeats: number): Scope; + once(): Scope; + twice(): Scope; + thrice(): Scope; - times(repeats: number): Scope; - once(): Scope; - twice(): Scope; - thrice(): Scope; + done(): void; + isDone(): boolean; + restore(): void; + pendingMocks(): Object[]; + } - done(): void; - isDone(): boolean; - restore(): void; - pendingMocks(): Object[]; - } + export interface Recorder { + rec(capture?: boolean): void; + rec(options?: RecorderOptions): void; + play(): any[]; + } - export interface Recorder { - rec(capture?: boolean): void; - rec(options?: RecorderOptions): void; - play(): any[]; - } + export interface Options { + allowUnmocked?: boolean; + } - export interface Options { - allowUnmocked?: boolean; - } - - export interface RecorderOptions { - dont_print?: boolean; - output_objects?: boolean; - enable_reqheaders_recording?: boolean; - } + export interface RecorderOptions { + dont_print?: boolean; + output_objects?: boolean; + enable_reqheaders_recording?: boolean; + } + } } diff --git a/nock/tsconfig.json b/nock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-array-ext/tsconfig.json b/node-array-ext/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-array-ext/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-cache/tsconfig.json b/node-cache/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-cache/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-calendar/tsconfig.json b/node-calendar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-calendar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-config-manager/tsconfig.json b/node-config-manager/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-config-manager/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-dir/tsconfig.json b/node-dir/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-dir/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-fibers/tsconfig.json b/node-fibers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-fibers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-form/tsconfig.json b/node-form/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-form/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-gcm/tsconfig.json b/node-gcm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-gcm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-getopt/tsconfig.json b/node-getopt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-getopt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-int64/tsconfig.json b/node-int64/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-int64/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-jsfl-runner/tsconfig.json b/node-jsfl-runner/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-jsfl-runner/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-mysql-wrapper/tsconfig.json b/node-mysql-wrapper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-mysql-wrapper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-notifier/tsconfig.json b/node-notifier/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-notifier/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-persist/tsconfig.json b/node-persist/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-persist/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-polyglot/tsconfig.json b/node-polyglot/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-polyglot/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-sass-middleware/tsconfig.json b/node-sass-middleware/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-sass-middleware/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-sass/tsconfig.json b/node-sass/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-sass/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-schedule/tsconfig.json b/node-schedule/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-schedule/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-slack/tsconfig.json b/node-slack/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-slack/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-snap7/tsconfig.json b/node-snap7/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-snap7/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-uuid/tsconfig.json b/node-uuid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-uuid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node-validator/tsconfig.json b/node-validator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node-validator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node/node-tests.ts b/node/node-tests.ts index 0cc0b5de6c..64f7a5bb29 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -15,6 +15,7 @@ import * as querystring from "querystring"; import * as path from "path"; import * as readline from "readline"; import * as childProcess from "child_process"; +import * as cluster from "cluster"; import * as os from "os"; import * as vm from "vm"; // Specifically test buffer module regression. @@ -643,6 +644,18 @@ namespace readline_tests { childProcess.exec("echo test"); childProcess.spawnSync("echo test"); +////////////////////////////////////////////////////////////////////// +/// cluster tests: https://nodejs.org/api/cluster.html /// +////////////////////////////////////////////////////////////////////// + +cluster.fork(); +Object.keys(cluster.workers).forEach(key => { + const worker = cluster.workers[key]; + if (worker.isDead()) { + console.log('worker %d is dead', worker.process.pid); + } +}); + //////////////////////////////////////////////////// /// os tests : https://nodejs.org/api/os.html //////////////////////////////////////////////////// diff --git a/node/node.d.ts b/node/node.d.ts index 1b2da31c94..6f115759ff 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -679,6 +679,8 @@ declare module "cluster" { kill(signal?: string): void; destroy(signal?: string): void; disconnect(): void; + isConnected(): boolean; + isDead(): boolean; } export var settings: ClusterSettings; @@ -688,7 +690,9 @@ declare module "cluster" { export function fork(env?: any): Worker; export function disconnect(callback?: Function): void; export var worker: Worker; - export var workers: Worker[]; + export var workers: { + [index: string]: Worker + }; // Event emitter export function addListener(event: string, listener: Function): void; diff --git a/node/tsconfig.json b/node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/node_redis/tsconfig.json b/node_redis/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/node_redis/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodemailer-direct-transport/tsconfig.json b/nodemailer-direct-transport/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodemailer-direct-transport/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodemailer-pickup-transport/tsconfig.json b/nodemailer-pickup-transport/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodemailer-pickup-transport/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodemailer-smtp-pool/tsconfig.json b/nodemailer-smtp-pool/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodemailer-smtp-pool/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodemailer-smtp-transport/tsconfig.json b/nodemailer-smtp-transport/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodemailer-smtp-transport/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodemailer/tsconfig.json b/nodemailer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodemailer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nodeunit/tsconfig.json b/nodeunit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nodeunit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/noisejs/tsconfig.json b/noisejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/noisejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nomnom/tsconfig.json b/nomnom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nomnom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nopt/tsconfig.json b/nopt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nopt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/normalizr/normalizr-tests.ts b/normalizr/normalizr-tests.ts new file mode 100644 index 0000000000..0da5a8aa0b --- /dev/null +++ b/normalizr/normalizr-tests.ts @@ -0,0 +1,270 @@ +/// + +import { normalize, Schema, arrayOf, unionOf, valuesOf } from 'normalizr'; + +// First, define a schema for our entities: + +const article1 = new Schema('articles'); +const user1 = new Schema('users'); + +// Then we define nesting rules: + +article1.define({ + author: user1, + contributors: arrayOf(user1) +}); + +// Now we can use this schema in our API response handlers: + +const ServerActionCreators = { + // These are two different XHR endpoints with different response schemas. + // We can use the schema objects defined earlier to express both of them: + + receiveOneArticle(response: any) { + // Here, the response is an object containing data about one article. + // Passing the article schema as second parameter to normalize() lets it + // correctly traverse the response tree and gather all entities: + + // BEFORE: + // { + // id: 1, + // title: 'Some Article', + // author: { + // id: 7, + // name: 'Dan' + // }, + // contributors: [{ + // id: 10, + // name: 'Abe' + // }, { + // id: 15, + // name: 'Fred' + // }] + // } + // + // AFTER: + // { + // result: 1, // <--- Note object is referenced by ID + // entities: { + // articles: { + // 1: { + // author: 7, // <--- Same happens for references to + // contributors: [10, 15] // <--- other entities in the schema + // ...} + // }, + // users: { + // 7: { ... }, + // 10: { ... }, + // 15: { ... } + // } + // } + // } + + response = normalize(response, article1); + }, + + receiveAllArticles(response: any) { + // Here, the response is an object with the key 'articles' referencing + // an array of article objects. Passing { articles: arrayOf(article) } as + // second parameter to normalize() lets it correctly traverse the response + // tree and gather all entities: + + // BEFORE: + // { + // articles: [{ + // id: 1, + // title: 'Some Article', + // author: { + // id: 7, + // name: 'Dan' + // }, + // ... + // }, + // ... + // ] + // } + // + // AFTER: + // { + // result: { + // articles: [1, 2, ...] // <--- Note how object array turned into ID array + // }, + // entities: { + // articles: { + // 1: { author: 7, ... }, // <--- Same happens for references to other entities in the schema + // 2: { ... }, + // ... + // }, + // users: { + // 7: { ... }, + // .. + // } + // } + // } + + response = normalize(response, { + articles: arrayOf(article1) + }); + } +} + +// new Schema(key, [options]) + +const article2 = new Schema('articles'); + +// You can use a custom id attribute +const article3 = new Schema('articles', { idAttribute: 'slug' }); + +// Or you can specify a function to infer it +function generateSlug(entity: any) { /* ... */ } +const article4 = new Schema('articles', { idAttribute: generateSlug }); + +// Schema.prototype.define(nestedSchema) + +const article5 = new Schema('articles'); +const user5 = new Schema('users'); + +article5.define({ + author: user5 +}); + +// Schema.prototype.getKey() + +const article6 = new Schema('articles'); + +article6.getKey(); +// articles + +// Schema.prototype.getIdAttribute() + +const article7 = new Schema('articles'); +const slugArticle7 = new Schema('articles', { idAttribute: 'slug' }); + +article7.getIdAttribute(); +// id +slugArticle7.getIdAttribute(); +// slug + +// arrayOf(schema, [options]) + +const article8 = new Schema('articles'); +const user8 = new Schema('users'); + +article8.define({ + author: user8, + contributors: arrayOf(user8) +}); + +const article9 = new Schema('articles'); +const image9 = new Schema('images'); +const video9 = new Schema('videos'); +const asset9 = { + images: image9, + videos: video9 +}; + +// You can specify the name of the attribute that determines the schema +article9.define({ + assets: arrayOf(asset9, { schemaAttribute: 'type' }) +}); + +// Or you can specify a function to infer it +function inferSchema9(entity: any) { /* ... */ } +article9.define({ + assets: arrayOf(asset9, { schemaAttribute: inferSchema9 }) +}); + +// valuesOf(schema, [options]) + +const article10 = new Schema('articles'); +const user10 = new Schema('users'); + +article10.define({ + collaboratorsByRole: valuesOf(user10) +}); + +const article11 = new Schema('articles'); +const user11 = new Schema('users'); +const group11 = new Schema('groups'); +const collaborator11 = { + users: user11, + groups: group11 +}; + +// You can specify the name of the attribute that determines the schema +article11.define({ + collaboratorsByRole: valuesOf(collaborator11, { schemaAttribute: 'type' }) +}); + +// Or you can specify a function to infer it +function inferSchema11(entity: any) { /* ... */ } +article11.define({ + collaboratorsByRole: valuesOf(collaborator11, { schemaAttribute: inferSchema }) +}); + +// unionOf(schemaMap, [options]) + +const group12 = new Schema('groups'); +const user12 = new Schema('users'); + +// a member can be either a user or a group +const member12 = { + users: user12, + groups: group12 +}; + +// You can specify the name of the attribute that determines the schema +group12.define({ + owner: unionOf(member12, { schemaAttribute: 'type' }) +}); + +// Or you can specify a function to infer it +function inferSchema(entity: any) { /* ... */ } +group12.define({ + creator: unionOf(member12, { schemaAttribute: inferSchema }) +}); + +const group13 = new Schema('groups'); +const user13 = new Schema('users'); + +const member13 = unionOf({ + users: user13, + groups: group13 +}, { schemaAttribute: 'type' }); + +group13.define({ + owner: member13, + members: arrayOf(member13), + relationships: valuesOf(member13) +}); + +// normalize(obj, schema, [options]) + +const article14 = new Schema('articles'); +const user14 = new Schema('users'); + +article14.define({ + author: user14, + contributors: arrayOf(user14), + meta: { + likes: arrayOf({ + user: user14 + }) + } +}); + +// ... + +// Normalize one article object +const json = { id: 1, author: /*...*/{} }; +const normalized1 = normalize(json, article14); + +// Normalize an array of article objects +const arr = [{ id: 1, author: /*...*/{} }/*, ...*/] +const normalized2 = normalize(arr, arrayOf(article14)); + +// Normalize an array of article objects, referenced by an object key: +const wrappedArr = { articles: [{ id: 1, author: /*...*/{} }/*, ...*/] } +const normalized3 = normalize(wrappedArr, { + articles: arrayOf(article14) +}); diff --git a/normalizr/normalizr.d.ts b/normalizr/normalizr.d.ts new file mode 100644 index 0000000000..77d2f86648 --- /dev/null +++ b/normalizr/normalizr.d.ts @@ -0,0 +1,111 @@ +// Type definitions for normalizr 2.0.1 +// Project: https://github.com/gaearon/normalizr/ +// Definitions by: Markus Peloso +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "normalizr" { + export = Normalizr; +} + +declare namespace Normalizr { + type AttributeSetting = string | ((entity: any) => any); + + type SchemaClass = Schema | ArraySchema | UnionSchema; + + type SchemaObject = { [property: string]: SchemaClass | SchemaObject }; + + type SchemaType = SchemaClass | SchemaObject | Object; + + export class Schema { + /** + * Schema lets you define a type of entity returned by your API. + * This should correspond to model in your server code. + * @param key The key parameter lets you specify the name of the dictionary for this kind of entity. + * @param options + */ + constructor(key: string, options?: { idAttribute: AttributeSetting; }); + + /** + * Lets you specify relationships between different entities. + * @param nestedSchema + */ + define(nestedSchema: SchemaObject): void; + + /** + * Returns the key of the schema. + */ + getKey(): string; + + /** + * Returns the idAttribute of the schema. + */ + getIdAttribute(): AttributeSetting; + } + + interface UnionSchema { + getItemSchema(): SchemaType; + getSchemaKey(item: any): string; + } + + interface ArraySchema { + getItemSchema(): SchemaType; + } + + /** + * Describes an array of the schema passed as argument. + * @param schema + * @param options + */ + export function arrayOf(schema: SchemaType, options?: { + /** + * If the array contains entities with different schemas, you can use the schemaAttribute option to specify which schema to use for each entity. + */ + schemaAttribute: AttributeSetting + }): ArraySchema; + + /** + * Describes a map whose values follow the schema passed as argument. + * @param schema + * @param options + */ + export function valuesOf(schema: SchemaType, options?: { + /** + * If the map contains entities with different schemas, you can use the schemaAttribute option to specify which schema to use for each entity. + */ + schemaAttribute: AttributeSetting + }): ArraySchema; + + /** + * Describe a schema which is a union of multiple schemas. This is useful if you need the polymorphic behavior provided by arrayOf or valuesOf but for non-collection fields. + * @param schemaMap + * @param options + */ + export function unionOf(schemaMap: SchemaType, options?: { + /** + * Use the required schemaAttribute option to specify which schema to use for each entity. + */ + schemaAttribute: AttributeSetting + }): UnionSchema; + + /** + * Normalizes object according to schema. + * Passed schema should be a nested object reflecting the structure of API response. + * @param obj + * @param schema + * @param options + */ + export function normalize(obj: any | Array, schema: SchemaType, options?: { + /** + * This is useful if your backend emits additional fields, such as separate ID fields, you'd like to delete in the normalized entity. + */ + assignEntity?: (normalized: any, key: string, entity: any) => any; + + /** + * You can use this to resolve conflicts when merging entities with the same key. + */ + mergeIntoEntity?: (stored: any, normalized: any, entityKey: string) => any; + }): { + entites: any; + result: any; + }; +} diff --git a/normalizr/tsconfig.json b/normalizr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/normalizr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/notie/tsconfig.json b/notie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/notie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/notify/tsconfig.json b/notify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/notify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/notifyjs/tsconfig.json b/notifyjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/notifyjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nouislider/tsconfig.json b/nouislider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nouislider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/npm/tsconfig.json b/npm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/npm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nprogress/tsconfig.json b/nprogress/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nprogress/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/numbro/tsconfig.json b/numbro/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/numbro/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/numeral/tsconfig.json b/numeral/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/numeral/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nunjucks/tsconfig.json b/nunjucks/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nunjucks/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nvd3/tsconfig.json b/nvd3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nvd3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/nw.gui/tsconfig.json b/nw.gui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/nw.gui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oauth.js/tsconfig.json b/oauth.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oauth.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oauth2-server/tsconfig.json b/oauth2-server/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oauth2-server/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/obelisk.js/tsconfig.json b/obelisk.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/obelisk.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/object-assign/tsconfig.json b/object-assign/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/object-assign/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/object-hash/tsconfig.json b/object-hash/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/object-hash/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/object-path/tsconfig.json b/object-path/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/object-path/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oblo-util/tsconfig.json b/oblo-util/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oblo-util/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oboe/tsconfig.json b/oboe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oboe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/observe-js/tsconfig.json b/observe-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/observe-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oclazyload/tsconfig.json b/oclazyload/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oclazyload/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/office-js/tsconfig.json b/office-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/office-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/offline-js/tsconfig.json b/offline-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/offline-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oidc-token-manager/tsconfig.json b/oidc-token-manager/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oidc-token-manager/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/on-finished/tsconfig.json b/on-finished/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/on-finished/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/on-headers/tsconfig.json b/on-headers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/on-headers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/once/tsconfig.json b/once/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/once/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/onoff/tsconfig.json b/onoff/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/onoff/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/onsenui/tsconfig.json b/onsenui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/onsenui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/open/tsconfig.json b/open/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/open/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/openlayers/tsconfig.json b/openlayers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/openlayers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/openpgp/tsconfig.json b/openpgp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/openpgp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/opn/tsconfig.json b/opn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/opn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/optimist/tsconfig.json b/optimist/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/optimist/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ora/tsconfig.json b/ora/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ora/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/oracledb/tsconfig.json b/oracledb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/oracledb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/orchestrator/tsconfig.json b/orchestrator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/orchestrator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/os-locale/tsconfig.json b/os-locale/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/os-locale/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/osmtogeojson/tsconfig.json b/osmtogeojson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/osmtogeojson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/owlcarousel/tsconfig.json b/owlcarousel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/owlcarousel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/p2/p2.d.ts b/p2/p2.d.ts index a6f3cf256e..bdbac86b0e 100644 --- a/p2/p2.d.ts +++ b/p2/p2.d.ts @@ -118,7 +118,6 @@ declare namespace p2 { constructor(bodyA: Body, bodyB: Body, type: number, options?: { collideConnected?: boolean; - wakeUpBodies?: boolean; }); type: number; @@ -135,9 +134,7 @@ declare namespace p2 { export class DistanceConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: { - collideConnected?: boolean; - wakeUpBodies?: boolean; + constructor(bodyA: Body, bodyB: Body, options?: { distance?: number; localAnchorA?: number[]; localAnchorB?: number[]; @@ -161,9 +158,7 @@ declare namespace p2 { export class GearConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: { - collideConnected?: boolean; - wakeUpBodies?: boolean; + constructor(bodyA: Body, bodyB: Body, options?: { angle?: number; ratio?: number; maxTorque?: number; @@ -179,9 +174,7 @@ declare namespace p2 { export class LockConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: { - collideConnected?: boolean; - wakeUpBodies?: boolean; + constructor(bodyA: Body, bodyB: Body, options?: { localOffsetB?: number[]; localAngleB?: number; maxForce?: number; @@ -194,9 +187,7 @@ declare namespace p2 { export class PrismaticConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: { - collideConnected?: boolean; - wakeUpBodies?: boolean; + constructor(bodyA: Body, bodyB: Body, options?: { maxForce?: number; localAnchorA?: number[]; localAnchorB?: number[]; @@ -229,9 +220,7 @@ declare namespace p2 { export class RevoluteConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: { - collideConnected?: boolean; - wakeUpBodies?: boolean; + constructor(bodyA: Body, bodyB: Body, options?: { worldPivot?: number[]; localPivotA?: number[]; localPivotB?: number[]; diff --git a/p2/tsconfig.json b/p2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/p2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/packery/tsconfig.json b/packery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/packery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/page/tsconfig.json b/page/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/page/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pako/tsconfig.json b/pako/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pako/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/papaparse/tsconfig.json b/papaparse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/papaparse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/paralleljs/tsconfig.json b/paralleljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/paralleljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/param-case/tsconfig.json b/param-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/param-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/parse-glob/tsconfig.json b/parse-glob/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/parse-glob/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/parse-torrent/tsconfig.json b/parse-torrent/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/parse-torrent/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/parse/tsconfig.json b/parse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/parse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/parse5/tsconfig.json b/parse5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/parse5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/parsimmon/tsconfig.json b/parsimmon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/parsimmon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pascal-case/tsconfig.json b/pascal-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pascal-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-facebook-token/tsconfig.json b/passport-facebook-token/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-facebook-token/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-facebook/tsconfig.json b/passport-facebook/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-facebook/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-google-oauth/tsconfig.json b/passport-google-oauth/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-google-oauth/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-http-bearer/tsconfig.json b/passport-http-bearer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-http-bearer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-jwt/tsconfig.json b/passport-jwt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-jwt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-local/tsconfig.json b/passport-local/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-local/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-strategy/tsconfig.json b/passport-strategy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-strategy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport-twitter/tsconfig.json b/passport-twitter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport-twitter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/passport/tsconfig.json b/passport/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/passport/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/password-hash/tsconfig.json b/password-hash/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/password-hash/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/path-case/tsconfig.json b/path-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/path-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/path-exists/tsconfig.json b/path-exists/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/path-exists/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/path-parse/tsconfig.json b/path-parse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/path-parse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/path-to-regexp/tsconfig.json b/path-to-regexp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/path-to-regexp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pathjs/tsconfig.json b/pathjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pathjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pathwatcher/tsconfig.json b/pathwatcher/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pathwatcher/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pdf/tsconfig.json b/pdf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pdf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pdfkit/tsconfig.json b/pdfkit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pdfkit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pebblekitjs/tsconfig.json b/pebblekitjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pebblekitjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/peerjs/tsconfig.json b/peerjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/peerjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pegjs/tsconfig.json b/pegjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pegjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/persona/tsconfig.json b/persona/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/persona/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pg-promise/tsconfig.json b/pg-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pg-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pg/tsconfig.json b/pg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pgwmodal/tsconfig.json b/pgwmodal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pgwmodal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phantom/tsconfig.json b/phantom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phantom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phantomcss/tsconfig.json b/phantomcss/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phantomcss/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phantomjs/tsconfig.json b/phantomjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phantomjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phonegap-facebook-plugin/tsconfig.json b/phonegap-facebook-plugin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phonegap-facebook-plugin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phonegap-nfc/tsconfig.json b/phonegap-nfc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phonegap-nfc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phonegap-plugin-push/tsconfig.json b/phonegap-plugin-push/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phonegap-plugin-push/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/phonegap/tsconfig.json b/phonegap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/phonegap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/photonui/tsconfig.json b/photonui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/photonui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/photoswipe/tsconfig.json b/photoswipe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/photoswipe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/physijs/physijs.d.ts b/physijs/physijs.d.ts index 035f1da389..d70eadad2b 100644 --- a/physijs/physijs.d.ts +++ b/physijs/physijs.d.ts @@ -147,7 +147,7 @@ declare namespace Physijs { add(object:THREE.Object3D):void; remove(object:THREE.Object3D):void; setFixedTimeStep(fixedTimeStep:number):void; - setGravity(gravity:number):void; + setGravity(gravity:THREE.Vector3):void; simulate(timeStep?:number, maxSubSteps?:number):boolean; diff --git a/physijs/tsconfig.json b/physijs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/physijs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pi-spi/tsconfig.json b/pi-spi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pi-spi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pickadate/tsconfig.json b/pickadate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pickadate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pify/tsconfig.json b/pify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pikaday/index.d.ts b/pikaday/index.d.ts index c476970617..9f7131954e 100644 --- a/pikaday/index.d.ts +++ b/pikaday/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Rudolph Gottesheim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import * as moment from '../moment'; +import * as moment from 'moment'; export as namespace Pikaday; @@ -245,6 +245,11 @@ declare namespace Pikaday { * Render the month after the year in the title. Default: false. */ showMonthAfterYear?: boolean; + + /** + * Render days of the calendar grid that fall in the next or previous months to the current month instead of rendering an empty table cell. Default: false. + */ + showDaysInNextAndPreviousMonths?: boolean; /** * Number of visible calendars. diff --git a/pikaday/pikaday-tests.ts b/pikaday/pikaday-tests.ts index b45e0c34ea..daa3118a9b 100644 --- a/pikaday/pikaday-tests.ts +++ b/pikaday/pikaday-tests.ts @@ -70,3 +70,14 @@ new Pikaday({field: $('#datepicker')[0]}); yearRange: [2000, 2020] }); })(); + +(() => { + new Pikaday( + { + field: document.getElementById('datepicker'), + firstDay: 1, + minDate: new Date('2000-01-01'), + maxDate: new Date('2020-12-31'), + showDaysInNextAndPreviousMonths: true + }); +})(); diff --git a/pikaday/tsconfig.json b/pikaday/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pikaday/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pinkyswear/tsconfig.json b/pinkyswear/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pinkyswear/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pinterest-sdk/tsconfig.json b/pinterest-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pinterest-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/piwik-tracker/tsconfig.json b/piwik-tracker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/piwik-tracker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pixi-spine/tsconfig.json b/pixi-spine/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pixi-spine/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pixi.js/tsconfig.json b/pixi.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pixi.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/platform/tsconfig.json b/platform/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/platform/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/playerframework/tsconfig.json b/playerframework/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/playerframework/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pleasejs/tsconfig.json b/pleasejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pleasejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/plottable/tsconfig.json b/plottable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/plottable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pluralize/tsconfig.json b/pluralize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pluralize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/png-async/tsconfig.json b/png-async/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/png-async/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pngjs2/tsconfig.json b/pngjs2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pngjs2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/podcast/tsconfig.json b/podcast/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/podcast/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/poly2tri/tsconfig.json b/poly2tri/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/poly2tri/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/polyline/tsconfig.json b/polyline/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/polyline/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/polymer-ts/tsconfig.json b/polymer-ts/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/polymer-ts/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/polymer/tsconfig.json b/polymer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/polymer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/popcorn/tsconfig.json b/popcorn/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/popcorn/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/postal/postal.d.ts b/postal/postal.d.ts index d476c3710a..62caad6c1d 100644 --- a/postal/postal.d.ts +++ b/postal/postal.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Postal v1.0.6 +// Type definitions for Postal v1.0.8 // Project: https://github.com/postaljs/postal.js // Definitions by: Lokesh Peta , Paul Jolly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -61,19 +61,9 @@ interface IChannelDefinition { channel: string; } -interface ISourceArg { - topic: string; - channel?: string; -} - -interface IDestinationArg { - topic: string | ((topic: string) => string); - channel?: string; -} - interface IPostal { subscriptions: {}; - wiretaps: ICallback[]; + wireTaps: ICallback[]; addWireTap(callback: ICallback): () => void; @@ -83,8 +73,6 @@ interface IPostal { getSubscribersFor(options: {channel?: string, topic?: string, context?: any}): ISubscriptionDefinition[]; getSubscribersFor(predicateFn: (sub: ISubscriptionDefinition) => boolean): ISubscriptionDefinition[]; - linkChannels(source: ISourceArg | ISourceArg[], destination: IDestinationArg | IDestinationArg[]): void; - publish(envelope: IEnvelope): void; reset(): void; diff --git a/postal/tsconfig.json b/postal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/postal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pouchDB/pouch.d.ts b/pouchDB/pouch.d.ts index d3097a4099..0360e02b65 100644 --- a/pouchDB/pouch.d.ts +++ b/pouchDB/pouch.d.ts @@ -207,11 +207,13 @@ interface PouchApi { interface PouchOptions { name?: string; adapter?: string; + skip_setup?: boolean; } interface PouchDB extends PouchApi { new (name: string, opts: PouchOptions, callback: (err: PouchError, res: PouchDB) => void): PouchDB; new (name: string, callback: (err: PouchError, res: PouchDB) => void): PouchDB; + new (name: string, opts: PouchOptions): PouchDB; new (name: string): PouchDB; destroy(name: string, callback: (err: PouchError) => void): void; } diff --git a/pouchDB/tsconfig.json b/pouchDB/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pouchDB/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/power-assert-formatter/tsconfig.json b/power-assert-formatter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/power-assert-formatter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/power-assert/tsconfig.json b/power-assert/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/power-assert/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/precise/tsconfig.json b/precise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/precise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/precond/tsconfig.json b/precond/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/precond/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/preloadjs/tsconfig.json b/preloadjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/preloadjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/prelude-ls/tsconfig.json b/prelude-ls/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/prelude-ls/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/prettyjson/tsconfig.json b/prettyjson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/prettyjson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/prismjs/tsconfig.json b/prismjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/prismjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/progress/tsconfig.json b/progress/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/progress/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/progressjs/tsconfig.json b/progressjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/progressjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/project-oxford/tsconfig.json b/project-oxford/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/project-oxford/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promise-pg/tsconfig.json b/promise-pg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promise-pg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promise-pool/tsconfig.json b/promise-pool/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promise-pool/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promise/tsconfig.json b/promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promises-a-plus/tsconfig.json b/promises-a-plus/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promises-a-plus/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promisify-supertest/tsconfig.json b/promisify-supertest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promisify-supertest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/promptly/tsconfig.json b/promptly/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/promptly/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/protobufjs/tsconfig.json b/protobufjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/protobufjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/protractor-helpers/tsconfig.json b/protractor-helpers/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/protractor-helpers/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/protractor-http-mock/tsconfig.json b/protractor-http-mock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/protractor-http-mock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/protractor/angular-protractor.d.ts b/protractor/angular-protractor.d.ts index fa2928c136..d33eeddace 100644 --- a/protractor/angular-protractor.d.ts +++ b/protractor/angular-protractor.d.ts @@ -1683,7 +1683,7 @@ declare namespace protractor { * @return {!webdriver.promise.Promise} A promise that will resolve to the * scripts return value. */ - waitForAngular(): webdriver.promise.Promise; + waitForAngular(): webdriver.promise.Promise; /** * Add a module to load before Angular whenever Protractor.get is called. diff --git a/protractor/tsconfig.json b/protractor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/protractor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/proxyquire/tsconfig.json b/proxyquire/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/proxyquire/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pty.js/tsconfig.json b/pty.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pty.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pubsub-js/tsconfig.json b/pubsub-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pubsub-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pure-render-decorator/tsconfig.json b/pure-render-decorator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pure-render-decorator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/purl/tsconfig.json b/purl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/purl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/pusher-js/tsconfig.json b/pusher-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/pusher-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/q-io/tsconfig.json b/q-io/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/q-io/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/q-retry/tsconfig.json b/q-retry/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/q-retry/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/q/tsconfig.json b/q/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/q/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qajax/tsconfig.json b/qajax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qajax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qrcode-generator/tsconfig.json b/qrcode-generator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qrcode-generator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qs/tsconfig.json b/qs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qtip2/tsconfig.json b/qtip2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qtip2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/query-string/tsconfig.json b/query-string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/query-string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/quill/tsconfig.json b/quill/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/quill/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/quixote/tsconfig.json b/quixote/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/quixote/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qunit/tsconfig.json b/qunit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qunit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/qwest/tsconfig.json b/qwest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/qwest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rabbit.js/tsconfig.json b/rabbit.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rabbit.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ractive/tsconfig.json b/ractive/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ractive/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/radium/tsconfig.json b/radium/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/radium/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/radius/tsconfig.json b/radius/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/radius/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rails-actioncable/tsconfig.json b/rails-actioncable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rails-actioncable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/random-js/tsconfig.json b/random-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/random-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/random-string/tsconfig.json b/random-string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/random-string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rangy/tsconfig.json b/rangy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rangy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/raphael/tsconfig.json b/raphael/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/raphael/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rappid/tsconfig.json b/rappid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rappid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ratelimiter/tsconfig.json b/ratelimiter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ratelimiter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/raty/tsconfig.json b/raty/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/raty/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/raven-js/tsconfig.json b/raven-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/raven-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/raygun4js/tsconfig.json b/raygun4js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/raygun4js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rc-select/tsconfig.json b/rc-select/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rc-select/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rcloader/tsconfig.json b/rcloader/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rcloader/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-bootstrap-daterangepicker/tsconfig.json b/react-bootstrap-daterangepicker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-bootstrap-daterangepicker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-bootstrap-table/tsconfig.json b/react-bootstrap-table/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-bootstrap-table/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-bootstrap/react-bootstrap-tests.tsx b/react-bootstrap/react-bootstrap-tests.tsx index 4198e62320..cad2242a38 100644 --- a/react-bootstrap/react-bootstrap-tests.tsx +++ b/react-bootstrap/react-bootstrap-tests.tsx @@ -281,7 +281,7 @@ export class ReactBootstrapTest extends Component {
- + Modal title diff --git a/react-bootstrap/react-bootstrap.d.ts b/react-bootstrap/react-bootstrap.d.ts index bebe00815d..9dd6b9bbf1 100644 --- a/react-bootstrap/react-bootstrap.d.ts +++ b/react-bootstrap/react-bootstrap.d.ts @@ -5,759 +5,766 @@ /// - -// Import React -import React = require("react"); - - -//
+ ); + } +}); + +// Dialog tests +React.createClass({ + render: function() { + return ( +
+
+ + + Allow data collection? + +

Allowing us to collect data will let us get you the information you want faster.

+
+ + + + +
+
+ +
+ + + Allow this site to collect usage data to improve your experience? + +

Allowing us to collect data will let us get you the information you want faster.

+
+ + + + +
+
+ +
+ + + Allow data collection? + +

Allowing us to collect data will let us get you the information you want faster.

+
+ + + + +
+
+
+ ); + } +}); + +// Grid tests +React.createClass({ + render: function() { + return ( +
+
+ + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + + + 4 + 4 + 4 + + + 6 + 4 + 2 + + + 6 (8 tablet) + 4 (6 tablet) + 2 (4 phone) + +
+
+ ); + } +}); + +// IconToggle tests +React.createClass({ + render: function() { + return ( +
+ + + +
+ ); + } +}); + +// Layout tests +React.createClass({ + render: function() { + return ( +
+ {/* Uses a transparent header that draws on top of the layout's background */} +
+ +
+ + Link + Link + Link + Link + +
+ + + Link + Link + Link + Link + + + +
+
+ + {/* No header, and the drawer stays open on larger screens (fixed drawer). */} +
+ + + + Link + Link + Link + Link + + + + +
+ + {/* Always shows a header, even in smaller screens. */} +
+ +
Area / The Title}> + + Link + Link + Link + Link + +
+ + + Link + Link + Link + Link + + + +
+
+ + {/* The drawer is always open in large screens. The header is always shown, even in small screens. */} +
+ +
+ {}} + label="Search" + expandable + expandableIcon="search" + /> +
+ + + Link + Link + Link + Link + + + +
+
+ + {/* Uses a header that scrolls with the text, rather than staying locked at the top */} +
+ +
+ + Link + Link + Link + Link + +
+ + + Link + Link + Link + Link + + + +
+ + +
+ + {/* Uses a header that contracts as the page scrolls down. */} +
+ +
+ + {}} + label="Search" + expandable + expandableIcon="search" + /> + + + + Link + Link + Link + Link + + +
+ + + Link + Link + Link + Link + + + +
+ + +
+ + {/* Hide the top part of the header when scrolling down */} +
+ +
+ + {}} + label="Search" + expandable + expandableIcon="search" + /> + + + + Link + Link + Link + Link + + +
+ + + Link + Link + Link + Link + + + +
+ + +
+ +
+ +
+ + this.setState({ activeTab: tabId })}> + Tab1 + Tab2 + Tab3 + Tab4 + Tab5 + Tab6 + +
+ + +
Content for the tab: {this.state.activeTab}
+
+
+
+ + {/* Simple header with fixed tabs. */} +
+ +
+ + {}}> + Tab1 + Tab2 + Tab3 + +
+ + +
You can add logic to update the content of this container based on the "activeTab" receive in the `onChange` callback.
+
+
+
+ + + + +
+ ); + } +}); + +// List tests +React.createClass({ + render: function() { + return ( +
+ + Bryan Cranston + Aaron Paul + Bob Odenkirk + + + + + Bryan Cranston + + + Aaron Paul + + + Bob Odenkirk + + + + + + Bryan Cranston + + + + + + Aaron Paul + + + + + + Bob Odenkirk + + + + + + + + + Bryan Cranston + + + + + + Aaron Paul + + + + + + Bob Odenkirk + + + + + + + + + Bryan Cranston + + + + + + Aaron Paul + + + + + + Bob Odenkirk + + + + + + + + + Bryan Cranston + + + + + + Aaron Paul + + + + + + Bob Odenkirk + + + + + +
+ ); + } +}); + +// Menu tests +React.createClass({ + render: function() { + return ( +
+ {/* Lower left */} +
+ + + Some Action + Another Action + Disabled Action + Yet Another Action + +
+ + {/* Lower right */} +
+ + + Some Action + Another Action + Disabled Action + Yet Another Action + +
+ + {/* Top left */} +
+ + + Some Action + Another Action + Disabled Action + Yet Another Action + +
+ + {/* Top right */} +
+ + + Some Action + Another Action + Disabled Action + Yet Another Action + +
+
+ ); + } +}); + +// ProgressBar tests +React.createClass({ + render: function() { + return ( +
+ {/* Simple Progress Bar */} + + + {/* Progress Bar with Indeterminate Progress */} + + + {/* Progress Bar with Buffering */} + +
+ ); + } +}); + +// Radio tests +React.createClass({ + render: function() { + return ( +
+ + Ripple option + Other option + + + + Ripple option + Other option + +
+ ); + } +}); + +// Slider tests +React.createClass({ + render: function() { + return ( +
+ {/* Default slider */} + + + {/* Slider with initial value */} + +
+ ); + } +}); + +// Snackbar tests +React.createClass({ + render: function() { + return ( +
+
+ + Button color changed. +
+ +
+ + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius luctus quam. Fusce quis blandit libero. Donec accumsan nunc lectus, vel blandit diam bibendum ac. Integer faucibus, lorem et convallis fermentum, diam dolor imperdiet mi, nec iaculis risus mauris id elit. Vivamus vel eros dapibus, molestie ante ut, vestibulum sem. + +
+
+ ); + } +}); + +// Spinner tests +React.createClass({ + render: function() { + return ( +
+ {/* Simple spinner */} + + + {/* Single color spinner */} + +
+ ); + } +}); + +// Switch tests +React.createClass({ + render: function() { + return ( +
+ Ripple switch + + Switch +
+ ); + } +}); + +// Tab tests +React.createClass({ + render: function() { + return ( +
+
+ this.setState({ activeTab: tabId })} ripple> + Starks + Lannisters + Targaryens + +
+
Content for the tab: {this.state.activeTab}
+
+
+
+ ); + } +}); + +// Textfield tests +React.createClass({ + render: function() { + return ( +
+ {/* Simple textfield */} + {}} + label="Text..." + style={{width: '200px'}} + /> + + {/* Numeric textfield */} + {}} + pattern="-?[0-9]*(\.[0-9]+)?" + error="Input is not a number!" + label="Number..." + style={{width: '200px'}} + /> + + {/* Textfield with floating label */} + {}} + label="Text..." + floatingLabel + style={{width: '200px'}} + /> + + {/* Numeric Textfield with floating label */} + {}} + pattern="-?[0-9]*(\.[0-9]+)?" + error="Input is not a number!" + label="Number..." + floatingLabel + /> +
+ ); + } +}); + +// Tooltip tests +React.createClass({ + render: function() { + return ( +
+ {/* Simple tooltip */} + + + + + {/* Large Tooltip */} + + + + + {/* Rich Tooltip */} + Upload file.zip}> + + + + {/* Multiline Tooltip */} + Share your content
via social media}> + +
+ + {/* Right Tooltip */} + + + + + {/* Left Tooltip */} + + + + + {/* Top Tooltip */} + + + + + {/* Bottom Tooltip */} + + + +
+ ); + } +}); diff --git a/react-mdl/react-mdl.d.ts b/react-mdl/react-mdl.d.ts new file mode 100644 index 0000000000..56d688c7f4 --- /dev/null +++ b/react-mdl/react-mdl.d.ts @@ -0,0 +1,606 @@ +// Type definitions for react-mdl 1.5.3 +// Project: https://github.com/tleunen/react-mdl +// Definitions by: Brad Zacher +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace __ReactMDL { + import React = __React; + + type __MDLClassProps = React.ClassAttributes; + type __MDLOtherProps = React.HTMLProps; + class __MDLComponent

extends React.Component {} + class __MDLBasicComponent extends __MDLComponent<__MDLOtherProps> {} + + interface ShadowedComponent { + shadow ?: number; + } + interface RippleComponent { + ripple ?: boolean; + } + interface CustomRenderedComponent { + component ?: string | JSX.Element | Function; + } + + + // HTMLAttributes (minus the 'data', 'icon', 'label', 'name', 'rows', 'size', 'title', 'value' attributes) + interface MDLHTMLAttributes { + // React-specific Attributes + defaultChecked?: boolean; + defaultValue?: string | string[]; + + // Standard HTML Attributes + accept?: string; + acceptCharset?: string; + accessKey?: string; + action?: string; + allowFullScreen?: boolean; + allowTransparency?: boolean; + alt?: string; + async?: boolean; + autoComplete?: string; + autoFocus?: boolean; + autoPlay?: boolean; + capture?: boolean; + cellPadding?: number | string; + cellSpacing?: number | string; + charSet?: string; + challenge?: string; + checked?: boolean; + classID?: string; + className?: string; + cols?: number; + colSpan?: number; + content?: string; + contentEditable?: boolean; + contextMenu?: string; + controls?: boolean; + coords?: string; + crossOrigin?: string; + dateTime?: string; + default?: boolean; + defer?: boolean; + dir?: string; + disabled?: boolean; + download?: any; + draggable?: boolean; + encType?: string; + form?: string; + formAction?: string; + formEncType?: string; + formMethod?: string; + formNoValidate?: boolean; + formTarget?: string; + frameBorder?: number | string; + headers?: string; + height?: number | string; + hidden?: boolean; + high?: number; + href?: string; + hrefLang?: string; + htmlFor?: string; + httpEquiv?: string; + id?: string; + inputMode?: string; + integrity?: string; + is?: string; + keyParams?: string; + keyType?: string; + kind?: string; + lang?: string; + list?: string; + loop?: boolean; + low?: number; + manifest?: string; + marginHeight?: number; + marginWidth?: number; + max?: number | string; + maxLength?: number; + media?: string; + mediaGroup?: string; + method?: string; + min?: number | string; + minLength?: number; + multiple?: boolean; + muted?: boolean; + nonce?: string; + noValidate?: boolean; + open?: boolean; + optimum?: number; + pattern?: string; + placeholder?: string; + poster?: string; + preload?: string; + radioGroup?: string; + readOnly?: boolean; + rel?: string; + required?: boolean; + reversed?: boolean; + role?: string; + rowSpan?: number; + sandbox?: string; + scope?: string; + scoped?: boolean; + scrolling?: string; + seamless?: boolean; + selected?: boolean; + shape?: string; + sizes?: string; + span?: number; + spellCheck?: boolean; + src?: string; + srcDoc?: string; + srcLang?: string; + srcSet?: string; + start?: number; + step?: number | string; + style?: React.CSSProperties; + summary?: string; + tabIndex?: number; + target?: string; + type?: string; + useMap?: string; + width?: number | string; + wmode?: string; + wrap?: string; + + // RDFa Attributes + about?: string; + datatype?: string; + inlist?: any; + prefix?: string; + property?: string; + resource?: string; + typeof?: string; + vocab?: string; + + // Non-standard Attributes + autoCapitalize?: string; + autoCorrect?: string; + autoSave?: string; + color?: string; + itemProp?: string; + itemScope?: boolean; + itemType?: string; + itemID?: string; + itemRef?: string; + results?: number; + security?: string; + unselectable?: boolean; + + // Allows aria- and data- Attributes + [key: string]: any; + } + // DOMAttributes (minus 'onClick', 'onChange') + interface MDLDOMAttributes { + // DOMAttributes (minus onClick) + children?: React.ReactNode; + dangerouslySetInnerHTML?: { + __html: string; + }; + + // Clipboard Events + onCopy?: React.ClipboardEventHandler; + onCut?: React.ClipboardEventHandler; + onPaste?: React.ClipboardEventHandler; + + // Composition Events + onCompositionEnd?: React.CompositionEventHandler; + onCompositionStart?: React.CompositionEventHandler; + onCompositionUpdate?: React.CompositionEventHandler; + + // Focus Events + onFocus?: React.FocusEventHandler; + onBlur?: React.FocusEventHandler; + + // Form Events + onInput?: React.FormEventHandler; + onSubmit?: React.FormEventHandler; + + // Image Events + onLoad?: React.ReactEventHandler; + onError?: React.ReactEventHandler; // also a Media Event + + // Keyboard Events + onKeyDown?: React.KeyboardEventHandler; + onKeyPress?: React.KeyboardEventHandler; + onKeyUp?: React.KeyboardEventHandler; + + // Media Events + onAbort?: React.ReactEventHandler; + onCanPlay?: React.ReactEventHandler; + onCanPlayThrough?: React.ReactEventHandler; + onDurationChange?: React.ReactEventHandler; + onEmptied?: React.ReactEventHandler; + onEncrypted?: React.ReactEventHandler; + onEnded?: React.ReactEventHandler; + onLoadedData?: React.ReactEventHandler; + onLoadedMetadata?: React.ReactEventHandler; + onLoadStart?: React.ReactEventHandler; + onPause?: React.ReactEventHandler; + onPlay?: React.ReactEventHandler; + onPlaying?: React.ReactEventHandler; + onProgress?: React.ReactEventHandler; + onRateChange?: React.ReactEventHandler; + onSeeked?: React.ReactEventHandler; + onSeeking?: React.ReactEventHandler; + onStalled?: React.ReactEventHandler; + onSuspend?: React.ReactEventHandler; + onTimeUpdate?: React.ReactEventHandler; + onVolumeChange?: React.ReactEventHandler; + onWaiting?: React.ReactEventHandler; + + // MouseEvents + onContextMenu?: React.MouseEventHandler; + onDoubleClick?: React.MouseEventHandler; + onDrag?: React.DragEventHandler; + onDragEnd?: React.DragEventHandler; + onDragEnter?: React.DragEventHandler; + onDragExit?: React.DragEventHandler; + onDragLeave?: React.DragEventHandler; + onDragOver?: React.DragEventHandler; + onDragStart?: React.DragEventHandler; + onDrop?: React.DragEventHandler; + onMouseDown?: React.MouseEventHandler; + onMouseEnter?: React.MouseEventHandler; + onMouseLeave?: React.MouseEventHandler; + onMouseMove?: React.MouseEventHandler; + onMouseOut?: React.MouseEventHandler; + onMouseOver?: React.MouseEventHandler; + onMouseUp?: React.MouseEventHandler; + + // Selection Events + onSelect?: React.ReactEventHandler; + + // Touch Events + onTouchCancel?: React.TouchEventHandler; + onTouchEnd?: React.TouchEventHandler; + onTouchMove?: React.TouchEventHandler; + onTouchStart?: React.TouchEventHandler; + + // UI Events + onScroll?: React.UIEventHandler; + + // Wheel Events + onWheel?: React.WheelEventHandler; + } + + + + interface BadgeProps extends __MDLClassProps { + text: string | number; + className ?: string; + noBackground ?: boolean; + overlap ?: boolean; + } + class Badge extends __MDLComponent {} + + + interface ButtonProps extends __MDLOtherProps, RippleComponent, CustomRenderedComponent { + accent ?: boolean; + colored ?: boolean; + primary ?: boolean; + } + interface StandardButtonProps extends ButtonProps { + raised ?: boolean; + } + interface FABButtonProps extends ButtonProps { + mini ?: boolean; + } + interface IconButtonProps extends ButtonProps { + name ?: string; + raised ?: boolean; + } + class Button extends __MDLComponent {} + class FABButton extends __MDLComponent {} + class IconButton extends __MDLComponent {} + + + interface CardProps extends __MDLOtherProps, ShadowedComponent {} + interface CardActionProps extends __MDLOtherProps { + border ?: boolean; + } + interface CardTitleProps extends __MDLOtherProps { + expand ?: boolean; + } + class Card extends __MDLComponent {} + class CardActions extends __MDLComponent {} + class CardTitle extends __MDLComponent {} + class CardText extends __MDLBasicComponent {} + class CardMenu extends __MDLBasicComponent {} + class CardMedia extends __MDLBasicComponent {} + + + interface CheckboxProps extends __MDLOtherProps, RippleComponent { + checked ?: boolean; + disabled ?: boolean; + label ?: string; + } + class Checkbox extends __MDLComponent {} + + interface UndecoratedTableProps extends __MDLClassProps, MDLHTMLAttributes, React.DOMAttributes, ShadowedComponent { + rows: Array; + rowKeyColumn ?: string; + + name ?: string; + title ?: string; + } + interface TableProps extends UndecoratedTableProps { + sortable ?: boolean; + selectable ?: boolean; + onSelectionChanged ?: (row : any) => any; + } + interface TableHeaderProps extends __MDLClassProps, MDLHTMLAttributes, MDLDOMAttributes { + name : string; + title ?: string; + cellFormatter ?: (value : any, row : any, index : number) => React.ReactNode; + numeric ?: boolean; + nosort ?: boolean; + onClick ?: (e : React.MouseEvent, name : string) => any; + sortFn ?: (a : any, b : any, isAsc : boolean) => number; + tooltip ?: React.ReactNode; + } + class Table extends __MDLComponent {} + class TableHeader extends __MDLComponent {} + class UndecoratedTable extends __MDLComponent {} + class DataTable extends Table {} + + + interface DialogProps extends __MDLOtherProps { + open ?: boolean; + } + interface DialogActionsProps extends __MDLOtherProps { + fullWidth ?: boolean; + } + interface DialogTitleProps extends __MDLOtherProps, CustomRenderedComponent {} + class Dialog extends __MDLComponent {} + class DialogActions extends __MDLComponent {} + class DialogTitle extends __MDLComponent {} + class DialogContent extends __MDLBasicComponent {} + + + interface GridProps extends __MDLOtherProps, CustomRenderedComponent, ShadowedComponent { + noSpacing ?: boolean; + } + interface CellProps extends __MDLOtherProps, CustomRenderedComponent, ShadowedComponent { + col : number; + align ?: string; + phone ?: number; + tablet ?: number; + hideDesktop ?: boolean; + hidePhone ?: boolean; + hideTablet ?: boolean; + } + class Grid extends __MDLComponent {} + class Cell extends __MDLComponent {} + + + interface IconProps extends __MDLOtherProps { + name : string; + } + class Icon extends __MDLComponent {} + + + interface IconToggleProps extends __MDLOtherProps, RippleComponent { + name : string; + checked ?: boolean; + disabled ?: boolean; + } + class IconToggle extends __MDLComponent {} + + + interface ContentProps extends __MDLOtherProps, CustomRenderedComponent {} + interface DrawerProps extends __MDLOtherProps { + title ?: string; + } + interface HeaderProps extends __MDLOtherProps { + title ?: string; + scroll ?: boolean; + seamed ?: boolean; + transparent ?: boolean; + waterfall ?: boolean; + hideTop ?: boolean; + } + interface HeaderRowProps extends __MDLOtherProps { + title ?: string; + } + interface HeaderTabsProps extends __MDLOtherProps, RippleComponent { + activeTab ?: number; + onChange ?: React.FormEventHandler; + } + interface LayoutProps extends __MDLOtherProps { + fixedDrawer ?: boolean; + fixedHeader ?: boolean; + fixedTabse ?: boolean; + } + interface NavigationProps extends __MDLOtherProps {} + class Content extends __MDLComponent {} + class Drawer extends __MDLComponent {} + class Header extends __MDLComponent {} + class HeaderRow extends __MDLComponent {} + class HeaderTabs extends __MDLComponent {} + class Layout extends __MDLComponent {} + class Navigation extends __MDLComponent {} + class Spacer extends __MDLBasicComponent {} + + interface FooterProps extends MDLHTMLAttributes, React.DOMAttributes { + size ?: string; + + title ?: string; + } + interface FooterDropDownSectionProps extends MDLHTMLAttributes, React.DOMAttributes { + size ?: string; + title : React.ReactNode; + } + interface FooterLinkListProps extends MDLHTMLAttributes, React.DOMAttributes { + size ?: string; + + title ?: string; + } + interface FooterSectionProps extends MDLHTMLAttributes, React.DOMAttributes { + size ?: string; + type ?: string; + logo ?: React.ReactNode; + + title ?: string; + } + class Footer extends __MDLComponent {} + class FooterDropDownSection extends __MDLComponent {} + class FooterLinkList extends __MDLComponent {} + class FooterSection extends __MDLComponent {} + + interface ListItemProps extends __MDLOtherProps { + twoLine ?: boolean; + threeLine ?: boolean; + } + interface ListItemActionProps extends __MDLOtherProps { + info ?: string; + } + interface ListItemContentProps extends MDLHTMLAttributes, React.DOMAttributes { + avatar ?: string | JSX.Element; + icon ?: string | JSX.Element; + subtitle ?: React.ReactNode; + useBodyClass ?: boolean; + } + class List extends __MDLBasicComponent {} + class ListItem extends __MDLComponent {} + class ListItemAction extends __MDLComponent {} + class ListItemContent extends __MDLComponent {} + + + interface MenuProps extends __MDLOtherProps, RippleComponent { + target : string; + align ?: string; + valign ?: string; + } + class Menu extends __MDLComponent {} + class MenuItem extends __MDLBasicComponent {} + + + interface ProgressBarProps extends __MDLOtherProps { + buffer ?: number; + indeterminate ?: boolean; + progress ?: number; + } + class ProgressBar extends __MDLComponent {} + + + interface RadioProps extends MDLHTMLAttributes, React.DOMAttributes, RippleComponent { + value : string | number; + checked ?: boolean; + disabled ?: boolean; + name ?: string; + onChange ?: React.FormEventHandler; + label ?: string; + } + interface RadioGroupProps extends MDLHTMLAttributes, React.DOMAttributes { + name : string; + value : string | number; + childContainer ?: string; + container ?: string; + onChange ?: React.FormEventHandler; + label ?: string; + } + class Radio extends __MDLComponent {} + class RadioGroup extends __MDLComponent {} + + + interface SliderProps extends MDLHTMLAttributes, React.DOMAttributes { + max : number; + min : number; + onChange ?: React.FormEventHandler; + value ?: number; + } + class Slider extends __MDLComponent {} + + + interface SnackbarProps extends __MDLOtherProps { + active : boolean; + onTimeout : () => any; + action ?: string; + onActionClick ?: React.MouseEventHandler; + timeout ?: number; + } + class Snackbar extends __MDLComponent {} + + + interface SpinnerProps extends __MDLOtherProps { + singleColor ?: boolean; + } + class Spinner extends __MDLComponent {} + + + interface SwitchProps extends __MDLOtherProps, RippleComponent { + checked ?: boolean; + disabled ?: boolean; + onChange ?: React.FormEventHandler; + } + class Switch extends __MDLComponent {} + + + interface TabProps extends __MDLOtherProps, CustomRenderedComponent { + active ?: boolean; + cssPrefix ?: string; + onTabClick ?: (tabId : number) => any; + tabId ?: number; + } + interface TabBarProps extends MDLHTMLAttributes, MDLDOMAttributes { + cssPrefix : string; + activeTab ?: number; + onChange ?: (tabId : number) => any; + + name ?: string; + title ?: string; + onClick ?: React.MouseEventHandler; + } + interface TabsProps extends MDLHTMLAttributes, MDLDOMAttributes { + activeTab ?: number; + onChange ?: (tabId : number) => any; + tabBarProps ?: TabBarProps; + + name ?: string; + title ?: string; + onClick ?: React.MouseEventHandler; + } + class Tab extends __MDLComponent {} + class TabBar extends __MDLComponent {} + class Tabs extends __MDLComponent {} + + + interface TextfieldProps extends MDLHTMLAttributes, React.DOMAttributes { + label : string; + disabled ?: boolean; + error ?: React.ReactNode; + expandable ?: boolean; + expandableIcon ?: string; + floatingLabel ?: boolean; + id ?: string; + inputClassName ?: string; + maxRows ?: number; + onChange ?: React.FormEventHandler; + pattern ?: string; + required ?: boolean; + rows ?: number; + value ?: string | number; + + name ?: string; + title ?: string; + } + class Textfield extends __MDLComponent {} + + + interface TooltipProps extends MDLHTMLAttributes, React.DOMAttributes { + label : React.ReactNode; + large ?: boolean; + position ?: string; + + name ?: string; + title ?: string; + } + class Tooltip extends __MDLComponent {} +} + +declare module 'react-mdl' { + export = __ReactMDL; +} \ No newline at end of file diff --git a/react-mdl/tsconfig.json b/react-mdl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-mdl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-mixin/tsconfig.json b/react-mixin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-mixin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-motion/tsconfig.json b/react-motion/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-motion/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-native/react-native-animated-tests.tsx b/react-native/react-native-animated-tests.tsx new file mode 100644 index 0000000000..6fafd9f32f --- /dev/null +++ b/react-native/react-native-animated-tests.tsx @@ -0,0 +1,95 @@ +/// + +import * as React from 'react-native' + +import { + Animated, + View, +} from 'react-native'; + +function TestAnimatedAPI() { + // Value + const v1 = new Animated.Value(0); + const v2 = new Animated.Value(0); + + v1.setValue(0.1); + + v1.addListener(e => { + let n: number = e.value; + }); + + const v200 = v1.interpolate({ + inputRange: [0, 1], + outputRange: [0, 200], + }); + + // ValueXY + const position = new Animated.ValueXY({ x: 0, y: 0 }); + + // Animation functions + const spring1 = Animated.spring(v1, { + toValue: 0.5, + tension: 10, + }); + + const springXY = Animated.spring(position, { + toValue: { + x: 1, + y: 2, + } + }); + + spring1.start(); + spring1.stop(); + + Animated.parallel([ + Animated.spring(v1, { toValue: 1 }), + Animated.spring(v2, { toValue: 1 }), + ], { + stopTogether: true, + }); + + Animated.decay(v1, { + velocity: 2, + }); + + Animated.timing(v1, { + toValue: 1, + duration: 100, + delay: 100, + easing: v => v, + }); + + Animated.add(v1, v2); + Animated.multiply(v1, v2); + Animated.modulo(v1, 2); + + Animated.delay(100); + + Animated.sequence([ + spring1, + springXY, + ]); + + Animated.stagger(100, [ + spring1, + springXY, + ]); + + return ( + + + + + + + + ); +} \ No newline at end of file diff --git a/react-native/react-native-tests.tsx b/react-native/react-native-tests.tsx index ffb127b6cc..00f4be76d8 100644 --- a/react-native/react-native-tests.tsx +++ b/react-native/react-native-tests.tsx @@ -27,9 +27,27 @@ import { View, AppState, AppStateIOS, - ViewPagerAndroid + ViewPagerAndroid, + Dimensions, } from 'react-native'; +function testDimensions() { + var { + width, + height, + scale, + fontScale, + } = Dimensions.get("window"); + + var { + width, + height, + scale, + fontScale, + } = Dimensions.get("screen"); +} + + var styles = StyleSheet.create( { container: { @@ -54,11 +72,19 @@ var styles = StyleSheet.create( class Welcome extends React.Component { + testNativeMethods() { + this.setNativeProps({}); + + const { rootView } = this.refs; + + rootView.measure((x, y, width, height) => { + }); + } render() { return ( - + Welcome to React Native diff --git a/react-native/react-native.d.ts b/react-native/react-native.d.ts index b7f19c4489..8b2ab35f82 100644 --- a/react-native/react-native.d.ts +++ b/react-native/react-native.d.ts @@ -22,7 +22,7 @@ import React = __React; //react-native "extends" react -declare namespace __React { +declare module "react-native" { /** @@ -121,6 +121,109 @@ declare namespace __React { // @see lib.es6.d.ts export var Promise: PromiseConstructor; + module NativeMethodsMixin { + type MeasureOnSuccessCallback = ( + x: number, + y: number, + width: number, + height: number, + pageX: number, + pageY: number + ) => void + + type MeasureInWindowOnSuccessCallback = ( + x: number, + y: number, + width: number, + height: number + ) => void + + type MeasureLayoutOnSuccessCallback = ( + left: number, + top: number, + width: number, + height: number + ) => void + } + + /** + * @see https://github.com/facebook/react-native/blob/master/Libraries/ReactIOS/NativeMethodsMixin.js + */ + export class Component extends React.Component { + /** + * Determines the location on screen, width, and height of the given view and + * returns the values via an async callback. If successful, the callback will + * be called with the following arguments: + * + * - x + * - y + * - width + * - height + * - pageX + * - pageY + * + * Note that these measurements are not available until after the rendering + * has been completed in native. If you need the measurements as soon as + * possible, consider using the [`onLayout` + * prop](docs/view.html#onlayout) instead. + */ + measure(callback: NativeMethodsMixin.MeasureOnSuccessCallback): void; + + /** + * Determines the location of the given view in the window and returns the + * values via an async callback. If the React root view is embedded in + * another native view, this will give you the absolute coordinates. If + * successful, the callback will be called with the following + * arguments: + * + * - x + * - y + * - width + * - height + * + * Note that these measurements are not available until after the rendering + * has been completed in native. + */ + measureInWindow(callback: NativeMethodsMixin.MeasureInWindowOnSuccessCallback): void; + + /** + * Like [`measure()`](#measure), but measures the view relative an ancestor, + * specified as `relativeToNativeNode`. This means that the returned x, y + * are relative to the origin x, y of the ancestor view. + * + * As always, to obtain a native node handle for a component, you can use + * `React.findNodeHandle(component)`. + */ + measureLayout( + relativeToNativeNode: number, + onSuccess: NativeMethodsMixin.MeasureLayoutOnSuccessCallback, + onFail: () => void /* currently unused */ + ): void; + + /** + * This function sends props straight to native. They will not participate in + * future diff process - this means that if you do not include them in the + * next render, they will remain active (see [Direct + * Manipulation](docs/direct-manipulation.html)). + */ + setNativeProps(nativeProps: Object): void; + + /** + * Requests focus for the given input or view. The exact behavior triggered + * will depend on the platform and type of view. + */ + focus(): void; + + /** + * Removes focus from an input or view. This is the opposite of `focus()`. + */ + blur(): void; + + refs: { + [key: string]: Component + }; + } + //TODO: BGR: Replace with ComponentClass ? // node_modules/react-tools/src/classic/class/ReactClass.js export interface ReactClass { @@ -219,7 +322,6 @@ declare namespace __React { * //FIXME: need to find documentation on which compoenent is a native (i.e. non composite component) */ export interface NativeComponent { - setNativeProps: ( props: Object ) => void } /** @@ -2080,7 +2182,7 @@ declare namespace __React { } export interface Route { - component?: ComponentClass + component?: React.ComponentClass id?: string title?: string passProps?: Object; @@ -2499,8 +2601,28 @@ declare namespace __React { width: number; height: number; scale: number; + fontScale: number; } + /** + * Initial dimensions are set before `runApplication` is called so they should + * be available before any other require's are run, but may be updated later. + * + * Note: Although dimensions are available immediately, they may change (e.g + * due to device rotation) so any rendering logic or styles that depend on + * these constants should try to call this function on every render, rather + * than caching the value (for example, using inline styles rather than + * setting a value in a `StyleSheet`). + * + * Example: `var {height, width} = Dimensions.get('window');` + * + * @param {string} dim Name of dimension as defined when calling `set`. + * @returns {Object?} Value for the dimension. + * @see https://facebook.github.io/react-native/docs/dimensions.html#content + */ + export interface Dimensions { + get( what: "window" | "screen" ): React.ScaledSize; + } export interface InteractionManagerStatic { runAfterInteractions( fn: () => void ): void; @@ -3331,6 +3453,304 @@ declare namespace __React { vibrate(): void } + export module Animated { + // Most (all?) functions where AnimatedValue is used any subclass of Animated can be used as well. + type AnimatedValue = Animated; + type AnimatedValueXY = ValueXY; + + type Base = Animated; + + class Animated { + // Internal class, no public API. + } + + class AnimatedWithChildren extends Animated { + // Internal class, no public API. + } + + class AnimatedInterpolation extends AnimatedWithChildren { + interpolate(config: InterpolationConfigType): AnimatedInterpolation; + } + + type ExtrapolateType = 'extend' | 'identity' | 'clamp'; + + type InterpolationConfigType = { + inputRange: number[]; + outputRange: (number[] | string[]); + easing?: ((input: number) => number); + extrapolate?: ExtrapolateType; + extrapolateLeft?: ExtrapolateType; + extrapolateRight?: ExtrapolateType; + }; + + type ValueListenerCallback = (state: {value: number}) => void; + + /** + * Standard value for driving animations. One `Animated.Value` can drive + * multiple properties in a synchronized fashion, but can only be driven by one + * mechanism at a time. Using a new mechanism (e.g. starting a new animation, + * or calling `setValue`) will stop any previous ones. + */ + export class Value extends AnimatedWithChildren { + constructor(value: number); + + setValue(value: number): void; + + /** + * Sets an offset that is applied on top of whatever value is set, whether via + * `setValue`, an animation, or `Animated.event`. Useful for compensating + * things like the start of a pan gesture. + */ + setOffset(offset: number): void; + + /** + * Merges the offset value into the base value and resets the offset to zero. + * The final output of the value is unchanged. + */ + flattenOffset(): void; + + /** + * Adds an asynchronous listener to the value so you can observe updates from + * animations. This is useful because there is no way to + * synchronously read the value because it might be driven natively. + */ + addListener(callback: ValueListenerCallback): string; + + removeListener(id: string): void; + + removeAllListeners(): void; + + /** + * Stops any running animation or tracking. `callback` is invoked with the + * final value after stopping the animation, which is useful for updating + * state to match the animation position with layout. + */ + stopAnimation(callback?: (value: number) => void): void; + + /** + * Interpolates the value before updating the property, e.g. mapping 0-1 to + * 0-10. + */ + interpolate(config: InterpolationConfigType): AnimatedInterpolation; + } + + type ValueXYListenerCallback = (value: {x: number; y: number}) => void; + + /** + * 2D Value for driving 2D animations, such as pan gestures. Almost identical + * API to normal `Animated.Value`, but multiplexed. Contains two regular + * `Animated.Value`s under the hood. + */ + export class ValueXY extends AnimatedWithChildren { + x: AnimatedValue; + y: AnimatedValue; + + constructor(valueIn?: {x: number | AnimatedValue; y: number | AnimatedValue}); + + setValue(value: {x: number; y: number}): void; + + setOffset(offset: {x: number; y: number}): void; + + flattenOffset(): void + + stopAnimation(callback?: () => number): void; + + addListener(callback: ValueXYListenerCallback): string; + + removeListener(id: string): void; + + /** + * Converts `{x, y}` into `{left, top}` for use in style, e.g. + * + *```javascript + * style={this.state.anim.getLayout()} + *``` + */ + getLayout(): { left: AnimatedValue, top: AnimatedValue }; + + /** + * Converts `{x, y}` into a useable translation transform, e.g. + * + *```javascript + * style={{ + * transform: this.state.anim.getTranslateTransform() + * }} + *``` + */ + getTranslateTransform(): {[key: string]: AnimatedValue}[]; + + } + + type EndResult = {finished: boolean}; + type EndCallback = (result: EndResult) => void; + + interface CompositeAnimation { + start: (callback?: EndCallback) => void; + stop: () => void; + } + + interface AnimationConfig { + isInteraction?: boolean; + useNativeDriver?: boolean; + } + + /** + * Animates a value from an initial velocity to zero based on a decay + * coefficient. + */ + export function decay( + value: AnimatedValue | AnimatedValueXY, + config: DecayAnimationConfig + ): CompositeAnimation; + + interface DecayAnimationConfig extends AnimationConfig { + velocity: number | {x: number, y: number}; + deceleration?: number; + } + + /** + * Animates a value along a timed easing curve. The `Easing` module has tons + * of pre-defined curves, or you can use your own function. + */ + export var timing: ( + value: AnimatedValue | AnimatedValueXY, + config: TimingAnimationConfig + ) => CompositeAnimation; + + interface TimingAnimationConfig extends AnimationConfig { + toValue: number | AnimatedValue | {x: number, y: number} | AnimatedValueXY; + easing?: (value: number) => number; + duration?: number; + delay?: number; + } + + interface SpringAnimationConfig extends AnimationConfig { + toValue: number | AnimatedValue | {x: number, y: number} | AnimatedValueXY; + overshootClamping?: boolean; + restDisplacementThreshold?: number; + restSpeedThreshold?: number; + velocity?: number | {x: number, y: number}; + bounciness?: number; + speed?: number; + tension?: number; + friction?: number; + } + + /** + * Creates a new Animated value composed from two Animated values added + * together. + */ + export function add( + a: Animated, + b: Animated + ): AnimatedAddition; + + class AnimatedAddition extends AnimatedInterpolation {} + + /** + * Creates a new Animated value composed from two Animated values multiplied + * together. + */ + export function multiply( + a: Animated, + b: Animated + ): AnimatedMultiplication; + + class AnimatedMultiplication extends AnimatedInterpolation {} + + /** + * Creates a new Animated value that is the (non-negative) modulo of the + * provided Animated value + */ + export function modulo( + a: Animated, + modulus: number + ): AnimatedModulo; + + class AnimatedModulo extends AnimatedInterpolation {} + + /** + * Starts an animation after the given delay. + */ + export function delay(time: number): CompositeAnimation; + + /** + * Starts an array of animations in order, waiting for each to complete + * before starting the next. If the current running animation is stopped, no + * following animations will be started. + */ + export function sequence( + animations: Array + ): CompositeAnimation; + + /** + * Array of animations may run in parallel (overlap), but are started in + * sequence with successive delays. Nice for doing trailing effects. + */ + + export function stagger( + time: number, + animations: Array + ): CompositeAnimation + + /** + * Spring animation based on Rebound and Origami. Tracks velocity state to + * create fluid motions as the `toValue` updates, and can be chained together. + */ + export var spring: ( + value: AnimatedValue | AnimatedValueXY, + config: SpringAnimationConfig + ) => CompositeAnimation; + + type ParallelConfig = { + stopTogether?: boolean; // If one is stopped, stop all. default: true + } + + /** + * Starts an array of animations all at the same time. By default, if one + * of the animations is stopped, they will all be stopped. You can override + * this with the `stopTogether` flag. + */ + var parallel: ( + animations: Array, + config?: ParallelConfig + ) => CompositeAnimation; + + type Mapping = {[key: string]: Mapping} | AnimatedValue; + interface EventConfig { + listener?: Function + } + + /** + * Takes an array of mappings and extracts values from each arg accordingly, + * then calls `setValue` on the mapped outputs. e.g. + * + *```javascript + * onScroll={Animated.event( + * [{nativeEvent: {contentOffset: {x: this._scrollX}}}] + * {listener}, // Optional async listener + * ) + * ... + * onPanResponderMove: Animated.event([ + * null, // raw event arg ignored + * {dx: this._panX}, // gestureState arg + * ]), + *``` + */ + var event: ( + argMapping: Mapping[], + config?: EventConfig + ) => (...args: any[]) => void; + + /** + * Animated variants of the basic native views. Accepts Animated.Value for + * props and style. + */ + export var View: any; + export var Image: any; + export var Text: any; + } + ////////////////////////////////////////////////////////////////////////// // // R E - E X P O R T S @@ -3447,6 +3867,7 @@ declare namespace __React { export var VibrationIOS: VibrationIOSStatic export type VibrationIOS = VibrationIOSStatic + export var Dimensions: Dimensions; // // /TODO: BGR: These are leftovers of the initial port that must be revisited @@ -3468,19 +3889,6 @@ declare namespace __React { export function __spread( target: any, ...sources: any[] ): any; - - export interface GlobalStatic { - - /** - * Accepts a function as its only argument and calls that function before the next repaint. - * It is an essential building block for animations that underlies all of the JavaScript-based animation APIs. - * In general, you shouldn't need to call this yourself - the animation API's will manage frame updates for you. - * @see https://facebook.github.io/react-native/docs/animations.html#requestanimationframe - */ - requestAnimationFrame( fn: () => void ) : void; - - } - // // Add-Ons // @@ -3497,29 +3905,19 @@ declare namespace __React { export var TestModule: TestModuleStatic export type TestModule = TestModuleStatic } - - } -declare module "react-native" { - - import ReactNative = __React - export = ReactNative +declare interface ReactNativeGlobalStatic { + /** + * Accepts a function as its only argument and calls that function before the next repaint. + * It is an essential building block for animations that underlies all of the JavaScript-based animation APIs. + * In general, you shouldn't need to call this yourself - the animation API's will manage frame updates for you. + * @see https://facebook.github.io/react-native/docs/animations.html#requestanimationframe + */ + requestAnimationFrame( fn: () => void ) : void; } -declare var global: __React.GlobalStatic -declare function require( name: string ): any +declare var global: ReactNativeGlobalStatic; - -//TODO: BGR: this is a left-over from the initial port. Not sure it makes any sense -declare module "Dimensions" { - import * as React from 'react-native'; - - interface Dimensions { - get( what: string ): React.ScaledSize; - } - - var ExportDimensions: Dimensions; - export = ExportDimensions; -} +declare function require( name: string ): any \ No newline at end of file diff --git a/react-native/tsconfig.json b/react-native/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-native/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-notification-system/tsconfig.json b/react-notification-system/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-notification-system/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-props-decorators/tsconfig.json b/react-props-decorators/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-props-decorators/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-redux/tsconfig.json b/react-redux/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-redux/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-router-bootstrap/tsconfig.json b/react-router-bootstrap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-router-bootstrap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-router-redux/tsconfig.json b/react-router-redux/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-router-redux/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-router/react-router-tests.tsx b/react-router/react-router-tests.tsx index 703ce4a9f6..b31924908f 100644 --- a/react-router/react-router-tests.tsx +++ b/react-router/react-router-tests.tsx @@ -8,7 +8,7 @@ import * as React from "react" import * as ReactDOM from "react-dom" -import { browserHistory, hashHistory, Router, Route, IndexRoute, Link } from "react-router" +import { browserHistory, hashHistory, createMemoryHistory, Router, Route, IndexRoute, Link } from "react-router" interface MasterContext { router: ReactRouter.RouterOnContext; diff --git a/react-router/react-router.d.ts b/react-router/react-router.d.ts index 357490e603..07acd52b9e 100644 --- a/react-router/react-router.d.ts +++ b/react-router/react-router.d.ts @@ -86,6 +86,8 @@ declare namespace ReactRouter { const browserHistory: History; const hashHistory: History; + function createMemoryHistory(options?: H.HistoryOptions): H.History + /* components */ interface RouterProps extends React.Props { @@ -245,7 +247,7 @@ declare namespace ReactRouter { interface MatchArgs { routes?: RouteConfig history?: H.History - location?: H.Location + location?: H.Location | string parseQueryString?: ParseQueryString stringifyQuery?: StringifyQuery } @@ -412,6 +414,9 @@ declare module "react-router/lib/useRouterHistory" { export default function useRouterHistory(createHistory: HistoryModule.CreateHistory): CreateRouterHistory; } +declare module "react-router/lib/createMemoryHistory" { + export default ReactRouter.createMemoryHistory; +} declare module "react-router" { @@ -453,6 +458,8 @@ declare module "react-router" { import useRouterHistory from "react-router/lib/useRouterHistory"; + import createMemoryHistory from "react-router/lib/createMemoryHistory"; + // PlainRoute is defined in the API documented at: // https://github.com/rackt/react-router/blob/master/docs/API.md // but not included in any of the .../lib modules above. @@ -492,7 +499,8 @@ declare module "react-router" { RouterContext, PropTypes, match, - useRouterHistory + useRouterHistory, + createMemoryHistory } export default Router diff --git a/react-router/tsconfig.json b/react-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-scroll/tsconfig.json b/react-scroll/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-scroll/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-select/react-select-tests.tsx b/react-select/react-select-tests.tsx index b5258d85ca..8e573e1444 100644 --- a/react-select/react-select-tests.tsx +++ b/react-select/react-select-tests.tsx @@ -5,7 +5,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom"; -import * as Select from "react-select"; +import Select from "react-select"; class SelectTest extends React.Component, {}> { diff --git a/react-select/react-select.d.ts b/react-select/react-select.d.ts index 05056d198e..72cc5d43e8 100644 --- a/react-select/react-select.d.ts +++ b/react-select/react-select.d.ts @@ -173,7 +173,7 @@ declare namespace ReactSelect { * field placeholder, displayed when there's no value * @default "Select..." */ - placeholder?: string; + placeholder?: string | __React.ReactElement; /** * whether to enable searching feature or not * @default true; @@ -302,5 +302,5 @@ declare namespace ReactSelect { declare module "react-select" { const select: ReactSelect.ReactSelectClass; - export = select; + export default select; } diff --git a/react-select/tsconfig.json b/react-select/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-select/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-spinkit/tsconfig.json b/react-spinkit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-spinkit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-swf/tsconfig.json b/react-swf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-swf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-swipeable-views/tsconfig.json b/react-swipeable-views/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-swipeable-views/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-tabs/tsconfig.json b/react-tabs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-tabs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-tagcloud/tsconfig.json b/react-tagcloud/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-tagcloud/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-tap-event-plugin/tsconfig.json b/react-tap-event-plugin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-tap-event-plugin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react-widgets/tsconfig.json b/react-widgets/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react-widgets/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/react/react-0.13.3.d.ts b/react/react-0.13.3.d.ts index a723320141..738b745133 100644 --- a/react/react-0.13.3.d.ts +++ b/react/react-0.13.3.d.ts @@ -730,8 +730,10 @@ declare namespace __React { radialGradient: SVGFactory; rect: SVGFactory; stop: SVGFactory; + symbol: SVGFactory; text: SVGFactory; tspan: SVGFactory; + use: SVGFactory; } // @@ -1538,8 +1540,10 @@ declare module "react/addons" { radialGradient: SVGFactory; rect: SVGFactory; stop: SVGFactory; + symbol: SVGFactory; text: SVGFactory; tspan: SVGFactory; + use: SVGFactory; } // diff --git a/react/react-addons-test-utils.d.ts b/react/react-addons-test-utils.d.ts index 8bf50366e9..9807300ff4 100644 --- a/react/react-addons-test-utils.d.ts +++ b/react/react-addons-test-utils.d.ts @@ -6,7 +6,22 @@ /// declare namespace __React { - interface SyntheticEventData { + interface OptionalEventProperties { + bubbles?: boolean; + cancelable?: boolean; + currentTarget?: EventTarget; + defaultPrevented?: boolean; + eventPhase?: number; + isTrusted?: boolean; + nativeEvent?: Event; + preventDefault?(): void; + stopPropagation?(): void; + target?: EventTarget; + timeStamp?: Date; + type?: string; + } + + interface SyntheticEventData extends OptionalEventProperties { altKey?: boolean; button?: number; buttons?: number; @@ -41,8 +56,7 @@ declare namespace __React { } interface EventSimulator { - (element: Element, eventData?: SyntheticEventData): void; - (component: Component, eventData?: SyntheticEventData): void; + (element: Element | Component, eventData?: SyntheticEventData): void; } interface MockedComponentClass { diff --git a/react/react-global-tests.ts b/react/react-global-tests.ts index 3aaf4b2c1f..1ed7f8484e 100644 --- a/react/react-global-tests.ts +++ b/react/react-global-tests.ts @@ -418,9 +418,10 @@ React.createClass({ // TestUtils addon // -------------------------------------------------------------------------- var node: Element; + React.addons.TestUtils.Simulate.click(node); React.addons.TestUtils.Simulate.change(node); -React.addons.TestUtils.Simulate.keyDown(node, { key: "Enter" }); +React.addons.TestUtils.Simulate.keyDown(node, { key: "Enter", cancelable: false }); var renderer: React.ShallowRenderer = React.addons.TestUtils.createRenderer(); diff --git a/react/react-tests.ts b/react/react-tests.ts index dc0a409dcf..5976fb23bd 100644 --- a/react/react-tests.ts +++ b/react/react-tests.ts @@ -553,7 +553,7 @@ var node: Element = TestUtils.renderIntoDocument(React.DOM.div()); TestUtils.Simulate.click(node); TestUtils.Simulate.change(node); -TestUtils.Simulate.keyDown(node, { key: "Enter" }); +TestUtils.Simulate.keyDown(node, { key: "Enter", cancelable: false }); var renderer: React.ShallowRenderer = TestUtils.createRenderer(); diff --git a/react/react.d.ts b/react/react.d.ts index bfc465c86f..efe8d8c2e8 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -2234,8 +2234,10 @@ declare namespace __React { radialGradient: SVGFactory; rect: SVGFactory; stop: SVGFactory; + symbol: SVGFactory; text: SVGFactory; tspan: SVGFactory; + use: SVGFactory; } // @@ -2464,7 +2466,9 @@ declare namespace JSX { radialGradient: React.SVGProps; rect: React.SVGProps; stop: React.SVGProps; + symbol: React.SVGProps; text: React.SVGProps; tspan: React.SVGProps; + use: React.SVGProps; } } diff --git a/react/tsconfig.json b/react/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/react/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/read/tsconfig.json b/read/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/read/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/readdir-stream/tsconfig.json b/readdir-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/readdir-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rebass/tsconfig.json b/rebass/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rebass/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/recaptcha/tsconfig.json b/recaptcha/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/recaptcha/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/recursive-readdir/tsconfig.json b/recursive-readdir/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/recursive-readdir/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redis/tsconfig.json b/redis/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redis/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redlock/tsconfig.json b/redlock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redlock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-action-utils/tsconfig.json b/redux-action-utils/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-action-utils/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-actions/tsconfig.json b/redux-actions/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-actions/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-debounced/tsconfig.json b/redux-debounced/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-debounced/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-devtools-dock-monitor/tsconfig.json b/redux-devtools-dock-monitor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-devtools-dock-monitor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-devtools-log-monitor/tsconfig.json b/redux-devtools-log-monitor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-devtools-log-monitor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-devtools/tsconfig.json b/redux-devtools/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-devtools/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-form/tsconfig.json b/redux-form/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-form/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-immutable-state-invariant/tsconfig.json b/redux-immutable-state-invariant/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-immutable-state-invariant/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-immutable/tsconfig.json b/redux-immutable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-immutable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-logger/tsconfig.json b/redux-logger/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-logger/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-promise/tsconfig.json b/redux-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-router/tsconfig.json b/redux-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-saga/tsconfig.json b/redux-saga/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-saga/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux-thunk/tsconfig.json b/redux-thunk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux-thunk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/redux/tsconfig.json b/redux/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/redux/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ref-array/tsconfig.json b/ref-array/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ref-array/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ref-struct/tsconfig.json b/ref-struct/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ref-struct/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ref-union/tsconfig.json b/ref-union/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ref-union/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ref/tsconfig.json b/ref/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ref/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/reflux/tsconfig.json b/reflux/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/reflux/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/relateurl/tsconfig.json b/relateurl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/relateurl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/replace-ext/tsconfig.json b/replace-ext/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/replace-ext/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/request-ip/tsconfig.json b/request-ip/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/request-ip/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/request-promise/tsconfig.json b/request-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/request-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/request/tsconfig.json b/request/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/request/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/requirejs-domready/tsconfig.json b/requirejs-domready/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/requirejs-domready/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/requirejs/tsconfig.json b/requirejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/requirejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/reselect/tsconfig.json b/reselect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/reselect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/resemblejs/tsconfig.json b/resemblejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/resemblejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/resolve-from/tsconfig.json b/resolve-from/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/resolve-from/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/response-time/tsconfig.json b/response-time/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/response-time/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rest-io/tsconfig.json b/rest-io/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rest-io/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rest/tsconfig.json b/rest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/restangular/restangular.d.ts b/restangular/restangular.d.ts index ed8d11c754..903c00840a 100644 --- a/restangular/restangular.d.ts +++ b/restangular/restangular.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Restangular v1.4.0 +// Type definitions for Restangular v1.5.0 // Project: https://github.com/mgonto/restangular // Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -56,7 +56,7 @@ declare namespace restangular { addRequestInterceptor(requestInterceptor: (element: any, operation: string, what: string, url: string) => any): void; setFullRequestInterceptor(fullRequestInterceptor: (element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: angular.IRequestShortcutConfig) => {element: any; headers: any; params: any}): void; addFullRequestInterceptor(requestInterceptor: (element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: angular.IRequestShortcutConfig) => {headers: any; params: any; element: any; httpConfig: angular.IRequestShortcutConfig}): void; - setErrorInterceptor(errorInterceptor: (response: IResponse, deferred: angular.IDeferred) => any): void; + setErrorInterceptor(errorInterceptor: (response: IResponse, deferred: angular.IDeferred, responseHandler: (response: restangular.IResponse) => any) => any): void; setRestangularFields(fields: {[fieldName: string]: string}): void; setMethodOverriders(overriders: string[]): void; setJsonp(jsonp: boolean): void; diff --git a/restangular/tsconfig.json b/restangular/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/restangular/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/restful.js/tsconfig.json b/restful.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/restful.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/restify/restify-tests.ts b/restify/restify-tests.ts index ca3c5000ef..c6905878b4 100644 --- a/restify/restify-tests.ts +++ b/restify/restify-tests.ts @@ -4,7 +4,7 @@ import restify = require("restify"); var server = restify.createServer({ formatters: { - 'application/foo': function formatFoo(req, res, body) { + 'application/foo': function formatFoo(req: restify.Request, res: restify.Response, body: any) { if (body instanceof Error) return body.stack; @@ -37,7 +37,7 @@ server.use((req, res, next)=>{}); server.use([(req, res, next)=>{}]); server.use((req, res, next)=>{}, (req, res, next)=>{}); -function send(req, res, next) { +function send(req: restify.Request, res: restify.Response, next: restify.Next) { req.header('key', 'val'); req.header('key') === 'val'; @@ -77,7 +77,7 @@ function send(req, res, next) { res.code === 50; res.contentLength === 50; - res.charSet === 'test'; + res.charSet('test'); res.contentType === 'test'; res.headers; res.id === 'test'; @@ -249,7 +249,15 @@ server.on('after', restify.auditLogger({ log: ()=>{} })); -restify.defaultResponseHeaders = function(data) { +server.on('after', (req: restify.Request, res: restify.Response, route: restify.Route, err: any) => { + route.spec.method === 'GET'; + route.spec.name === 'routeName'; + route.spec.path === '/some/path'; + route.spec.versions === ['v1']; + restify.auditLogger({ log: ()=>{} })(req, res, route, err); +}); + +restify.defaultResponseHeaders = function(data: any) { this.header('Server', 'helloworld'); }; @@ -276,18 +284,16 @@ client = restify.createStringClient({ version: "" }); -client.get("test", send); -client.head('test', send); -client.post('path', {}, send); -client.put('path', {}, send); -client.del('path', send); +client.head('test', function(err: any, req: restify.Request, res: restify.Response) { }); +client.put('path', {}, function(err: any, req: restify.Request, res: restify.Response, obj: any) { }); +client.del('path', function(err: any, req: restify.Request, res: restify.Response) { }); -client.post('/foo', { hello: 'world' }, function(err, req, res, obj) { +client.post('/foo', { hello: 'world' }, function(err: any, req: restify.Request, res: restify.Response, obj: any) { console.log('%d -> %j', res.statusCode, res.headers); console.log('%j', obj); }); -client.get('/foo/bar', function(err, req, res, data) { +client.get('/foo/bar', function(err: any, req: restify.Request, res: restify.Response, data: string) { console.log('%s', data); }); @@ -295,13 +301,13 @@ var client2 = restify.createClient({ url: 'http://127.0.0.1' }); -client2.get('/str/mcavage', function(err, req) { +client2.get('/str/mcavage', function(err: any, req: any) { - req.on('result', function(err, res) { + req.on('result', function(err: any, res: any) { res.body = ''; res.setEncoding('utf8'); - res.on('data', function(chunk) { + res.on('data', function(chunk: string) { res.body += chunk; }); diff --git a/restify/restify.d.ts b/restify/restify.d.ts index e706df5896..f68ea0b2cc 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -6,35 +6,35 @@ /// /// - -import http = require('http'); -import bunyan = require('bunyan'); +declare module "restify" { + import http = require('http'); + import bunyan = require('bunyan'); -interface addressInterface { + interface addressInterface { port: number; family: string; address: string; -} + } + + interface requestFileInterface { + path: string; + type: string; + } + + /** + * Comes from authorizationParser plugin + */ + interface requestAuthorization { + scheme: string; + credentials: string; + basic?: { + username: string; + password: string; + } + } -interface requestFileInterface { - path: string; - type: string; -} - -/** - * Comes from authorizationParser plugin - */ -interface requestAuthorization { - scheme: string; - credentials: string; - basic?: { - username: string; - password: string; - } -} - -interface Request extends http.ServerRequest { + interface Request extends http.ServerRequest { header: (key: string, defaultValue?: string) => any; accepts: (type: string) => boolean; is: (type: string) => boolean; @@ -57,10 +57,10 @@ interface Request extends http.ServerRequest { username?: string; /** available when authorizationParser plugin is used */ authorization?: requestAuthorization; -} + } -interface Response extends http.ServerResponse { - header: (key: string, value?: any) => any; + interface Response extends http.ServerResponse { + header: (key: string, value ?: any) => any; cache: (type?: any, options?: Object) => any; status: (code: number) => any; send: (status?: any, body?: any, headers?: { [header: string]: string }) => any; @@ -71,48 +71,55 @@ interface Response extends http.ServerResponse { contentType: string; headers: Object; id: string; -} + } + + interface RouteSpec { + method: string; + name: string; + path: string; + versions: string[]; + } -interface Route { + interface Route { name: string; method: string; path: RoutePathRegex; - spec: Object; + spec: RouteSpec; types: string[]; versions: string[]; -} - -interface RouteOptions { - name: string; - method: string; - path?: string | RegExp; - url?: string | RegExp; - urlParamPattern?: RegExp; - contentType?: string | string[]; - versions?: string | string[]; -} - -interface RoutePathRegex extends RegExp { + } + + interface RouteOptions { + name: string; + method: string; + path?: string | RegExp; + url?: string | RegExp; + urlParamPattern?: RegExp; + contentType?: string | string[]; + versions?: string | string[]; + } + + interface RoutePathRegex extends RegExp { restifyParams: string[]; -} - -interface Router { + } + + interface Router { name: string; mounts: { [routeName: string]: Route }; versions: string[]; contentType: string[]; routes: { - DELETE: Route[]; - GET: Route[]; - HEAD: Route[]; - OPTIONS: Route[]; - PATCH: Route[]; - POST: Route[]; - PUT: Route[]; + DELETE: Route[]; + GET: Route[]; + HEAD: Route[]; + OPTIONS: Route[]; + PATCH: Route[]; + POST: Route[]; + PUT: Route[]; }; log?: any; toString: () => string; - + /** * Takes an object of route params and query params, and 'renders' a URL * @param {String} routeName the route name @@ -121,23 +128,23 @@ interface Router { * @returns {String} */ render: (routeName: string, params: Object, query?: Object) => string; - + /** * adds a route. * @param {Object} options an options object * @returns {String} returns the route name if creation is successful. */ mount: (options: Object) => string; - + /** * unmounts a route. * @param {String} name the route name * @returns {String} the name of the deleted route (or false if it was not matched) */ unmount: (name: string) => string | boolean; -} + } -interface Server extends http.Server { + interface Server extends http.Server { use(handler: RequestHandler, ...handlers: RequestHandler[]): Server; use(handler: RequestHandler[], ...handlers: RequestHandler[]): Server; use(handler: RequestHandler, ...handlers: RequestHandler[][]): Server; @@ -177,37 +184,37 @@ interface Server extends http.Server { opts(route: any, routeCallBack: RequestHandler[], ...routeCallBacks: RequestHandler[]): Route; opts(route: any, routeCallBack: RequestHandler, ...routeCallBacks: RequestHandler[][]): Route; opts(route: any, routeCallBack: RequestHandler[], ...routeCallBacks: RequestHandler[][]): Route; - + name: string; version: string; log: Object; acceptable: string[]; url: string; address: () => addressInterface; - listen(...args: any[]): any; - close(...args: any[]): any; + listen(... args: any[]): any; + close(... args: any[]): any; pre(routeCallBack: RequestHandler): Server; server: http.Server; router: Router; routes: Route[]; toString: () => string; -} + } -interface ServerOptions { - certificate?: string; - key?: string; - formatters?: Object; - log?: Object; - name?: string; - spdy?: Object; - version?: string; - responseTimeHeader?: string; - responseTimeFormatter?: (durationInMilliseconds: number) => any; - handleUpgrades?: boolean; - router?: Router; -} + interface ServerOptions { + certificate ?: string; + key ?: string; + formatters ?: Object; + log ?: Object; + name ?: string; + spdy ?: Object; + version ?: string; + responseTimeHeader ?: string; + responseTimeFormatter ?: (durationInMilliseconds: number) => any; + handleUpgrades ?: boolean; + router ?: Router; + } -interface ClientOptions { + interface ClientOptions { accept?: string; connectTimeout?: number; dtrace?: Object; @@ -219,26 +226,26 @@ interface ClientOptions { url?: string; userAgent?: string; version?: string; -} + } -interface Client { + interface Client { get: (path: string, callback?: (err: any, req: Request, res: Response, obj: any) => any) => any; head: (path: string, callback?: (err: any, req: Request, res: Response) => any) => any; post: (path: string, object: any, callback?: (err: any, req: Request, res: Response, obj: any) => any) => any; put: (path: string, object: any, callback?: (err: any, req: Request, res: Response, obj: any) => any) => any; del: (path: string, callback?: (err: any, req: Request, res: Response) => any) => any; basicAuth: (username: string, password: string) => any; -} + } -interface HttpClient extends Client { + interface HttpClient extends Client { get: (path?: any, callback?: Function) => any; - head: (path?: any, callback?: Function) => any; + head: (path?:any, callback?: Function) => any; post: (opts?: any, callback?: Function) => any; put: (opts?: any, callback?: Function) => any; del: (opts?: any, callback?: Function) => any; -} + } -interface ThrottleOptions { + interface ThrottleOptions { burst?: number; rate?: number; ip?: boolean; @@ -247,116 +254,117 @@ interface ThrottleOptions { tokensTable?: Object; maxKeys?: number; overrides?: Object; -} + } -interface Next { + interface Next { (err?: any): any; ifError: (err?: any) => any; -} + } -interface RequestHandler { + interface RequestHandler { (req: Request, res: Response, next: Next): any; -} + } -interface CORS { - (cors?: { - origins?: string[]; - credentials?: boolean; - headers?: string[]; - }): RequestHandler; - origins: string[]; - ALLOW_HEADERS: string[]; - credentials: boolean; -} + interface CORS { + (cors?: { + origins?: string[]; + credentials?: boolean; + headers?: string[]; + }): RequestHandler; + origins: string[]; + ALLOW_HEADERS: string[]; + credentials: boolean; + } -export declare function createServer(options?: ServerOptions): Server; + export function createServer(options?: ServerOptions): Server; -export declare function createJsonClient(options?: ClientOptions): Client; -export declare function createStringClient(options?: ClientOptions): Client; -export declare function createClient(options?: ClientOptions): HttpClient; + export function createJsonClient(options?: ClientOptions): Client; + export function createStringClient(options?: ClientOptions): Client; + export function createClient(options?: ClientOptions): HttpClient; -export declare class HttpError { constructor(cause: any, message?: any); } + export class HttpError { constructor(cause: any, message?: any); } -declare class DefiniteHttpError { + class DefiniteHttpError { constructor(message?: any); constructor(cause: any, message?: any); -} - -export declare class BadRequestError extends DefiniteHttpError { } -export declare class UnauthorizedError extends DefiniteHttpError { } -export declare class PaymentRequiredError extends DefiniteHttpError { } -export declare class ForbiddenError extends DefiniteHttpError { } -export declare class NotFoundError extends DefiniteHttpError { } -export declare class MethodNotAllowedError extends DefiniteHttpError { } -export declare class NotAcceptableError extends DefiniteHttpError { } -export declare class ProxyAuthenticationRequiredError extends DefiniteHttpError { } -export declare class RequestTimeoutError extends DefiniteHttpError { } -export declare class ConflictError extends DefiniteHttpError { } -export declare class GoneError extends DefiniteHttpError { } -export declare class LengthRequiredError extends DefiniteHttpError { } -export declare class RequestEntityTooLargeError extends DefiniteHttpError { } -export declare class RequesturiTooLargeError extends DefiniteHttpError { } -export declare class UnsupportedMediaTypeError extends DefiniteHttpError { } -export declare class RequestedRangeNotSatisfiableError extends DefiniteHttpError { } -export declare class ExpectationFailedError extends DefiniteHttpError { } -export declare class ImATeapotError extends DefiniteHttpError { } -export declare class UnprocessableEntityError extends DefiniteHttpError { } -export declare class LockedError extends DefiniteHttpError { } -export declare class FailedDependencyError extends DefiniteHttpError { } -export declare class UnorderedCollectionError extends DefiniteHttpError { } -export declare class UpgradeRequiredError extends DefiniteHttpError { } -export declare class PreconditionRequiredError extends DefiniteHttpError { } -export declare class TooManyRequestsError extends DefiniteHttpError { } -export declare class RequestHeaderFieldsTooLargeError extends DefiniteHttpError { } -export declare class InternalServerError extends DefiniteHttpError { } -export declare class NotImplementedError extends DefiniteHttpError { } -export declare class BadGatewayError extends DefiniteHttpError { } -export declare class ServiceUnavailableError extends DefiniteHttpError { } -export declare class GatewayTimeoutError extends DefiniteHttpError { } -export declare class HttpVersionNotSupportedError extends DefiniteHttpError { } -export declare class VariantAlsoNegotiatesError extends DefiniteHttpError { } -export declare class InsufficientStorageError extends DefiniteHttpError { } -export declare class BandwidthLimitExceededError extends DefiniteHttpError { } -export declare class NotExtendedError extends DefiniteHttpError { } -export declare class NetworkAuthenticationRequiredError extends DefiniteHttpError { } -export declare class RestError extends DefiniteHttpError { } - -export declare class PreconditionFailedError extends RestError { } -export declare class BadDigestError extends RestError { } -export declare class BadMethodError extends RestError { } -export declare class InternalError extends RestError { } -export declare class InvalidArgumentError extends RestError { } -export declare class InvalidContentError extends RestError { } -export declare class InvalidCredentialsError extends RestError { } -export declare class InvalidHeaderError extends RestError { } -export declare class InvalidVersionError extends RestError { } -export declare class MissingParameterError extends RestError { } -export declare class NotAuthorizedError extends RestError { } -export declare class RequestExpiredError extends RestError { } -export declare class RequestThrottledError extends RestError { } -export declare class ResourceNotFoundError extends RestError { } -export declare class WrongAcceptError extends RestError { } - - -export declare function acceptParser(parser: any): RequestHandler; -export declare function authorizationParser(): RequestHandler; -export declare function dateParser(skew?: number): RequestHandler; -export declare function queryParser(options?: Object): RequestHandler; -export declare function urlEncodedBodyParser(options?: Object): RequestHandler[]; -export declare function jsonp(): RequestHandler; -export declare function gzipResponse(options?: Object): RequestHandler; -export declare function bodyParser(options?: Object): RequestHandler[]; -export declare function requestLogger(options?: Object): RequestHandler; -export declare function serveStatic(options?: Object): RequestHandler; -export declare function throttle(options?: ThrottleOptions): RequestHandler; -export declare function conditionalRequest(): RequestHandler[]; -export declare function auditLogger(options?: Object): Function; -export declare function fullResponse(): RequestHandler; -export declare var defaultResponseHeaders: any; -export declare var CORS: CORS; - -export declare module pre { - export function pause(): RequestHandler; - export function sanitizePath(options?: any): RequestHandler; - export function userAgentConnection(options?: any): RequestHandler; + } + + export class BadRequestError extends DefiniteHttpError {} + export class UnauthorizedError extends DefiniteHttpError {} + export class PaymentRequiredError extends DefiniteHttpError {} + export class ForbiddenError extends DefiniteHttpError {} + export class NotFoundError extends DefiniteHttpError {} + export class MethodNotAllowedError extends DefiniteHttpError {} + export class NotAcceptableError extends DefiniteHttpError {} + export class ProxyAuthenticationRequiredError extends DefiniteHttpError {} + export class RequestTimeoutError extends DefiniteHttpError {} + export class ConflictError extends DefiniteHttpError {} + export class GoneError extends DefiniteHttpError {} + export class LengthRequiredError extends DefiniteHttpError {} + export class RequestEntityTooLargeError extends DefiniteHttpError {} + export class RequesturiTooLargeError extends DefiniteHttpError {} + export class UnsupportedMediaTypeError extends DefiniteHttpError {} + export class RequestedRangeNotSatisfiableError extends DefiniteHttpError {} + export class ExpectationFailedError extends DefiniteHttpError {} + export class ImATeapotError extends DefiniteHttpError {} + export class UnprocessableEntityError extends DefiniteHttpError {} + export class LockedError extends DefiniteHttpError {} + export class FailedDependencyError extends DefiniteHttpError {} + export class UnorderedCollectionError extends DefiniteHttpError {} + export class UpgradeRequiredError extends DefiniteHttpError {} + export class PreconditionRequiredError extends DefiniteHttpError {} + export class TooManyRequestsError extends DefiniteHttpError {} + export class RequestHeaderFieldsTooLargeError extends DefiniteHttpError {} + export class InternalServerError extends DefiniteHttpError {} + export class NotImplementedError extends DefiniteHttpError {} + export class BadGatewayError extends DefiniteHttpError {} + export class ServiceUnavailableError extends DefiniteHttpError {} + export class GatewayTimeoutError extends DefiniteHttpError {} + export class HttpVersionNotSupportedError extends DefiniteHttpError {} + export class VariantAlsoNegotiatesError extends DefiniteHttpError {} + export class InsufficientStorageError extends DefiniteHttpError {} + export class BandwidthLimitExceededError extends DefiniteHttpError {} + export class NotExtendedError extends DefiniteHttpError {} + export class NetworkAuthenticationRequiredError extends DefiniteHttpError {} + export class RestError extends DefiniteHttpError {} + + export class PreconditionFailedError extends RestError {} + export class BadDigestError extends RestError {} + export class BadMethodError extends RestError {} + export class InternalError extends RestError {} + export class InvalidArgumentError extends RestError {} + export class InvalidContentError extends RestError {} + export class InvalidCredentialsError extends RestError {} + export class InvalidHeaderError extends RestError {} + export class InvalidVersionError extends RestError {} + export class MissingParameterError extends RestError {} + export class NotAuthorizedError extends RestError {} + export class RequestExpiredError extends RestError {} + export class RequestThrottledError extends RestError {} + export class ResourceNotFoundError extends RestError {} + export class WrongAcceptError extends RestError {} + + + export function acceptParser(parser: any): RequestHandler; + export function authorizationParser(): RequestHandler; + export function dateParser(skew?: number): RequestHandler; + export function queryParser(options?: Object): RequestHandler; + export function urlEncodedBodyParser(options?: Object): RequestHandler[]; + export function jsonp(): RequestHandler; + export function gzipResponse(options?: Object): RequestHandler; + export function bodyParser(options?: Object): RequestHandler[]; + export function requestLogger(options?: Object): RequestHandler; + export function serveStatic(options?: Object): RequestHandler; + export function throttle(options?: ThrottleOptions): RequestHandler; + export function conditionalRequest(): RequestHandler[]; + export function auditLogger(options?: Object): Function; + export function fullResponse(): RequestHandler; + export var defaultResponseHeaders : any; + export var CORS: CORS; + + export module pre { + export function pause(): RequestHandler; + export function sanitizePath(options?: any): RequestHandler; + export function userAgentConnection(options?: any): RequestHandler; + } } diff --git a/restify/tsconfig.json b/restify/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/restify/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rethinkdb/tsconfig.json b/rethinkdb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rethinkdb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/reveal/tsconfig.json b/reveal/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/reveal/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rewire/tsconfig.json b/rewire/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rewire/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rickshaw/tsconfig.json b/rickshaw/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rickshaw/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rimraf/tsconfig.json b/rimraf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rimraf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/riot-api-nodejs/tsconfig.json b/riot-api-nodejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/riot-api-nodejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/riot-games-api/tsconfig.json b/riot-games-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/riot-games-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/riotcontrol/tsconfig.json b/riotcontrol/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/riotcontrol/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/riotjs/tsconfig.json b/riotjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/riotjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rivets/tsconfig.json b/rivets/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rivets/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rosie/tsconfig.json b/rosie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rosie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/roslib/tsconfig.json b/roslib/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/roslib/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/route-recognizer/tsconfig.json b/route-recognizer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/route-recognizer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/router5/tsconfig.json b/router5/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/router5/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/routie/tsconfig.json b/routie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/routie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/royalslider/tsconfig.json b/royalslider/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/royalslider/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rsmq-worker/tsconfig.json b/rsmq-worker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rsmq-worker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rsmq/tsconfig.json b/rsmq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rsmq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rss/tsconfig.json b/rss/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rss/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rsync/tsconfig.json b/rsync/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rsync/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rtree/tsconfig.json b/rtree/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rtree/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/run-sequence/tsconfig.json b/run-sequence/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/run-sequence/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rx-angular/tsconfig.json b/rx-angular/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rx-angular/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rx-dom/tsconfig.json b/rx-dom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rx-dom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rx-jquery/tsconfig.json b/rx-jquery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rx-jquery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/rx/tsconfig.json b/rx/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/rx/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/s3-uploader/tsconfig.json b/s3-uploader/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/s3-uploader/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/s3rver/tsconfig.json b/s3rver/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/s3rver/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/safari-extension/tsconfig.json b/safari-extension/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/safari-extension/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sammy/tsconfig.json b/sammy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sammy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sandboxed-module/tsconfig.json b/sandboxed-module/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sandboxed-module/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sanitize-filename/tsconfig.json b/sanitize-filename/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sanitize-filename/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sanitize-html/tsconfig.json b/sanitize-html/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sanitize-html/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sanitizer/tsconfig.json b/sanitizer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sanitizer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sat/tsconfig.json b/sat/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sat/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/satnav/tsconfig.json b/satnav/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/satnav/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sax/tsconfig.json b/sax/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sax/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/scalike/tsconfig.json b/scalike/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/scalike/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/screenfull/tsconfig.json b/screenfull/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/screenfull/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/scripts/generate-tsconfigs.ts b/scripts/generate-tsconfigs.ts new file mode 100644 index 0000000000..cfe00563fc --- /dev/null +++ b/scripts/generate-tsconfigs.ts @@ -0,0 +1,35 @@ +/// + +import * as fs from 'fs'; +import * as path from 'path'; + +const template = { + compilerOptions: { + module: "commonjs", + target: "es2015", + noImplicitAny: true, + strictNullChecks: true, + baseUrl: "../" + } +}; + +const home = path.join(__dirname, '..'); + +fs.readdir(home, (err, dirs) => { + if (err) throw err; + + for (const dir of dirs.map(d => path.join(home, d))) { + fs.lstat(dir, (err, stats) => { + if (err) throw err; + if (stats.isDirectory()) { + const target = path.join(dir, 'tsconfig.json'); + fs.exists(target, exists => { + if (!exists) { + fs.writeFile(target, JSON.stringify(template, undefined, 4), { encoding: 'utf-8' }); + } + }); + } + }); + } +}); + diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json new file mode 100644 index 0000000000..9f921afd45 --- /dev/null +++ b/scripts/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": false + } +} diff --git a/scroller/tsconfig.json b/scroller/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/scroller/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/scrolltofixed/tsconfig.json b/scrolltofixed/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/scrolltofixed/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/scrypt-async/tsconfig.json b/scrypt-async/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/scrypt-async/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/seedrandom/tsconfig.json b/seedrandom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/seedrandom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/segment-analytics/tsconfig.json b/segment-analytics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/segment-analytics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/select2/tsconfig.json b/select2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/select2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/selectize/tsconfig.json b/selectize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/selectize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/selenium-webdriver/tsconfig.json b/selenium-webdriver/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/selenium-webdriver/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/semaphore/tsconfig.json b/semaphore/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/semaphore/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/semver/tsconfig.json b/semver/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/semver/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sencha_touch/tsconfig.json b/sencha_touch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sencha_touch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sendgrid/tsconfig.json b/sendgrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sendgrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sentence-case/tsconfig.json b/sentence-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sentence-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sequelize-fixtures/tsconfig.json b/sequelize-fixtures/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sequelize-fixtures/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sequelize/sequelize-tests.ts b/sequelize/sequelize-tests.ts index cfcefd6926..e67a8c4b7d 100644 --- a/sequelize/sequelize-tests.ts +++ b/sequelize/sequelize-tests.ts @@ -880,6 +880,8 @@ User.findAll( { order : [['id', ';DELETE YOLO INJECTIONS']] } ); User.findAll( { include : [User], order : [[User, 'id', ';DELETE YOLO INJECTIONS']] } ); User.findAll( { include : [User], order : [['id', 'ASC NULLS LAST'], [User, 'id', 'DESC NULLS FIRST']] } ); User.findAll( { include : [{ model : User, where : { title : 'DoDat' }, include : [{ model : User }] }] } ); +User.findAll( { attributes: ['username', 'data']}); +User.findAll( { attributes: {include: ['username', 'data']} }); User.findById( 'a string' ); diff --git a/sequelize/tsconfig.json b/sequelize/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sequelize/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/serve-favicon/tsconfig.json b/serve-favicon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/serve-favicon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/serve-index/tsconfig.json b/serve-index/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/serve-index/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/serve-static/tsconfig.json b/serve-static/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/serve-static/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sharedworker/tsconfig.json b/sharedworker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sharedworker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sharepoint/tsconfig.json b/sharepoint/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sharepoint/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/shelljs/tsconfig.json b/shelljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/shelljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/shortid/tsconfig.json b/shortid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/shortid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/should-promised/tsconfig.json b/should-promised/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/should-promised/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/should/tsconfig.json b/should/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/should/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/showdown/tsconfig.json b/showdown/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/showdown/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/shuffle-array/tsconfig.json b/shuffle-array/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/shuffle-array/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/siesta/tsconfig.json b/siesta/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/siesta/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sigmajs/tsconfig.json b/sigmajs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sigmajs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/signalr/tsconfig.json b/signalr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/signalr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/signals/tsconfig.json b/signals/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/signals/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/signature_pad/tsconfig.json b/signature_pad/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/signature_pad/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/simple-cw-node/tsconfig.json b/simple-cw-node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/simple-cw-node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/simple-mock/tsconfig.json b/simple-mock/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/simple-mock/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/simplebar/tsconfig.json b/simplebar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/simplebar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/simplestorage.js/tsconfig.json b/simplestorage.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/simplestorage.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sinon-chai/tsconfig.json b/sinon-chai/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sinon-chai/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sinon-chrome/tsconfig.json b/sinon-chrome/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sinon-chrome/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sinon-stub-promise/tsconfig.json b/sinon-stub-promise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sinon-stub-promise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sinon/tsconfig.json b/sinon/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sinon/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sipml/tsconfig.json b/sipml/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sipml/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sjcl/tsconfig.json b/sjcl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sjcl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ski/tsconfig.json b/ski/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ski/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/skyway/tsconfig.json b/skyway/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/skyway/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/slate-irc/tsconfig.json b/slate-irc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/slate-irc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/slick-carousel/tsconfig.json b/slick-carousel/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/slick-carousel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/slickgrid/SlickGrid.d.ts b/slickgrid/SlickGrid.d.ts index 9dbdd0e75c..96f91eaaf1 100644 --- a/slickgrid/SlickGrid.d.ts +++ b/slickgrid/SlickGrid.d.ts @@ -1395,9 +1395,13 @@ declare namespace Slick { export interface OnSortEventArgs extends GridEventArgs { multiColumnSort: boolean; - sortCol?: SortColumn; - sortCols?: SortColumn[]; + + // Single column returned + sortCol?: Column; sortAsc: boolean; + + // Multiple columns returned + sortCols?: SortColumn[]; } export interface OnScrollEventArgs extends GridEventArgs { diff --git a/slickgrid/tsconfig.json b/slickgrid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/slickgrid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/slideout/tsconfig.json b/slideout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/slideout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/smoothie/tsconfig.json b/smoothie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/smoothie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/smtpapi/tsconfig.json b/smtpapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/smtpapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/snake-case/tsconfig.json b/snake-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/snake-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/snapsvg/tsconfig.json b/snapsvg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/snapsvg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/soap/tsconfig.json b/soap/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/soap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/socket.io-client/tsconfig.json b/socket.io-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/socket.io-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/socket.io-redis/tsconfig.json b/socket.io-redis/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/socket.io-redis/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/socket.io.users/tsconfig.json b/socket.io.users/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/socket.io.users/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/socket.io/tsconfig.json b/socket.io/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/socket.io/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/socketty/tsconfig.json b/socketty/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/socketty/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sockjs-client/tsconfig.json b/sockjs-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sockjs-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sockjs-node/tsconfig.json b/sockjs-node/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sockjs-node/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sockjs/tsconfig.json b/sockjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sockjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sortablejs/tsconfig.json b/sortablejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sortablejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/soundjs/tsconfig.json b/soundjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/soundjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/source-map-support/tsconfig.json b/source-map-support/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/source-map-support/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/source-map/tsconfig.json b/source-map/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/source-map/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/space-pen/tsconfig.json b/space-pen/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/space-pen/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/speakeasy/tsconfig.json b/speakeasy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/speakeasy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/spectrum/tsconfig.json b/spectrum/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/spectrum/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/spin/tsconfig.json b/spin/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/spin/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/split/tsconfig.json b/split/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/split/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/spotify-api/tsconfig.json b/spotify-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/spotify-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/spotify-web-api-js/tsconfig.json b/spotify-web-api-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/spotify-web-api-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sprintf-js/tsconfig.json b/sprintf-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sprintf-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sprintf/tsconfig.json b/sprintf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sprintf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sql.js/tsconfig.json b/sql.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sql.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sqlite3/tsconfig.json b/sqlite3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sqlite3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/squirejs/tsconfig.json b/squirejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/squirejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/srp/tsconfig.json b/srp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/srp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ss-utils/tsconfig.json b/ss-utils/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ss-utils/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ssh2/tsconfig.json b/ssh2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ssh2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stack-mapper/tsconfig.json b/stack-mapper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stack-mapper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stack-trace/tsconfig.json b/stack-trace/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stack-trace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stacktrace-js/tsconfig.json b/stacktrace-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stacktrace-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stampit/tsconfig.json b/stampit/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stampit/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stamplay-js-sdk/tsconfig.json b/stamplay-js-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stamplay-js-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/state-machine/tsconfig.json b/state-machine/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/state-machine/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/static-eval/tsconfig.json b/static-eval/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/static-eval/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stats/tsconfig.json b/stats/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stats/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/statsd-client/tsconfig.json b/statsd-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/statsd-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/status-bar/tsconfig.json b/status-bar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/status-bar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/statuses/tsconfig.json b/statuses/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/statuses/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/steam/tsconfig.json b/steam/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/steam/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/storejs/tsconfig.json b/storejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/storejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stream-meter/tsconfig.json b/stream-meter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stream-meter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stream-series/tsconfig.json b/stream-series/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stream-series/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stream-to-array/tsconfig.json b/stream-to-array/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stream-to-array/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/streamjs/tsconfig.json b/streamjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/streamjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/string/tsconfig.json b/string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/string_score/tsconfig.json b/string_score/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/string_score/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/strip-json-comments/tsconfig.json b/strip-json-comments/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/strip-json-comments/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stripe-checkout/tsconfig.json b/stripe-checkout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stripe-checkout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stripe/tsconfig.json b/stripe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stripe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/strophe/tsconfig.json b/strophe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/strophe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/stylus/tsconfig.json b/stylus/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/stylus/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/succinct/tsconfig.json b/succinct/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/succinct/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sugar/tsconfig.json b/sugar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sugar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/superagent/tsconfig.json b/superagent/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/superagent/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/supertest-as-promised/tsconfig.json b/supertest-as-promised/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/supertest-as-promised/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/supertest/tsconfig.json b/supertest/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/supertest/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/survey-knockout/survey-knockout-tests.ts b/survey-knockout/survey-knockout-tests.ts new file mode 100644 index 0000000000..4d45d371c7 --- /dev/null +++ b/survey-knockout/survey-knockout-tests.ts @@ -0,0 +1,22 @@ +/// + +function createFromCodeTests() { + var survey = new Survey.SurveyModel(); + var page = survey.addNewPage("Page 1"); + page.addNewQuestion("text", "question1"); + page.addNewQuestion("comment", "question2"); + page = survey.addNewPage("Page 2"); + page.addNewQuestion("matrix", "question3"); + page.addNewQuestion("matrixdropdown", "question4"); + return survey; +} +function createFromJSONTests() { + var survey = new Survey.SurveyModel({ + pages: [{ + "name": "page1", + "questions": [{ "type": "text", "name": "textQuestion", "isRequired": "true" }, { "type": "checkbox", "name": "checkboxQuestion", "isRequired": "true", "choices": ["red", "white"] }] + }] + }); + survey.setValue("textQuestion", "newValue"); + return survey; +} diff --git a/survey-knockout/survey-knockout.d.ts b/survey-knockout/survey-knockout.d.ts new file mode 100644 index 0000000000..e5e26e23b8 --- /dev/null +++ b/survey-knockout/survey-knockout.d.ts @@ -0,0 +1,1087 @@ +// Type definitions for Survey JavaScript library v0.9.3 +// Project: http://surveyjs.org/ +// Definitions by: Andrew Telnov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module Survey { + interface HashTable { + [key: string]: T; + } + interface ISurvey { + getValue(name: string): any; + setValue(name: string, newValue: any): any; + getComment(name: string): string; + setComment(name: string, newValue: string): any; + pageVisibilityChanged(page: IPage, newValue: boolean): any; + questionVisibilityChanged(question: IQuestion, newValue: boolean): any; + questionAdded(question: IQuestion, index: number): any; + questionRemoved(question: IQuestion): any; + validateQuestion(name: string): SurveyError; + isDesignMode: boolean; + } + interface IQuestion { + name: string; + visible: boolean; + hasTitle: boolean; + setVisibleIndex(value: number): any; + onSurveyValueChanged(newValue: any): any; + } + interface IPage { + visible: boolean; + } + class ItemValue { + static Separator: string; + static setData(items: Array, values: Array): void; + static getData(items: Array): any; + private itemValue; + private itemText; + constructor(value: any, text?: string); + getType(): string; + value: any; + hasText: boolean; + text: string; + } + class Base { + getType(): string; + } + class SurveyError { + getText(): string; + } + class Event { + private callbacks; + isEmpty: boolean; + fire(sender: any, options: Options): void; + add(func: T): void; + remove(func: T): void; + } +} + +declare module Survey { + class dxSurveyService { + static serviceUrl: string; + constructor(); + loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void; + sendResult(postId: string, result: JSON, onSendResult: (success: boolean, response: any) => void, clientId?: string, isPartialCompleted?: boolean): void; + getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: Array, response: any) => void): void; + isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void; + } +} + +declare module Survey { + var surveyLocalization: { + currentLocale: string; + locales: {}; + getString: (strName: string) => any; + getLocales: () => string[]; + }; + var surveyStrings: { + pagePrevText: string; + pageNextText: string; + completeText: string; + otherItemText: string; + progressText: string; + optionsCaption: string; + requiredError: string; + numericError: string; + textMinLength: string; + minSelectError: string; + maxSelectError: string; + numericMinMax: string; + numericMin: string; + numericMax: string; + invalidEmail: string; + }; +} + +/// +/// +declare module Survey { + class AnswerRequiredError extends SurveyError { + constructor(); + getText(): string; + } + class RequreNumericError extends SurveyError { + constructor(); + getText(): string; + } + class CustomError extends SurveyError { + private text; + constructor(text: string); + getText(): string; + } +} + +/// +declare module Survey { + class JsonObjectProperty { + name: string; + private typeValue; + private choicesValue; + private choicesfunc; + className: string; + classNamePart: string; + baseClassName: string; + defaultValue: any; + onGetValue: (obj: any) => any; + onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any; + constructor(name: string); + type: string; + hasToUseGetValue: (obj: any) => any; + isDefaultValue(value: any): boolean; + getValue(obj: any): any; + hasToUseSetValue: (obj: any, value: any, jsonConv: JsonObject) => any; + setValue(obj: any, value: any, jsonConv: JsonObject): void; + getObjType(objType: string): string; + getClassName(className: string): string; + choices: Array; + setChoices(value: Array, valueFunc: () => Array): void; + } + class JsonMetadataClass { + name: string; + creator: () => any; + parentName: string; + static requiredSymbol: string; + static typeSymbol: string; + properties: Array; + requiredProperties: Array; + constructor(name: string, propertiesNames: Array, creator?: () => any, parentName?: string); + find(name: string): JsonObjectProperty; + private getPropertyName(propertyName); + } + class JsonMetadata { + private classes; + private childrenClasses; + private classProperties; + private classRequiredProperties; + addClass(name: string, propertiesNames: Array, creator?: () => any, parentName?: string): JsonMetadataClass; + overrideClassCreatore(name: string, creator: () => any): void; + setPropertyValues(name: string, propertyName: string, propertyClassName: string, defaultValue?: any, onGetValue?: (obj: any) => any, onSetValue?: (obj: any, value: any, jsonConv: JsonObject) => any): void; + setPropertyChoices(name: string, propertyName: string, choices: Array, choicesFunc?: () => Array): void; + setPropertyClassInfo(name: string, propertyName: string, baseClassName: string, classNamePart?: string): void; + getProperties(name: string): Array; + createClass(name: string): any; + getChildrenClasses(name: string, canBeCreated?: boolean): Array; + getRequiredProperties(name: string): Array; + private fillChildrenClasses(name, canBeCreated, result); + private findClass(name); + private findProperty(name, propertyName); + private fillProperties(name, list); + private addProperty(property, list, endIndex); + private fillRequiredProperties(name, list); + } + class JsonError { + type: string; + message: string; + description: string; + at: Number; + constructor(type: string, message: string); + getFullDescription(): string; + } + class JsonUnknownPropertyError extends JsonError { + propertyName: string; + className: string; + constructor(propertyName: string, className: string); + } + class JsonMissingTypeErrorBase extends JsonError { + baseClassName: string; + type: string; + message: string; + constructor(baseClassName: string, type: string, message: string); + } + class JsonMissingTypeError extends JsonMissingTypeErrorBase { + propertyName: string; + baseClassName: string; + constructor(propertyName: string, baseClassName: string); + } + class JsonIncorrectTypeError extends JsonMissingTypeErrorBase { + propertyName: string; + baseClassName: string; + constructor(propertyName: string, baseClassName: string); + } + class JsonRequiredPropertyError extends JsonError { + propertyName: string; + className: string; + constructor(propertyName: string, className: string); + } + class JsonObject { + private static typePropertyName; + private static positionPropertyName; + private static metaDataValue; + static metaData: JsonMetadata; + errors: JsonError[]; + toJsonObject(obj: any): any; + toObject(jsonObj: any, obj: any): void; + protected toJsonObjectCore(obj: any, property: JsonObjectProperty): any; + protected valueToJson(obj: any, result: any, property: JsonObjectProperty): void; + protected valueToObj(value: any, obj: any, key: any, property: JsonObjectProperty): void; + private isValueArray(value); + private createNewObj(value, property); + private checkNewObjectOnErrors(newObj, value, property, className); + private addNewError(error, jsonObj); + private valueToArray(value, obj, key, property); + private findProperty(properties, key); + } +} + +/// +/// +declare module Survey { + class QuestionBase extends Base implements IQuestion { + name: string; + protected data: ISurvey; + private visibleValue; + private visibleIndexValue; + width: string; + visibilityChangedCallback: () => void; + visibleIndexChangedCallback: () => void; + constructor(name: string); + visible: boolean; + visibleIndex: number; + hasErrors(): boolean; + hasTitle: boolean; + hasComment: boolean; + setData(newValue: ISurvey): void; + protected fireCallback(callback: () => void): void; + protected onSetData(): void; + protected onCreating(): void; + onSurveyValueChanged(newValue: any): void; + setVisibleIndex(value: number): void; + } +} + +/// +/// +declare module Survey { + class QuestionFactory { + static Instance: QuestionFactory; + static DefaultChoices: (string | { + value: number; + text: string; + })[]; + private creatorHash; + registerQuestion(questionType: string, questionCreator: (name: string) => QuestionBase): void; + getAllTypes(): Array; + createQuestion(questionType: string, name: string): QuestionBase; + } +} + +/// +/// +/// +declare module Survey { + class PageModel extends Base implements IPage { + name: string; + questions: Array; + data: ISurvey; + title: string; + visibleIndex: number; + private numValue; + private visibleValue; + constructor(name?: string); + num: number; + visible: boolean; + getType(): string; + isVisible: boolean; + addQuestion(question: QuestionBase, index?: number): void; + addNewQuestion(questionType: string, name: string): QuestionBase; + removeQuestion(question: QuestionBase): void; + hasErrors(): boolean; + addQuestionsToList(list: Array, visibleOnly?: boolean): void; + protected onNumChanged(value: number): void; + } +} + +/// +/// +/// +declare module Survey { + class ValidatorResult { + value: any; + error: SurveyError; + constructor(value: any, error?: SurveyError); + } + class SurveyValidator extends Base { + text: string; + constructor(); + protected getErrorText(name: string): string; + protected getDefaultErrorText(name: string): string; + validate(value: any, name?: string): ValidatorResult; + } + interface IValidatorOwner { + validators: Array; + value: any; + getValidatorTitle(): string; + } + class ValidatorRunner { + run(owner: IValidatorOwner): SurveyError; + } + class NumericValidator extends SurveyValidator { + minValue: number; + maxValue: number; + constructor(minValue?: number, maxValue?: number); + getType(): string; + validate(value: any, name?: string): ValidatorResult; + protected getDefaultErrorText(name: string): any; + private isNumber(value); + } + class TextValidator extends SurveyValidator { + minLength: number; + constructor(minLength?: number); + getType(): string; + validate(value: any, name?: string): ValidatorResult; + protected getDefaultErrorText(name: string): any; + } + class AnswerCountValidator extends SurveyValidator { + minCount: number; + maxCount: number; + constructor(minCount?: number, maxCount?: number); + getType(): string; + validate(value: any, name?: string): ValidatorResult; + protected getDefaultErrorText(name: string): string; + } + class RegexValidator extends SurveyValidator { + regex: string; + constructor(regex?: string); + getType(): string; + validate(value: any, name?: string): ValidatorResult; + } + class EmailValidator extends SurveyValidator { + private re; + constructor(); + getType(): string; + validate(value: any, name?: string): ValidatorResult; + protected getDefaultErrorText(name: string): any; + } +} + +/// +/// +/// +/// +/// +declare module Survey { + class Question extends QuestionBase implements IValidatorOwner { + name: string; + private titleValue; + private questionValue; + private isRequiredValue; + private hasCommentValue; + private hasOtherValue; + errors: Array; + validators: Array; + valueChangedCallback: () => void; + commentChangedCallback: () => void; + errorsChangedCallback: () => void; + constructor(name: string); + hasTitle: boolean; + title: string; + supportComment(): boolean; + supportOther(): boolean; + isRequired: boolean; + hasComment: boolean; + hasOther: boolean; + protected onSetData(): void; + value: any; + comment: string; + isEmpty(): boolean; + hasErrors(): boolean; + private checkForErrors(); + protected onCheckForErrors(errors: Array): void; + protected runValidators(): SurveyError; + private isValueChangedInSurvey; + protected setNewValue(newValue: any): void; + protected onValueChanged(): void; + private setNewComment(newValue); + onSurveyValueChanged(newValue: any): void; + getValidatorTitle(): string; + } +} + +/// +/// +declare module Survey { + class QuestionSelectBase extends Question { + otherItem: ItemValue; + choicesValues: Array; + otherErrorText: string; + choicesOrderValue: string; + constructor(name: string); + isOtherSelected: boolean; + choices: Array; + choicesOrder: string; + otherText: string; + visibleChoices: Array; + supportComment(): boolean; + supportOther(): boolean; + protected onCheckForErrors(errors: Array): void; + sortVisibleChoices(array: Array): Array; + sortArray(array: Array, mult: number): Array; + randomizeArray(array: Array): Array; + } + class QuestionCheckboxBase extends QuestionSelectBase { + name: string; + private colCountValue; + colCountChangedCallback: () => void; + constructor(name: string); + colCount: number; + } +} + +/// +/// +declare module Survey { + class QuestionCheckboxModel extends QuestionCheckboxBase { + name: string; + constructor(name: string); + isOtherSelected: boolean; + getType(): string; + } +} + +/// +/// +declare module Survey { + class QuestionCommentModel extends Question { + name: string; + rows: number; + cols: number; + constructor(name: string); + getType(): string; + isEmpty(): boolean; + } +} + +/// +/// +declare module Survey { + class QuestionDropdownModel extends QuestionSelectBase { + name: string; + private optionsCaptionValue; + constructor(name: string); + optionsCaption: string; + getType(): string; + } +} + +/// +/// +declare module Survey { + class QuestionHtmlModel extends QuestionBase { + name: string; + private htmlValue; + constructor(name: string); + getType(): string; + html: string; + } +} + +/// +/// +declare module Survey { + interface IMatrixData { + onMatrixRowChanged(row: MatrixRowModel): any; + } + class MatrixRowModel extends Base { + name: any; + text: string; + fullName: string; + private data; + protected rowValue: any; + constructor(name: any, text: string, fullName: string, data: IMatrixData, value: any); + value: any; + protected onValueChanged(): void; + } + class QuestionMatrixModel extends Question implements IMatrixData { + name: string; + private columnsValue; + private rowsValue; + private isRowChanging; + private generatedVisibleRows; + constructor(name: string); + getType(): string; + hasRows: boolean; + columns: Array; + rows: Array; + visibleRows: Array; + protected createMatrixRow(name: any, text: string, fullName: string, value: any): MatrixRowModel; + protected onValueChanged(): void; + onMatrixRowChanged(row: MatrixRowModel): void; + } +} + +/// +/// +declare module Survey { + interface IMatrixDropdownData { + onCellChanged(cell: MatrixDropdownCellModel): any; + columns: Array; + choices: Array; + optionsCaption: string; + } + class MatrixDropdownColumn extends Base { + name: string; + private choicesValue; + private titleValue; + optionsCaption: string; + constructor(name: string, title?: string); + getType(): string; + title: string; + choices: Array; + } + class MatrixDropdownCellModel { + column: MatrixDropdownColumn; + row: MatrixDropdownRowModel; + private data; + private cellValue; + constructor(column: MatrixDropdownColumn, row: MatrixDropdownRowModel, data: IMatrixDropdownData, value: any); + choices: Array; + optionsCaption: string; + value: any; + protected onValueChanged(): void; + } + class MatrixDropdownRowModel { + name: any; + text: string; + protected data: IMatrixDropdownData; + protected rowValue: any; + cells: Array; + constructor(name: any, text: string, data: IMatrixDropdownData, value: any); + value: any; + private buildCells(); + protected createCell(column: MatrixDropdownColumn, value: any): MatrixDropdownCellModel; + protected getCellValue(column: MatrixDropdownColumn): any; + } + class QuestionMatrixDropdownModel extends Question implements IMatrixDropdownData { + name: string; + private columnsValue; + private rowsValue; + private choicesValue; + private optionsCaptionValue; + private isRowChanging; + private generatedVisibleRows; + constructor(name: string); + getType(): string; + columns: Array; + rows: Array; + choices: Array; + optionsCaption: string; + addColumn(name: string, title?: string): MatrixDropdownColumn; + visibleRows: Array; + protected createMatrixRow(name: any, text: string, value: any): MatrixDropdownRowModel; + protected onValueChanged(): void; + onCellChanged(cell: MatrixDropdownCellModel): void; + } +} + +/// +/// +declare module Survey { + interface IMultipleTextData { + getMultipleTextValue(name: string): any; + setMultipleTextValue(name: string, value: any): any; + } + class MultipleTextItemModel extends Base implements IValidatorOwner { + name: any; + private data; + private titleValue; + validators: Array; + constructor(name?: any, title?: string); + getType(): string; + setData(data: IMultipleTextData): void; + title: string; + value: any; + onValueChanged(newValue: any): void; + getValidatorTitle(): string; + } + class QuestionMultipleTextModel extends Question implements IMultipleTextData { + name: string; + itemSize: number; + items: Array; + constructor(name: string); + getType(): string; + AddItem(name: string, title?: string): MultipleTextItemModel; + private isMultipleItemValueChanging; + protected onValueChanged(): void; + protected createTextItem(name: string, title: string): MultipleTextItemModel; + protected onItemValueChanged(): void; + protected runValidators(): SurveyError; + getMultipleTextValue(name: string): any; + setMultipleTextValue(name: string, value: any): void; + } +} + +/// +/// +declare module Survey { + class QuestionRadiogroupModel extends QuestionCheckboxBase { + name: string; + constructor(name: string); + getType(): string; + } +} + +/// +/// +declare module Survey { + class QuestionRatingModel extends Question { + name: string; + static defaultRateValues: ItemValue[]; + private rates; + mininumRateDescription: string; + maximumRateDescription: string; + rateValuesChangedCallback: () => void; + constructor(name: string); + rateValues: Array; + visibleRateValues: ItemValue[]; + getType(): string; + supportComment(): boolean; + supportOther(): boolean; + } +} + +/// +/// +declare module Survey { + class QuestionTextModel extends Question { + name: string; + size: number; + constructor(name: string); + getType(): string; + isEmpty(): boolean; + } +} + +/// +/// +declare module Survey { + class Trigger extends Base { + static operatorsValue: HashTable; + static operators: HashTable; + private opValue; + value: any; + constructor(); + operator: string; + check(value: any): void; + protected onSuccess(): void; + protected onFailure(): void; + } + interface ISurveyTriggerOwner { + getObjects(pages: string[], questions: string[]): any[]; + } + class SurveyTrigger extends Trigger { + name: string; + pages: string[]; + questions: string[]; + private owner; + constructor(); + setOwner(owner: ISurveyTriggerOwner): void; + protected onSuccess(): void; + protected onFailure(): void; + onTrigger(func: Function): void; + protected onItemSuccess(item: any): void; + protected onItemFailure(item: any): void; + } + class SurveyTriggerVisible extends SurveyTrigger { + constructor(); + getType(): string; + protected onItemSuccess(item: any): void; + protected onItemFailure(item: any): void; + } +} + +/// +/// +/// +/// +/// +declare module Survey { + class SurveyModel extends Base implements ISurvey, ISurveyTriggerOwner { + surveyId: string; + surveyPostId: string; + clientId: string; + sendResultOnPageNext: boolean; + commentPrefix: string; + title: string; + showNavigationButtons: boolean; + showTitle: boolean; + showPageTitles: boolean; + requiredText: string; + showProgressBar: string; + pages: Array; + triggers: Array; + private currentPageValue; + private valuesHash; + private pagePrevTextValue; + private pageNextTextValue; + private completeTextValue; + private showPageNumbersValue; + private showQuestionNumbersValue; + private localeValue; + onComplete: Event<(sender: SurveyModel) => any, any>; + onCurrentPageChanged: Event<(sender: SurveyModel, options: any) => any, any>; + onValueChanged: Event<(sender: SurveyModel, options: any) => any, any>; + onVisibleChanged: Event<(sender: SurveyModel, options: any) => any, any>; + onPageVisibleChanged: Event<(sender: SurveyModel, options: any) => any, any>; + onQuestionAdded: Event<(sender: SurveyModel, options: any) => any, any>; + onQuestionRemoved: Event<(sender: SurveyModel, options: any) => any, any>; + onValidateQuestion: Event<(sender: SurveyModel, options: any) => any, any>; + onSendResult: Event<(sender: SurveyModel, options: any) => any, any>; + onGetResult: Event<(sender: SurveyModel, options: any) => any, any>; + jsonErrors: Array; + mode: string; + constructor(jsonObj?: any, renderedElement?: any); + getType(): string; + locale: string; + pagePrevText: string; + pageNextText: string; + completeText: string; + showPageNumbers: boolean; + showQuestionNumbers: string; + data: any; + comments: any; + visiblePages: Array; + isEmpty: boolean; + PageCount: number; + visiblePageCount: number; + currentPage: PageModel; + protected currentPageChanged(newValue: PageModel, oldValue: PageModel): void; + isDesignMode: boolean; + nextPage(): boolean; + isCurrentPageHasErrors: boolean; + prevPage(): boolean; + completeLastPage(): boolean; + isFirstPage: boolean; + isLastPage: boolean; + progressText: string; + getPage(index: number): PageModel; + addPage(page: PageModel): void; + addNewPage(name: string): PageModel; + removePage(page: PageModel): void; + getQuestionByName(name: string): IQuestion; + getQuestionsByNames(names: string[]): IQuestion[]; + getPageByQuestion(question: IQuestion): PageModel; + getPageByName(name: string): PageModel; + getPagesByNames(names: string[]): PageModel[]; + getAllQuestions(visibleOnly?: boolean): Array; + protected createNewPage(name: string): PageModel; + private notifyQuestionOnValueChanged(name, newValue); + private notifyAllQuestionsOnValueChanged(); + private checkTriggers(name, newValue); + sendResult(postId?: string, clientId?: string, isPartialCompleted?: boolean): void; + getResult(resultId: string, name: string): void; + loadSurveyFromService(surveyId?: string, element?: any): void; + protected onLoadSurveyFromService(element: any): void; + private updateVisibleIndexes(); + private updatePageVisibleIndexes(showIndex); + private updateQuestionVisibleIndexes(questions, showIndex); + private setJsonObject(jsonObj); + protected onBeforeCreating(): void; + protected onCreating(): void; + getValue(name: string): any; + setValue(name: string, newValue: any): void; + getComment(name: string): string; + setComment(name: string, newValue: string): void; + questionVisibilityChanged(question: IQuestion, newValue: boolean): void; + pageVisibilityChanged(page: IPage, newValue: boolean): void; + questionAdded(question: IQuestion, index: number): void; + questionRemoved(question: IQuestion): void; + validateQuestion(name: string): SurveyError; + getObjects(pages: string[], questions: string[]): any[]; + } +} + +declare module Survey { + class SurveyWindowModel extends Base { + static surveyElementName: string; + surveyValue: SurveyModel; + windowElement: HTMLDivElement; + isShowingValue: boolean; + isExpandedValue: boolean; + titleValue: string; + templateValue: string; + constructor(jsonObj: any); + getType(): string; + survey: SurveyModel; + isShowing: boolean; + isExpanded: boolean; + title: string; + expand(): void; + collapse(): void; + protected createSurvey(jsonObj: any): SurveyModel; + protected expandcollapse(value: boolean): void; + } +} + +/// +declare module Survey { +} + +/// +declare module Survey { +} + +/// +declare module Survey { + class Page extends PageModel { + koNo: any; + constructor(name?: string); + protected onCreating(): void; + protected onNumChanged(value: number): void; + } +} + +/// +declare module Survey { + class QuestionImplementorBase { + question: QuestionBase; + koVisible: any; + koNo: any; + koErrors: any; + constructor(question: QuestionBase); + protected onVisibilityChanged(): void; + protected onVisibleIndexChanged(): void; + protected getNo(): string; + } +} + +/// +/// +declare module Survey { + class QuestionImplementor extends QuestionImplementorBase { + question: Question; + private isUpdating; + koValue: any; + koComment: any; + constructor(question: Question); + protected onValueChanged(): void; + protected onCommentChanged(): void; + protected onVisibilityChanged(): void; + protected onVisibleIndexChanged(): void; + protected onErrorsChanged(): void; + protected createkoValue(): any; + protected setkoValue(newValue: any): void; + protected updateValue(newValue: any): void; + protected updateComment(newValue: any): void; + protected getNo(): string; + } +} + +/// +declare module Survey { + class QuestionSelectBaseImplementor extends QuestionImplementor { + koOtherVisible: any; + constructor(question: Question); + protected isOtherSelected: boolean; + } + class QuestionCheckboxBaseImplementor extends QuestionSelectBaseImplementor { + koWidth: any; + constructor(question: Question); + protected onColCountChanged(): void; + protected colWidth: string; + private koAfterRender(el, con); + } +} + +/// +/// +declare module Survey { + class QuestionCheckbox extends QuestionCheckboxModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class QuestionComment extends QuestionCommentModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class QuestionDropdown extends QuestionDropdownModel { + name: string; + constructor(name: string); + } +} + +/// +/// +declare module Survey { + class QuestionHtml extends QuestionHtmlModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class MatrixRow extends MatrixRowModel { + name: any; + text: string; + fullName: string; + private isValueUpdating; + koValue: any; + constructor(name: any, text: string, fullName: string, data: IMatrixData, value: any); + protected onValueChanged(): void; + } + class QuestionMatrix extends QuestionMatrixModel { + name: string; + constructor(name: string); + protected createMatrixRow(name: any, text: string, fullName: string, value: any): MatrixRowModel; + } +} + +/// +declare module Survey { + class MatrixDropdownCell extends MatrixDropdownCellModel { + column: MatrixDropdownColumn; + row: MatrixDropdownRowModel; + private isValueUpdating; + koValue: any; + constructor(column: MatrixDropdownColumn, row: MatrixDropdownRowModel, data: IMatrixDropdownData, value: any); + protected onValueChanged(): void; + } + class MatrixDropdownRow extends MatrixDropdownRowModel { + name: any; + text: string; + constructor(name: any, text: string, data: IMatrixDropdownData, value: any); + protected createCell(column: MatrixDropdownColumn, value: any): MatrixDropdownCellModel; + } + class QuestionMatrixDropdown extends QuestionMatrixDropdownModel { + name: string; + constructor(name: string); + protected createMatrixRow(name: any, text: string, value: any): MatrixDropdownRowModel; + } +} + +/// +declare module Survey { + class MultipleTextItem extends MultipleTextItemModel { + name: any; + private isKOValueUpdating; + koValue: any; + constructor(name?: any, title?: string); + onValueChanged(newValue: any): void; + } + class QuestionMultipleText extends QuestionMultipleTextModel { + name: string; + constructor(name: string); + protected createTextItem(name: string, title: string): MultipleTextItemModel; + } +} + +/// +declare module Survey { + class QuestionRadiogroup extends QuestionRadiogroupModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class QuestionRating extends QuestionRatingModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class QuestionText extends QuestionTextModel { + name: string; + constructor(name: string); + } +} + +/// +declare module Survey { + class SurveyBase extends SurveyModel { + private renderedElement; + onRendered: Event<(sender: SurveyModel) => any, any>; + koCurrentPage: any; + koIsFirstPage: any; + koIsLastPage: any; + dummyObservable: any; + koProgress: any; + koProgressText: any; + constructor(jsonObj?: any, renderedElement?: any); + render(element?: any): void; + protected createNewPage(name: string): Page; + protected getTemplate(): string; + protected onBeforeCreating(): void; + protected currentPageChanged(newValue: PageModel, oldValue: PageModel): void; + protected onLoadSurveyFromService(element: any): void; + private applyBinding(); + private updateKoCurrentPage(); + private getProgress(); + } +} + +/// +/// +declare module Survey { + class SurveyWindowBase extends SurveyWindowModel { + koExpanded: any; + doExpand: any; + constructor(jsonObj: any); + protected createSurvey(jsonObj: any): SurveyModel; + protected expandcollapse(value: boolean): void; + protected template: string; + show(): void; + protected getDefaultTemplate(): string; + hide(): void; + private changeExpanded(); + private onComplete(); + } +} + +declare module Survey { + class SurveyTemplateTextBase { + constructor(); + replaceText(replaceText: string, id: string, questionType?: string): void; + protected getId(id: string, questionType: string): string; + protected text: string; + } +} + +declare module template.ko { + var html: string; +} + +/// +/// +declare module Survey { + class Survey extends SurveyBase { + constructor(jsonObj?: any, renderedElement?: any); + protected getTemplate(): string; + } +} + +/// +/// +declare module Survey { + class SurveyWindow extends SurveyWindowBase { + koExpanded: any; + doExpand: any; + constructor(jsonObj: any); + protected createSurvey(jsonObj: any): SurveyModel; + protected getDefaultTemplate(): string; + } +} + +declare module template.window.ko { + var html: string; +} + +/// +/// +declare module Survey { + class SurveyTemplateText extends SurveyTemplateTextBase { + protected text: string; + } +} + diff --git a/survey-knockout/tsconfig.json b/survey-knockout/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/survey-knockout/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svg-injector/tsconfig.json b/svg-injector/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svg-injector/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svg-pan-zoom/tsconfig.json b/svg-pan-zoom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svg-pan-zoom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svg-sprite/tsconfig.json b/svg-sprite/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svg-sprite/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svg.js/tsconfig.json b/svg.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svg.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svg2png/tsconfig.json b/svg2png/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svg2png/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/svgjs.draggable/tsconfig.json b/svgjs.draggable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/svgjs.draggable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swag/tsconfig.json b/swag/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swag/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swaggerize-express/tsconfig.json b/swaggerize-express/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swaggerize-express/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swap-case/tsconfig.json b/swap-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swap-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/sweetalert/tsconfig.json b/sweetalert/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/sweetalert/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swfobject/tsconfig.json b/swfobject/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swfobject/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swiftclick/tsconfig.json b/swiftclick/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swiftclick/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swig-email-templates/tsconfig.json b/swig-email-templates/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swig-email-templates/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swig/tsconfig.json b/swig/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swig/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swipe/tsconfig.json b/swipe/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swipe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swiper/tsconfig.json b/swiper/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swiper/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swipeview/tsconfig.json b/swipeview/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swipeview/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/switchery/tsconfig.json b/switchery/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/switchery/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/swiz/tsconfig.json b/swiz/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/swiz/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/systemjs/tsconfig.json b/systemjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/systemjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tabris/tsconfig.json b/tabris/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tabris/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tabtab/tsconfig.json b/tabtab/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tabtab/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tape/tsconfig.json b/tape/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tape/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tar/tsconfig.json b/tar/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tcomb/tsconfig.json b/tcomb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tcomb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tea-merge/tsconfig.json b/tea-merge/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tea-merge/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tedious-connection-pool/tsconfig.json b/tedious-connection-pool/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tedious-connection-pool/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tedious/tsconfig.json b/tedious/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tedious/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/teechart/tsconfig.json b/teechart/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/teechart/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/temp-fs/tsconfig.json b/temp-fs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/temp-fs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/temp/tsconfig.json b/temp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/temp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tether-shepherd/tsconfig.json b/tether-shepherd/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tether-shepherd/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tether/tsconfig.json b/tether/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tether/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/text-buffer/tsconfig.json b/text-buffer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/text-buffer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/text-encoding/tsconfig.json b/text-encoding/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/text-encoding/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/three/tsconfig.json b/three/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/three/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/thrift/tsconfig.json b/thrift/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/thrift/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/through/tsconfig.json b/through/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/through/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/through2/tsconfig.json b/through2/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/through2/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/timelinejs/tsconfig.json b/timelinejs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/timelinejs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/timezone-js/tsconfig.json b/timezone-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/timezone-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/timezonecomplete/tsconfig.json b/timezonecomplete/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/timezonecomplete/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tinycolor/tsconfig.json b/tinycolor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tinycolor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/titanium/tsconfig.json b/titanium/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/titanium/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/title-case/tsconfig.json b/title-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/title-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tmp/tsconfig.json b/tmp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tmp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/to-title-case-gouch/tsconfig.json b/to-title-case-gouch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/to-title-case-gouch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/toastr/tsconfig.json b/toastr/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/toastr/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tooltipster/tsconfig.json b/tooltipster/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tooltipster/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/touch-events/tsconfig.json b/touch-events/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/touch-events/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/traceback/tsconfig.json b/traceback/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/traceback/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tracking/tsconfig.json b/tracking/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tracking/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/traverse/tsconfig.json b/traverse/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/traverse/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/traverson/tsconfig.json b/traverson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/traverson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/trunk8/tsconfig.json b/trunk8/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/trunk8/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tsmonad/tsconfig.json b/tsmonad/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tsmonad/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tspromise/tsconfig.json b/tspromise/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tspromise/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/turf/tsconfig.json b/turf/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/turf/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/turf/turf.d.ts b/turf/turf.d.ts index 6ed1d617a3..c85d8aa393 100644 --- a/turf/turf.d.ts +++ b/turf/turf.d.ts @@ -574,3 +574,7 @@ declare namespace turf { */ function reclass(input: GeoJSON.FeatureCollection, inField: string, outField: string, translations: Array): GeoJSON.FeatureCollection; } + +declare module 'turf' { + export= turf; +} diff --git a/tv4/tsconfig.json b/tv4/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tv4/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tween.js/tsconfig.json b/tween.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tween.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/tweenjs/tsconfig.json b/tweenjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/tweenjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/twig/tsconfig.json b/twig/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/twig/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/twitter-text/tsconfig.json b/twitter-text/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/twitter-text/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/twitter/tsconfig.json b/twitter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/twitter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/twix/tsconfig.json b/twix/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/twix/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/type-check/tsconfig.json b/type-check/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/type-check/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/type-detect/tsconfig.json b/type-detect/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/type-detect/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/type-name/tsconfig.json b/type-name/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/type-name/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/typeahead/tsconfig.json b/typeahead/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/typeahead/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/typescript-deferred/tsconfig.json b/typescript-deferred/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/typescript-deferred/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/typescript-services/tsconfig.json b/typescript-services/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/typescript-services/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/typescript/tsconfig.json b/typescript/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/typescript/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ua-parser-js/tsconfig.json b/ua-parser-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ua-parser-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/uglify-js/tsconfig.json b/uglify-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/uglify-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ui-grid/tsconfig.json b/ui-grid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ui-grid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ui-grid/ui-grid.d.ts b/ui-grid/ui-grid.d.ts index d898d8bbd1..f14a48d5a9 100644 --- a/ui-grid/ui-grid.d.ts +++ b/ui-grid/ui-grid.d.ts @@ -1512,6 +1512,10 @@ declare namespace uiGrid { * Defaults to 150 */ expandableRowHeight?: number; + /** + * reference to the parent grid scope (the parent scope of the sub-grid element) + */ + expandableRowScope?: ng.IScope | Object; /** * Mandatory. The template for your expanded row */ diff --git a/ui-router-extras/tsconfig.json b/ui-router-extras/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ui-router-extras/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ui-select/tsconfig.json b/ui-select/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ui-select/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/umbraco/tsconfig.json b/umbraco/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/umbraco/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/umzug/tsconfig.json b/umzug/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/umzug/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/underscore-ko/tsconfig.json b/underscore-ko/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/underscore-ko/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/underscore.string/tsconfig.json b/underscore.string/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/underscore.string/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/underscore/tsconfig.json b/underscore/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/underscore/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/undertaker/tsconfig.json b/undertaker/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/undertaker/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/uniq/tsconfig.json b/uniq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/uniq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/unique-random/tsconfig.json b/unique-random/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/unique-random/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/unity-webapi/tsconfig.json b/unity-webapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/unity-webapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/universal-analytics/tsconfig.json b/universal-analytics/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/universal-analytics/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/unorm/tsconfig.json b/unorm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/unorm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/update-notifier/tsconfig.json b/update-notifier/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/update-notifier/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/upper-case-first/tsconfig.json b/upper-case-first/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/upper-case-first/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/upper-case/tsconfig.json b/upper-case/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/upper-case/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/urbanairship-cordova/tsconfig.json b/urbanairship-cordova/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/urbanairship-cordova/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/uri-templates/tsconfig.json b/uri-templates/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/uri-templates/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/urijs/tsconfig.json b/urijs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/urijs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/url-template/tsconfig.json b/url-template/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/url-template/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/urlrouter/tsconfig.json b/urlrouter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/urlrouter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/urlsafe-base64/tsconfig.json b/urlsafe-base64/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/urlsafe-base64/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/usage/tsconfig.json b/usage/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/usage/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/username/tsconfig.json b/username/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/username/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/utils-merge/tsconfig.json b/utils-merge/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/utils-merge/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/uuid-1345/tsconfig.json b/uuid-1345/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/uuid-1345/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/uuid/tsconfig.json b/uuid/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/uuid/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/valerie/tsconfig.json b/valerie/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/valerie/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/validator/tsconfig.json b/validator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/validator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vec3/tsconfig.json b/vec3/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vec3/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vega/tsconfig.json b/vega/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vega/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/velocity-animate/tsconfig.json b/velocity-animate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/velocity-animate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/verror/tsconfig.json b/verror/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/verror/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vex-js/tsconfig.json b/vex-js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vex-js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vexflow/tsconfig.json b/vexflow/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vexflow/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index 8fec777460..a651c850d4 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -167,8 +167,8 @@ declare namespace Vex { } namespace Annotation { - const enum Justify {LEFT, CENTER, RIGHT, CENTER_STEM} - const enum VerticalJustify {TOP, CENTER, BOTTOM, CENTER_STEM} + const enum Justify {LEFT = 1, CENTER, RIGHT, CENTER_STEM} + const enum VerticalJustify {TOP = 1, CENTER, BOTTOM, CENTER_STEM} const CATEGORY : string; } @@ -194,7 +194,7 @@ declare namespace Vex { } namespace Barline { - const enum type {SINGLE, DOUBLE, END, REPEAT_BEGIN, REPEAT_END, REPEAT_BOTH, NONE} + const enum type {SINGLE = 1, DOUBLE, END, REPEAT_BEGIN, REPEAT_END, REPEAT_BOTH, NONE} } class Barline extends StaveModifier { @@ -365,7 +365,7 @@ declare namespace Vex { } namespace Curve { - const enum Position {NEAR_HEAD, NEAR_TOP} + const enum Position {NEAR_HEAD = 1, NEAR_TOP} } class Dot extends Modifier { @@ -553,7 +553,7 @@ declare namespace Vex { } namespace Modifier { - const enum Position {LEFT, RIGHT, ABOVE, BELOW} + const enum Position {LEFT = 1, RIGHT, ABOVE, BELOW} const CATEGORY : string } @@ -717,7 +717,7 @@ declare namespace Vex { } namespace PedalMarking { - const enum Styles {TEXT, BRACKET, MIXED} + const enum Styles {TEXT = 1, BRACKET, MIXED} const GLYPHS : {[name : string] : {code : string, x_shift : number, y_shift : number}}; } @@ -774,8 +774,8 @@ declare namespace Vex { } namespace Renderer { - const enum Backends {CANVAS, RAPHAEL, SVG, VML} - const enum LineEndType {NONE, UP, DOWN} + const enum Backends {CANVAS = 1, RAPHAEL, SVG, VML} + const enum LineEndType {NONE = 1, UP, DOWN} } class Repetition extends StaveModifier { @@ -790,7 +790,7 @@ declare namespace Vex { } namespace Repetition { - const enum type { NONE, CODA_LEFT, CODA_RIGHT, SEGNO_LEFT, SEGNO_RIGHT, DC, DC_AL_CODA, DC_AL_FINE, DS, DS_AL_CODA, DS_AL_FINE, FINE } + const enum type { NONE = 1, CODA_LEFT, CODA_RIGHT, SEGNO_LEFT, SEGNO_RIGHT, DC, DC_AL_CODA, DC_AL_FINE, DS, DS_AL_CODA, DS_AL_FINE, FINE } } class Stave { @@ -859,7 +859,7 @@ declare namespace Vex { } namespace StaveConnector { - const enum type { SINGLE_RIGHT, SINGLE_LEFT, SINGLE, DOUBLE, BRACE, BRACKET, BOLD_DOUBLE_LEFT, BOLD_DOUBLE_RIGHT, THIN_DOUBLE } + const enum type { SINGLE_RIGHT = 0, SINGLE_LEFT = 1, SINGLE = 1, DOUBLE = 2, BRACE = 3, BRACKET = 4, BOLD_DOUBLE_LEFT = 5, BOLD_DOUBLE_RIGHT = 6, THIN_DOUBLE = 7 } } class StaveHairpin { @@ -874,7 +874,7 @@ declare namespace Vex { } namespace StaveHairpin { - const enum type { CRESC, DECRESC } + const enum type { CRESC = 1, DECRESC } } class StaveLine { @@ -892,8 +892,8 @@ declare namespace Vex { } namespace StaveLine { - const enum TextVerticalPosition { TOP, BOTTOM } - const enum TextJustification { LEFT, CENTER, RIGHT } + const enum TextVerticalPosition { TOP = 1, BOTTOM } + const enum TextJustification { LEFT = 1, CENTER, RIGHT } } class StaveModifier { @@ -1105,7 +1105,7 @@ declare namespace Vex { } namespace Stroke { - const enum Type {BRUSH_DOWN, BRUSH_UP, ROLL_DOWN, ROLL_UP, RASQUEDO_DOWN, RASQUEDO_UP} + const enum Type {BRUSH_DOWN = 1, BRUSH_UP, ROLL_DOWN, ROLL_UP, RASQUEDO_DOWN, RASQUEDO_UP} const CATEGORY : string; } @@ -1212,7 +1212,7 @@ declare namespace Vex { } namespace TextBracket { - const enum Positions {TOP, BOTTOM} + const enum Positions {TOP = 1, BOTTOM = -1} } class TextDynamics extends Note { @@ -1232,7 +1232,7 @@ declare namespace Vex { } namespace TextNote { - const enum Justification {LEFT, CENTER, RIGHT} + const enum Justification {LEFT = 1, CENTER, RIGHT} const GLYPHS : {[name : string] : {code : string, point : number, x_shift : number, y_shift : number}} } @@ -1390,7 +1390,7 @@ declare namespace Vex { } namespace Voice { - const enum Mode {STRICT, SOFT, FULL} + const enum Mode {STRICT = 1, SOFT, FULL} } class VoiceGroup { @@ -1407,7 +1407,7 @@ declare namespace Vex { } namespace Volta { - const enum type {NONE, BEGIN, MID, END, BEGIN_END} + const enum type {NONE = 1, BEGIN, MID, END, BEGIN_END} } } } diff --git a/victor/tsconfig.json b/victor/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/victor/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/videojs/tsconfig.json b/videojs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/videojs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/viewporter/tsconfig.json b/viewporter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/viewporter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vimeo/tsconfig.json b/vimeo/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vimeo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vinyl-buffer/tsconfig.json b/vinyl-buffer/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vinyl-buffer/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vinyl-fs/tsconfig.json b/vinyl-fs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vinyl-fs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vinyl-paths/tsconfig.json b/vinyl-paths/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vinyl-paths/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vinyl-source-stream/tsconfig.json b/vinyl-source-stream/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vinyl-source-stream/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vinyl/tsconfig.json b/vinyl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vinyl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/virtual-dom/tsconfig.json b/virtual-dom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/virtual-dom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vortex-web-client/tsconfig.json b/vortex-web-client/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vortex-web-client/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/voximplant-websdk/tsconfig.json b/voximplant-websdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/voximplant-websdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vso-node-api/tsconfig.json b/vso-node-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vso-node-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vue-resource/tsconfig.json b/vue-resource/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vue-resource/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vue-router/tsconfig.json b/vue-router/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vue-router/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vue/tsconfig.json b/vue/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/vue/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/vue/vue-tests.ts b/vue/vue-tests.ts index 360625f05d..c8612ca870 100644 --- a/vue/vue-tests.ts +++ b/vue/vue-tests.ts @@ -8,7 +8,7 @@ namespace TestConfig { Vue.config.unsafeDelimiters = ['{!!', '!!}']; Vue.config.silent = true; Vue.config.async = false; - Vue.config.convertAllProperties = true; + Vue.config.devtools = true; } namespace TestGlobalAPI { @@ -67,6 +67,16 @@ namespace TestGlobalAPI { } } }); + Vue.component("component", { + props: { + a: [String, Number], + b: { + type: [Number, Function], + required: true + } + }, + init: function() {} + }); var transition = Vue.transition("transition"); Vue.transition("transition", transition); Vue.transition("transition", { diff --git a/vue/vue.d.ts b/vue/vue.d.ts index b655cf6d9b..faee50af8f 100644 --- a/vue/vue.d.ts +++ b/vue/vue.d.ts @@ -1,4 +1,4 @@ -// Type definitions for vuejs 1.0.16 +// Type definitions for vuejs 1.0.21 // Project: https://github.com/vuejs/vue // Definitions by: odangosan , kaorun343 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -11,7 +11,7 @@ interface Array { declare namespace vuejs { interface PropOption { - type?: { new (...args: any[]): any; }; + type?: { new (...args: any[]): any; } | { new (...args: any[]): any; }[]; required?: boolean; default?: any; twoWay?: boolean; @@ -68,13 +68,14 @@ declare namespace vuejs { interface ComponentOption { data?: { [key: string]: any } | Function; - props?: string[] | { [key: string]: (PropOption | { new (...args: any[]): any; }) }; + props?: string[] | { [key: string]: (PropOption | { new (...args: any[]): any; } | { new (...args: any[]): any; }[]) }; computed?: { [key: string]: (Function | ComputedOption) }; methods?: { [key: string]: Function }; watch?: { [key: string]: ((val: any, oldVal: any) => void) | string | WatchOption }; el?: string | HTMLElement | (() => HTMLElement); template?: string; replace?: boolean; + init?(): void; created?(): void; beforeCompile?(): void; compiled?(): void; @@ -143,7 +144,7 @@ declare namespace vuejs { unsafeDelimiters: [string, string]; silent: boolean; async: boolean; - convertAllProperties: boolean; + devtools: boolean; } interface VueUtil { diff --git a/w2ui/tsconfig.json b/w2ui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/w2ui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wake_on_lan/tsconfig.json b/wake_on_lan/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wake_on_lan/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wampy/tsconfig.json b/wampy/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wampy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/watch/tsconfig.json b/watch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/watch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webaudioapi/tsconfig.json b/webaudioapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webaudioapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webcl/tsconfig.json b/webcl/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webcl/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webcola/tsconfig.json b/webcola/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webcola/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webcomponents.js/tsconfig.json b/webcomponents.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webcomponents.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webcrypto/tsconfig.json b/webcrypto/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webcrypto/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webdriverio/tsconfig.json b/webdriverio/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webdriverio/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webfontloader/tsconfig.json b/webfontloader/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webfontloader/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webgl-ext/tsconfig.json b/webgl-ext/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webgl-ext/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webix/tsconfig.json b/webix/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webix/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webmidi/tsconfig.json b/webmidi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webmidi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webpack/tsconfig.json b/webpack/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webpack/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webrtc/tsconfig.json b/webrtc/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webrtc/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/websocket/tsconfig.json b/websocket/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/websocket/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webspeechapi/tsconfig.json b/webspeechapi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webspeechapi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/websql/tsconfig.json b/websql/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/websql/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webtorrent/tsconfig.json b/webtorrent/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webtorrent/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/webvr-api/tsconfig.json b/webvr-api/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/webvr-api/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/whatwg-fetch/tsconfig.json b/whatwg-fetch/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/whatwg-fetch/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/when/tsconfig.json b/when/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/when/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/which/tsconfig.json b/which/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/which/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wiiu/tsconfig.json b/wiiu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wiiu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/windows-1251/tsconfig.json b/windows-1251/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/windows-1251/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/windows-service/tsconfig.json b/windows-service/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/windows-service/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/winjs/tsconfig.json b/winjs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/winjs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/winreg/tsconfig.json b/winreg/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/winreg/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/winrt/tsconfig.json b/winrt/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/winrt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/winston/tsconfig.json b/winston/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/winston/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wiredep/tsconfig.json b/wiredep/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wiredep/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wnumb/tsconfig.json b/wnumb/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wnumb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wolfy87-eventemitter/tsconfig.json b/wolfy87-eventemitter/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wolfy87-eventemitter/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wordcloud/tsconfig.json b/wordcloud/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wordcloud/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wrap-ansi/tsconfig.json b/wrap-ansi/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wrap-ansi/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wrap-ansi/wrap-ansi-tests.ts b/wrap-ansi/wrap-ansi-tests.ts new file mode 100644 index 0000000000..8fb08dfd8b --- /dev/null +++ b/wrap-ansi/wrap-ansi-tests.ts @@ -0,0 +1,8 @@ +/// + +import wrapAnsi = require("wrap-ansi"); + +wrapAnsi("input", 80) === "output"; +wrapAnsi("input", 80, {}) === "output"; +wrapAnsi("input", 80, { hard: true }) === "output"; +wrapAnsi("input", 80, { hard: false }) === "output"; diff --git a/wrap-ansi/wrap-ansi.d.ts b/wrap-ansi/wrap-ansi.d.ts new file mode 100644 index 0000000000..79a63abc78 --- /dev/null +++ b/wrap-ansi/wrap-ansi.d.ts @@ -0,0 +1,20 @@ +// Type definitions for wrap-ansi v2.0.0 +// Project: https://www.npmjs.com/package/wrap-ansi +// Definitions by: Klaus Reimer +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "wrap-ansi" { + /** + * Wrap words to the specified column width. + * + * @param input String with ANSI escape codes. Like one styled by chalk. + * @param columns Number of columns to wrap the text to. + * @param options By default the wrap is soft, meaning long words may extend past the column width. Setting + * this to true will make it hard wrap at the column width. + */ + function wrapAnsi(input: string, columns: number, options?: { hard?: boolean }): string; + + namespace wrapAnsi {} + + export = wrapAnsi; +} diff --git a/wreck/tsconfig.json b/wreck/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wreck/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wrench/tsconfig.json b/wrench/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wrench/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ws/tsconfig.json b/ws/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ws/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/wu/tsconfig.json b/wu/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/wu/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/x-editable/tsconfig.json b/x-editable/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/x-editable/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/x2js/tsconfig.json b/x2js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/x2js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xdate/tsconfig.json b/xdate/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xdate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xdomain/tsconfig.json b/xdomain/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xdomain/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xlsx/tsconfig.json b/xlsx/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xlsx/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xml-parser/tsconfig.json b/xml-parser/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xml-parser/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xml2js/tsconfig.json b/xml2js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xml2js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xmlbuilder/tsconfig.json b/xmlbuilder/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xmlbuilder/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xmldom/tsconfig.json b/xmldom/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xmldom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xmltojson/tsconfig.json b/xmltojson/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xmltojson/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xregexp/tsconfig.json b/xregexp/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xregexp/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xrm/tsconfig.json b/xrm/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xrm/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xsockets/tsconfig.json b/xsockets/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xsockets/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/xss-filters/tsconfig.json b/xss-filters/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/xss-filters/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yamljs/tsconfig.json b/yamljs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yamljs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yandex-money-sdk/tsconfig.json b/yandex-money-sdk/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yandex-money-sdk/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yargs/tsconfig.json b/yargs/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yargs/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/ydn-db/tsconfig.json b/ydn-db/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/ydn-db/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yeoman-generator/tsconfig.json b/yeoman-generator/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yeoman-generator/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yfiles/tsconfig.json b/yfiles/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yfiles/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yosay/tsconfig.json b/yosay/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yosay/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/youtube/tsconfig.json b/youtube/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/youtube/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/yui/tsconfig.json b/yui/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/yui/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/z-schema/tsconfig.json b/z-schema/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/z-schema/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zepto/tsconfig.json b/zepto/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zepto/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zeroclipboard/tsconfig.json b/zeroclipboard/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zeroclipboard/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zip.js/tsconfig.json b/zip.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zip.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zmq/tsconfig.json b/zmq/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zmq/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zone.js/tsconfig.json b/zone.js/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zone.js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file diff --git a/zynga-scroller/tsconfig.json b/zynga-scroller/tsconfig.json new file mode 100644 index 0000000000..ac08134cd7 --- /dev/null +++ b/zynga-scroller/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../" + } +} \ No newline at end of file