diff --git a/src/task_1/app.ts b/src/task_1/app.ts
new file mode 100644
index 0000000..cdebd91
--- /dev/null
+++ b/src/task_1/app.ts
@@ -0,0 +1,16 @@
+///
+var Custom;
+ (function (Custom) {
+ var User = /** @class */ (function () {
+ function User(a, n) {
+ this.age = a; // number
+ this.name = n; // string
+ }
+ User.prototype.upAgeByYear = function () {
+ this.age++;
+ };
+ return User;
+ }());
+ Custom.user = new User(18, "Михаил");
+ })(Custom || (Custom = {}));
+ Custom.user.upAgeByYear();
\ No newline at end of file
diff --git a/src/task_1/index.html b/src/task_1/index.html
index f9c6cc1..1e09c1c 100644
--- a/src/task_1/index.html
+++ b/src/task_1/index.html
@@ -20,8 +20,8 @@
(function (Custom) {
var User = /** @class */ (function () {
function User(a, n) {
- this.age = a;
- this.name = n;
+ this.age = a; // number
+ this.name = n; // string
}
User.prototype.upAgeByYear = function () {
this.age++;
diff --git a/src/task_1/typing.d.ts b/src/task_1/typing.d.ts
new file mode 100644
index 0000000..3492850
--- /dev/null
+++ b/src/task_1/typing.d.ts
@@ -0,0 +1,6 @@
+declare class User {
+ public a: number;
+ public n: string;
+ constructor(a: number, n: string);
+ public upAgeByYear():void;
+}
\ No newline at end of file
diff --git a/src/task_2/Example.ts b/src/task_2/Example.ts
new file mode 100644
index 0000000..ebd4169
--- /dev/null
+++ b/src/task_2/Example.ts
@@ -0,0 +1,9 @@
+export class Example {
+ public title: string;
+ public id: number;
+ private _setting: Setting;
+
+ constructor(s: Setting) {
+ this._setting = s;
+ }
+}
\ No newline at end of file
diff --git a/src/task_2/Setting.ts b/src/task_2/Setting.ts
new file mode 100644
index 0000000..bfc2b98
--- /dev/null
+++ b/src/task_2/Setting.ts
@@ -0,0 +1,9 @@
+export class Setting {
+ public key: string;
+ public value: SettingValue;
+
+ constructor(k: string, ov: SettingValue) {
+ this.key = k;
+ this.value = ov;
+ }
+}
\ No newline at end of file
diff --git a/src/task_2/SettingValue.ts b/src/task_2/SettingValue.ts
new file mode 100644
index 0000000..5f90b42
--- /dev/null
+++ b/src/task_2/SettingValue.ts
@@ -0,0 +1,9 @@
+export class SettingValue {
+ public property1: string;
+ public property2: string;
+
+ constructor(p1: string, p2: string) {
+ this.property1 = p1;
+ this.property2 = p2;
+ }
+}
\ No newline at end of file
diff --git a/src/task_2/index.html b/src/task_2/index.html
new file mode 100644
index 0000000..e51222d
--- /dev/null
+++ b/src/task_2/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
diff --git a/src/task_2/index.ts b/src/task_2/index.ts
index a2fa801..492e21c 100644
--- a/src/task_2/index.ts
+++ b/src/task_2/index.ts
@@ -6,33 +6,3 @@
* все остальные файлы должны подгрузиться асинхронно по цепочке, используя requireJS.
*/
-class SettingValue {
- public property1: string;
- public property2: string;
-
- constructor(p1: string, p2: string) {
- this.property1 = p1;
- this.property2 = p2;
- }
-}
-
-class Setting {
- public key: string;
- public value: SettingValue;
-
- constructor(k: string, ov: SettingValue) {
- this.key = k;
- this.value = ov;
- }
-}
-
-
-class Example {
- public title: string;
- public id: number;
- private _setting: Setting;
-
- constructor(s: Setting) {
- this._setting = s;
- }
-}