@barguide/template
Version:
TypeScript | Template
23 lines (16 loc) • 480 B
text/typescript
import { Calculator, CalculatorOptions } from './Calculator';
const myLib = {
calculator: new Calculator({
debug: false,
testing: false
}),
numberOfGreetings: 0,
makeGreeting(str: string): string {
this.numberOfGreetings += 1;
return `${this.numberOfGreetings}: ${str}`;
}
};
// const result = myLib.makeGreeting('hello, world');
// console.log('The computed greeting is:', result);
export { Calculator, myLib };
export type { CalculatorOptions };