mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Move all packages to a types directory
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
angular.module('app',['angularLoad'])
|
||||
.run(['angularLoad',(angularLoad:angular.load.IAngularLoadService)=> {
|
||||
angularLoad.loadScript("https://ajax.googleapis.com/ajax/libs/angular_material/1.0.4/angular-material.min.js").then(
|
||||
()=>console.log("angular material js loaded")
|
||||
);
|
||||
|
||||
angularLoad.loadCSS("https://ajax.googleapis.com/ajax/libs/angular_material/1.0.4/angular-material.css").then(
|
||||
()=>console.log("angular material css loaded")
|
||||
);
|
||||
}]);
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for angular-load v0.4.1
|
||||
// Project: https://github.com/urish/angular-load
|
||||
// Definitions by: david-gang <https://github.com/david-gang>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
declare namespace angular.load {
|
||||
|
||||
interface IAngularLoadService {
|
||||
loadScript(url:string): ng.IPromise<any>;
|
||||
loadCSS(url:string): ng.IPromise<any>;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"angular-load-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user