Skip to content

Commit

Permalink
Refactor build function and add JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RA9 committed Oct 5, 2024
1 parent ea81d00 commit fdea69c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { DescribeOptions } from './types.ts';

// Define the build function with type annotations
/**
*
* Builds a custom component with the given tag name and description options
*/
export function build(tagName: string, description: DescribeOptions): void {
class CustomComponent extends HTMLElement {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ra9/tan-compose",
"version": "0.1.1",
"version": "0.1.2",
"exports": "./mod.ts",
"compilerOptions": {
"strict": true,
Expand Down
4 changes: 3 additions & 1 deletion describe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { DescribeOptions } from './types.ts';


/**
* Describes a component with options
*/
export function describe(options: DescribeOptions): DescribeOptions {
return {
...options,
Expand Down

0 comments on commit fdea69c

Please sign in to comment.