Skip to content

Commit edc1a57

Browse files
committed
Faster renderer builds.
No platform d.ts files.
1 parent a4d5011 commit edc1a57

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
bin/dist
22
node_modules
33
tags
4-
typings
4+
todomvc/typings
55
/src/*
66
!/src/nativescript-angular/
77
!/src/dependencies.d.ts

src/dependencies.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
/// <reference path="../deps/NativeScript/bin/dist/definitions/ui/label/label.d.ts" />
3131
/// <reference path="../deps/NativeScript/bin/dist/definitions/ui/switch/switch.d.ts" />
3232

33-
/// <reference path="../deps/NativeScript/bin/dist/definitions/android17.d.ts" />
34-
/// <reference path="../deps/NativeScript/bin/dist/definitions/ios.d.ts" />
33+
/// <reference path="../typings/android17-dummy.d.ts" />
34+
/// <reference path="../typings/ios-dummy.d.ts" />

typings/android17-dummy.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
declare module android {
2+
export module app {
3+
export type Activity = any;
4+
export type Application = any;
5+
export type ActionBar = any;
6+
}
7+
8+
export module os {
9+
export type Bundle = any;
10+
}
11+
12+
export module content {
13+
export type Intent = any;
14+
export type Context = any;
15+
}
16+
17+
export module view {
18+
export type IMenuItem = any;
19+
export type ViewGroup = any;
20+
export type MotionEvent = any;
21+
}
22+
23+
export module widget {
24+
export type Button = any;
25+
export type TextView = any;
26+
export type Switch = any;
27+
export type EditText = any;
28+
}
29+
}

typings/ios-dummy.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare type UIViewController = any;
2+
declare type UIApplication = any;
3+
declare var UIApplicationDelegate: any;
4+
declare type NSNotification = any;
5+
declare type UIColor = any;
6+
declare type UIButton = any;
7+
declare type UINavigationController = any;
8+
declare type UIGestureRecognizer = any;
9+
declare type UILabel = any;
10+
declare type UISwitch = any;
11+
declare type UITextField = any;
12+
declare type UITextView = any;

0 commit comments

Comments
 (0)