47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
//// [crashInresolveReturnStatement.ts]
|
|
class WorkItemToolbar {
|
|
public onToolbarItemClick() {
|
|
WITDialogs.createCopyOfWorkItem();
|
|
}
|
|
}
|
|
class CreateCopyOfWorkItemDialog {
|
|
public getDialogResult() {
|
|
return null;
|
|
}
|
|
}
|
|
function createWorkItemDialog<P0>(dialogType: P0) {
|
|
}
|
|
class WITDialogs {
|
|
public static createCopyOfWorkItem() {
|
|
createWorkItemDialog(CreateCopyOfWorkItemDialog);
|
|
}
|
|
}
|
|
|
|
|
|
//// [crashInresolveReturnStatement.js]
|
|
var WorkItemToolbar = (function () {
|
|
function WorkItemToolbar() {
|
|
}
|
|
WorkItemToolbar.prototype.onToolbarItemClick = function () {
|
|
WITDialogs.createCopyOfWorkItem();
|
|
};
|
|
return WorkItemToolbar;
|
|
})();
|
|
var CreateCopyOfWorkItemDialog = (function () {
|
|
function CreateCopyOfWorkItemDialog() {
|
|
}
|
|
CreateCopyOfWorkItemDialog.prototype.getDialogResult = function () {
|
|
return null;
|
|
};
|
|
return CreateCopyOfWorkItemDialog;
|
|
})();
|
|
function createWorkItemDialog(dialogType) {
|
|
}
|
|
var WITDialogs = (function () {
|
|
function WITDialogs() {
|
|
}
|
|
WITDialogs.createCopyOfWorkItem = function () {
|
|
createWorkItemDialog(CreateCopyOfWorkItemDialog);
|
|
};
|
|
return WITDialogs;
|
|
})();
|