forked from esvit/ng-table
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(demo-apps): add missing type declarations
- Loading branch information
1 parent
b256f59
commit 064629d
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
src/**/*.js | ||
src/**/*.js.map | ||
src/**/*.d.ts | ||
!src/global.d.ts | ||
!src/type-declarations/*.d.ts |
4 changes: 4 additions & 0 deletions
4
demo-apps/ts-webpack/src/type-declarations/angular-route.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '@types/angular-route' { | ||
import mod = angular.route; | ||
export = mod; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// fake the nodejs require function so that we can add 'require' calls for html files; | ||
// these calls to 'require' will then be converted by webpack ngtemplate-loader | ||
// note that I would have prefered to use standard es2015 import for these | ||
// html files but that would have meant using typescript 2 feature of implicit | ||
// ambient modules which in turn would have meant turning off noImplicitAny checks | ||
// which is a VERY bad idea | ||
declare function require(path: string): any; |