Skip to content

Commit

Permalink
fix: correctly merge compile output type (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Jan 8, 2024
1 parent a811e70 commit f95e37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workspace/marqua/src/fs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { marker } from '../artisan/index.js';
import { parse } from '../core/index.js';

/**
* @template {object} [Output = import('../types.js').Metadata & { content: string }]
* @template {object} Output
* @param {string} entry
* @returns {Output}
* @returns {Output & import('../types.js').Metadata & { content: string }}
*/
export function compile(entry) {
const { content, metadata } = parse(fs.readFileSync(entry, 'utf-8'));
const result = { ...metadata, content: marker.render(content) };
return /** @type {Output} */ (result);
return /** @type {any} */ (result);
}

/**
Expand Down

1 comment on commit f95e37c

@vercel
Copy link

@vercel vercel bot commented on f95e37c Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.