Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Jun 24, 2023
1 parent 87a8930 commit 5058618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mdsvex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function process_layouts(layouts: Layout) {
let ast;
try {
ast = parse(layout);
} catch (e) {
} catch (e: any) {
throw new Error(e.toString() + `\n at ${_layouts[key].path}`);
}

Expand Down Expand Up @@ -284,7 +284,7 @@ export const mdsvex = (options: MdsvexOptions = defaults): Preprocessor => {
});

return {
name: "mdsvex",
name: 'mdsvex',
markup: async ({ content, filename }) => {
const extensionsParts = (extensions || [extension]).map((ext) =>
ext.split('.').pop()
Expand Down
2 changes: 1 addition & 1 deletion packages/mdsvex/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,6 @@ export type PreprocessorReturn = Promise<
>;

export interface Preprocessor {
name: string,
name: string;
markup: (args: { content: string; filename: string }) => PreprocessorReturn;
}

0 comments on commit 5058618

Please sign in to comment.