@mornya/vessel
Version:
Creates/publishes a Node.js module with no build configuration.
18 lines (13 loc) • 345 B
text/typescript
/*
* Sample.ts
*/
import { hello } from '@/SampleSub';
const foo: string = 'This is an';
const bar: string[] = ['Awesome', 'World'];
console.log('This is just a sample code.');
export function world() {
return `${hello()} ${process.env.SAMPLE_TEXT} ${foo} ${bar.join(' ')}`;
}
export function getDocType() {
return document.doctype;
}