Skip to content

Нижегородов Антон#9

Open
M1dnighter wants to merge 1 commit intoRTF-Angular-2021:masterfrom
M1dnighter:master
Open

Нижегородов Антон#9
M1dnighter wants to merge 1 commit intoRTF-Angular-2021:masterfrom
M1dnighter:master

Conversation

@M1dnighter
Copy link
Copy Markdown

No description provided.

class Example{
@validDecorator
public email: string = "";
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 бала

}
/**Класс описывает TextBox контрол */
class TextBox extends Control<string> {
protected val: string | undefined
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачем переопределил объект val?

public name: string = "";

protected value: T;
protected value: T | undefined;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем используешь объединение типов?


/**Класс описывает SelectBox контрол */
class SelectBox extends Control<SelectItem> {
protected val: SelectItem | undefined;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачем поле в котором хранится значение ?


const x = undefined;
const x = { "m": "Ы" };

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 бала

class DecorateRu extends Calculator {
public exec(): string{
return `результат сложения ${this.a} + ${this.b} = ${super.exec()}`}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
if (!(typeInstance instanceof Control)){
throw new Error("Invalid type");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет регистрации типа и созданного объекта. Работать не будет.

@m-abrosimov
Copy link
Copy Markdown

пока что 6 балов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants