chore(release): prepare public source release
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export function helper(value) {
|
||||
return value.trim();
|
||||
}
|
||||
|
||||
export const makeGreeter = (name) => {
|
||||
return `hello ${name}`;
|
||||
};
|
||||
|
||||
export class BrowserThing {
|
||||
open(url) {
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
export function demo(value, url) {
|
||||
const browser = new BrowserThing();
|
||||
return helper(browser.open(url ?? value));
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
export interface Report {
|
||||
title: string;
|
||||
}
|
||||
|
||||
export type Builder = (name: string) => string;
|
||||
|
||||
export function helper(name: string): string {
|
||||
return name.toUpperCase();
|
||||
}
|
||||
|
||||
export const makeTyped = (value: number): number => {
|
||||
return value + 1;
|
||||
};
|
||||
|
||||
export namespace Tools {
|
||||
export function open(path: string): string {
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
export function renderReport(name: string, path: string): Report {
|
||||
return {
|
||||
title: helper(Tools.open(path)) + name,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
export abstract class Screen {
|
||||
render(): string {
|
||||
return "screen";
|
||||
}
|
||||
}
|
||||
|
||||
export const makeScreen = (name: string): string => {
|
||||
return `<div>${name}</div>`;
|
||||
};
|
||||
|
||||
export const renderScreen = (screen: Screen): string => {
|
||||
return screen.render();
|
||||
};
|
||||
Reference in New Issue
Block a user