Skip to content

Commit

Permalink
fix: added hello world helper (#4)
Browse files Browse the repository at this point in the history
* added hello world helper

* Merge branch 'main' into hello-world

* push build files [skip ci]

Co-Authored-By: github-actions <[email protected]>
  • Loading branch information
SKairinos and github-actions authored Jul 24, 2023
1 parent 5ba58fa commit 3e68bda
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cjs/helpers/general.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export interface Path {
export declare function path<Subpaths extends Record<string, Path>>(_: string, subpaths?: Subpaths): Path & Subpaths;
export declare function snakeCaseToCamelCase(obj: Record<string, any>): void;
export declare function camelCaseToSnakeCase(obj: Record<string, any>): void;
export declare function helloWorld(): string;
6 changes: 5 additions & 1 deletion lib/cjs/helpers/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.camelCaseToSnakeCase = exports.snakeCaseToCamelCase = exports.path = exports.wrap = exports.openInNewTab = void 0;
exports.helloWorld = exports.camelCaseToSnakeCase = exports.snakeCaseToCamelCase = exports.path = exports.wrap = exports.openInNewTab = void 0;
function openInNewTab(url, target) {
if (target === void 0) { target = '_blank'; }
window.open(url, target);
Expand Down Expand Up @@ -88,3 +88,7 @@ function camelCaseToSnakeCase(obj) {
});
}
exports.camelCaseToSnakeCase = camelCaseToSnakeCase;
function helloWorld() {
return 'Hello, World!';
}
exports.helloWorld = helloWorld;
1 change: 1 addition & 0 deletions lib/esm/helpers/general.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export interface Path {
export declare function path<Subpaths extends Record<string, Path>>(_: string, subpaths?: Subpaths): Path & Subpaths;
export declare function snakeCaseToCamelCase(obj: Record<string, any>): void;
export declare function camelCaseToSnakeCase(obj: Record<string, any>): void;
export declare function helloWorld(): string;
3 changes: 3 additions & 0 deletions lib/esm/helpers/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ export function camelCaseToSnakeCase(obj) {
obj[snakeKey] = value;
});
}
export function helloWorld() {
return 'Hello, World!';
}
4 changes: 4 additions & 0 deletions src/helpers/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ export function camelCaseToSnakeCase(obj: Record<string, any>): void {
obj[snakeKey] = value;
});
}

export function helloWorld(): string {
return 'Hello, World!';
}

0 comments on commit 3e68bda

Please sign in to comment.