Skip to content

Instantly share code, notes, and snippets.

View Aracturat's full-sized avatar
🎯
Focusing

Nikolay Dozmorov Aracturat

🎯
Focusing
  • Novosibirsk
View GitHub Profile
@remojansen
remojansen / class_decorator.ts
Last active September 14, 2023 14:54
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}