@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
35 lines • 753 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Author = void 0;
exports.newAuthor = newAuthor;
/**
* Author - TypeScript equivalent of Go's Author valueobject
* Represents author information
*/
class Author {
constructor(name, email) {
this._name = name;
this._email = email;
}
/**
* Get author name
*/
name() {
return this._name;
}
/**
* Get author email
*/
email() {
return this._email;
}
}
exports.Author = Author;
/**
* Factory function to create new Author
* TypeScript equivalent of NewAuthor function from Go
*/
function newAuthor(name, email) {
return new Author(name, email);
}
//# sourceMappingURL=author.js.map