mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-27 22:49:20 +08:00
Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere # Conflicts: # azure-mobile-services-client/AzureMobileServicesClient.d.ts # bookshelf/bookshelf.d.ts # hapi/hapi.d.ts # helmet/helmet.d.ts # mongodb/mongodb.d.ts # nock/nock.d.ts # react-bootstrap/react-bootstrap.d.ts # react-helmet/react-helmet.d.ts # restify/restify.d.ts # sequelize/sequelize.d.ts
This commit is contained in:
9
DataStream.js/tsconfig.json
Normal file
9
DataStream.js/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
FileSaver/tsconfig.json
Normal file
9
FileSaver/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
Finch/tsconfig.json
Normal file
9
Finch/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
Headroom/tsconfig.json
Normal file
9
Headroom/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
HubSpot-pace/tsconfig.json
Normal file
9
HubSpot-pace/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
JSONStream/tsconfig.json
Normal file
9
JSONStream/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
OpenJsCad/tsconfig.json
Normal file
9
OpenJsCad/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
PayPal-Cordova-Plugin/tsconfig.json
Normal file
9
PayPal-Cordova-Plugin/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
_debugger/tsconfig.json
Normal file
9
_debugger/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
abs/tsconfig.json
Normal file
9
abs/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
absolute/tsconfig.json
Normal file
9
absolute/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
acc-wizard/tsconfig.json
Normal file
9
acc-wizard/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
accounting/tsconfig.json
Normal file
9
accounting/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
ace/tsconfig.json
Normal file
9
ace/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
acl/tsconfig.json
Normal file
9
acl/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
acorn/tsconfig.json
Normal file
9
acorn/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
adal/tsconfig.json
Normal file
9
adal/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
add2home/tsconfig.json
Normal file
9
add2home/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
adm-zip/tsconfig.json
Normal file
9
adm-zip/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
ag-grid/tsconfig.json
Normal file
9
ag-grid/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
agenda/tsconfig.json
Normal file
9
agenda/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
alertify/tsconfig.json
Normal file
9
alertify/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
alt/tsconfig.json
Normal file
9
alt/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amazon-product-api/tsconfig.json
Normal file
9
amazon-product-api/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amcharts/tsconfig.json
Normal file
9
amcharts/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amplify-deferred/tsconfig.json
Normal file
9
amplify-deferred/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amplify/tsconfig.json
Normal file
9
amplify/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amqp-rpc/tsconfig.json
Normal file
9
amqp-rpc/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
amqplib/tsconfig.json
Normal file
9
amqplib/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
analytics-node/tsconfig.json
Normal file
9
analytics-node/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-agility/tsconfig.json
Normal file
9
angular-agility/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-bootstrap-calendar/tsconfig.json
Normal file
9
angular-bootstrap-calendar/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-bootstrap-lightbox/tsconfig.json
Normal file
9
angular-bootstrap-lightbox/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-breadcrumb/tsconfig.json
Normal file
9
angular-breadcrumb/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-cookie/tsconfig.json
Normal file
9
angular-cookie/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-dialog-service/tsconfig.json
Normal file
9
angular-dialog-service/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-dynamic-locale/tsconfig.json
Normal file
9
angular-dynamic-locale/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-environment/tsconfig.json
Normal file
9
angular-environment/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-file-upload/tsconfig.json
Normal file
9
angular-file-upload/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-formly/tsconfig.json
Normal file
9
angular-formly/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-fullscreen/tsconfig.json
Normal file
9
angular-fullscreen/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-gettext/tsconfig.json
Normal file
9
angular-gettext/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-google-analytics/tsconfig.json
Normal file
9
angular-google-analytics/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-growl-v2/tsconfig.json
Normal file
9
angular-growl-v2/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-hotkeys/tsconfig.json
Normal file
9
angular-hotkeys/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-http-auth/tsconfig.json
Normal file
9
angular-http-auth/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-httpi/tsconfig.json
Normal file
9
angular-httpi/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-idle/tsconfig.json
Normal file
9
angular-idle/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
16
angular-jwt/angular-jwt.d.ts
vendored
16
angular-jwt/angular-jwt.d.ts
vendored
@@ -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 {
|
||||
|
||||
9
angular-jwt/tsconfig.json
Normal file
9
angular-jwt/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-load/tsconfig.json
Normal file
9
angular-load/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-loading-bar/tsconfig.json
Normal file
9
angular-loading-bar/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-local-storage/tsconfig.json
Normal file
9
angular-local-storage/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-localForage/tsconfig.json
Normal file
9
angular-localForage/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-locker/tsconfig.json
Normal file
9
angular-locker/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-material/tsconfig.json
Normal file
9
angular-material/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-media-queries/tsconfig.json
Normal file
9
angular-media-queries/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-meteor/tsconfig.json
Normal file
9
angular-meteor/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-modal/tsconfig.json
Normal file
9
angular-modal/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-notifications/tsconfig.json
Normal file
9
angular-notifications/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-notify/tsconfig.json
Normal file
9
angular-notify/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-odata-resources/tsconfig.json
Normal file
9
angular-odata-resources/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
92
angular-permission/angular-permission-2.3.1-tests.ts
Normal file
92
angular-permission/angular-permission-2.3.1-tests.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
/// <reference path="./angular-permission-2.3.1.d.ts" />
|
||||
|
||||
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<any>;
|
||||
getAccessLevel(): angular.IPromise<{accessLevel: string}>;
|
||||
hasPermissionDefinition(permission: string) : angular.IPromise<any>;
|
||||
}
|
||||
|
||||
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<permission.Permission> = 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<permission.Role> = RoleStore.getStore();
|
||||
});
|
||||
165
angular-permission/angular-permission-2.3.1.d.ts
vendored
Normal file
165
angular-permission/angular-permission-2.3.1.d.ts
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
// Type definitions for angular-permission 2.3.1
|
||||
// Project: https://github.com/Narzerus/angular-permission
|
||||
// Definitions by: Voislav Mishevski <https://github.com/vmishevski>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
/// <reference path="../angular-ui-router/angular-ui-router.d.ts" />
|
||||
|
||||
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<any>
|
||||
): 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<any>
|
||||
): 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<string>,
|
||||
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<string>): 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<any>;
|
||||
}
|
||||
|
||||
interface PermissionValidationFunction {
|
||||
(stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise<any>;
|
||||
}
|
||||
|
||||
export interface IPermissionState extends angular.ui.IState {
|
||||
data?: any | DataWithPermissions;
|
||||
}
|
||||
|
||||
export interface DataWithPermissions {
|
||||
permissions?: {
|
||||
only?: (() => void) | Array<string> | angular.IPromise<any>;
|
||||
except?: (() => void) | Array<string> | angular.IPromise<any>;
|
||||
redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | {[index: string]: PermissionRedirectConfigation}
|
||||
};
|
||||
}
|
||||
|
||||
export interface PermissionRedirectConfigation {
|
||||
state: string;
|
||||
params?: {};
|
||||
options?: angular.ui.IStateOptions;
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
20
angular-permission/angular-permission.d.ts
vendored
20
angular-permission/angular-permission.d.ts
vendored
@@ -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 <https://github.com/vmishevski>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -7,6 +7,16 @@
|
||||
/// <reference path="../angular-ui-router/angular-ui-router.d.ts" />
|
||||
|
||||
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<any>
|
||||
validationFunction: (permission?: string, transitionProperties?: TransitionProperties) => boolean | angular.IPromise<any>
|
||||
): void;
|
||||
|
||||
/**
|
||||
@@ -31,7 +41,7 @@ declare namespace angular.permission {
|
||||
*/
|
||||
defineManyPermissions(
|
||||
permissions: string[],
|
||||
validationFunction: (stateParams?: angular.ui.IStateParamsService, permission?: string) => boolean | angular.IPromise<any>
|
||||
validationFunction: (permission?: string, transitionProperties?: TransitionProperties) => boolean | angular.IPromise<any>
|
||||
): void;
|
||||
|
||||
clearStore(): void;
|
||||
@@ -138,11 +148,11 @@ declare namespace angular.permission {
|
||||
}
|
||||
|
||||
interface RoleValidationFunction {
|
||||
(stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise<any>;
|
||||
(permission?: string, transitionProperties?: TransitionProperties): boolean | angular.IPromise<any>;
|
||||
}
|
||||
|
||||
interface PermissionValidationFunction {
|
||||
(stateParams?: angular.ui.IStateParamsService, permission?: string): boolean | angular.IPromise<any>;
|
||||
(permission?: string, transitionProperties?: TransitionProperties): boolean | angular.IPromise<any>;
|
||||
}
|
||||
|
||||
export interface IPermissionState extends angular.ui.IState {
|
||||
|
||||
9
angular-permission/tsconfig.json
Normal file
9
angular-permission/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-scenario/tsconfig.json
Normal file
9
angular-scenario/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-scroll/tsconfig.json
Normal file
9
angular-scroll/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-signalr-hub/tsconfig.json
Normal file
9
angular-signalr-hub/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-spinner/tsconfig.json
Normal file
9
angular-spinner/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-storage/tsconfig.json
Normal file
9
angular-storage/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-strap/tsconfig.json
Normal file
9
angular-strap/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-toastr/tsconfig.json
Normal file
9
angular-toastr/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-toasty/tsconfig.json
Normal file
9
angular-toasty/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-touchspin/tsconfig.json
Normal file
9
angular-touchspin/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
2
angular-translate/angular-translate.d.ts
vendored
2
angular-translate/angular-translate.d.ts
vendored
@@ -66,6 +66,8 @@ declare namespace angular.translate {
|
||||
useFallbackLanguage(langKey?: string): void;
|
||||
versionInfo(): string;
|
||||
loaderCache(): any;
|
||||
isReady(): boolean;
|
||||
onReady(): angular.IPromise<void>;
|
||||
}
|
||||
|
||||
interface ITranslateProvider extends angular.IServiceProvider {
|
||||
|
||||
9
angular-translate/tsconfig.json
Normal file
9
angular-translate/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-ui-bootstrap/tsconfig.json
Normal file
9
angular-ui-bootstrap/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-ui-router/tsconfig.json
Normal file
9
angular-ui-router/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-ui-scroll/tsconfig.json
Normal file
9
angular-ui-scroll/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-ui-sortable/tsconfig.json
Normal file
9
angular-ui-sortable/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-ui-tree/tsconfig.json
Normal file
9
angular-ui-tree/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular-wizard/tsconfig.json
Normal file
9
angular-wizard/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angular.throttle/tsconfig.json
Normal file
9
angular.throttle/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angularLocalStorage/tsconfig.json
Normal file
9
angularLocalStorage/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angularfire/tsconfig.json
Normal file
9
angularfire/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
5
angularjs/angular-mocks.d.ts
vendored
5
angularjs/angular-mocks.d.ts
vendored
@@ -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;
|
||||
|
||||
9
angularjs/tsconfig.json
Normal file
9
angularjs/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
angulartics/tsconfig.json
Normal file
9
angulartics/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
animation-frame/tsconfig.json
Normal file
9
animation-frame/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
ansi-styles/tsconfig.json
Normal file
9
ansi-styles/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
ansicolors/tsconfig.json
Normal file
9
ansicolors/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
antd/tsconfig.json
Normal file
9
antd/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
any-db-transaction/tsconfig.json
Normal file
9
any-db-transaction/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
any-db/tsconfig.json
Normal file
9
any-db/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
9
anydb-sql-migrations/tsconfig.json
Normal file
9
anydb-sql-migrations/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user