Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Upgraded to typings from tsd. Moved URL workaround and load it with typings #179

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/Angular2Spa/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"typings",
"Views",
"tsconfig.json",
"tsd.json",
"typings.json",
"web.config",
"webpack.*.js",
"wwwroot"
Expand Down
15 changes: 0 additions & 15 deletions templates/Angular2Spa/tsd.json

This file was deleted.

8 changes: 8 additions & 0 deletions templates/Angular2Spa/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "WebApplicationBasic",
"globalDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#c0d876601e0f8236fd6b57626eb62c4e485f1563",
"require": "github:DefinitelyTyped/DefinitelyTyped/requirejs/require.d.ts#dade4414712ce84e3c63393f1aae407e9e7e6af7",
"url-workaround": "file:typings-local/url-workaround/index.d.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// Type definitions for es6-shim v0.31.2
// Project: https://github.com/paulmillr/es6-shim
// Definitions by: Ron Buckton <http://github.com/rbuckton>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c0d876601e0f8236fd6b57626eb62c4e485f1563/es6-shim/es6-shim.d.ts
declare type PropertyKey = string | number | symbol;

interface IteratorResult<T> {
Expand Down Expand Up @@ -665,4 +662,4 @@ declare module "es6-shim" {
function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
function setPrototypeOf(target: any, proto: any): boolean;
}
}
}
8 changes: 8 additions & 0 deletions templates/Angular2Spa/typings/globals/es6-shim/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c0d876601e0f8236fd6b57626eb62c4e485f1563/es6-shim/es6-shim.d.ts",
"raw": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#c0d876601e0f8236fd6b57626eb62c4e485f1563",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c0d876601e0f8236fd6b57626eb62c4e485f1563/es6-shim/es6-shim.d.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
// Type definitions for RequireJS 2.1.20
// Project: http://requirejs.org/
// Definitions by: Josh Baldwin <https://github.com/jbaldwin/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

/*
require-2.1.8.d.ts may be freely distributed under the MIT license.

Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/require.d.ts

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/dade4414712ce84e3c63393f1aae407e9e7e6af7/requirejs/require.d.ts
declare module 'module' {
var mod: {
config: () => any;
Expand Down Expand Up @@ -394,4 +365,4 @@ interface RequireDefine {
// Ambient declarations for 'require' and 'define'
declare var requirejs: Require;
declare var require: Require;
declare var define: RequireDefine;
declare var define: RequireDefine;
8 changes: 8 additions & 0 deletions templates/Angular2Spa/typings/globals/require/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/dade4414712ce84e3c63393f1aae407e9e7e6af7/requirejs/require.d.ts",
"raw": "github:DefinitelyTyped/DefinitelyTyped/requirejs/require.d.ts#dade4414712ce84e3c63393f1aae407e9e7e6af7",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/dade4414712ce84e3c63393f1aae407e9e7e6af7/requirejs/require.d.ts"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Generated by typings
// Source: typings-local/url-workaround/index.d.ts
declare module 'url' {
export interface Url {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "D:\\github\\JavaScriptServices\\templates\\Angular2Spa\\typings-local\\url-workaround\\index.d.ts",
"raw": "file:typings-local/url-workaround/index.d.ts",
"typings": "D:\\github\\JavaScriptServices\\templates\\Angular2Spa\\typings-local\\url-workaround\\index.d.ts"
}
}
3 changes: 3 additions & 0 deletions templates/Angular2Spa/typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference path="globals/es6-shim/index.d.ts" />
/// <reference path="globals/require/index.d.ts" />
/// <reference path="globals/url-workaround/index.d.ts" />
3 changes: 0 additions & 3 deletions templates/Angular2Spa/typings/tsd.d.ts

This file was deleted.