interface IMessage {
(value: any): void;
success(): void;
error(): void;
version: string;
}
const Message: IMessage = function Message(value: any) {
console.log(value);
};
Message.version = "1.0.0";
Message.success = function () {
console.log("success.");
};
Message.error = function () {
console.log("error.");
};
Message("hello world.");
Message.success();
Message.error();