Skip to content

Commit

Permalink
chore: change compiler type
Browse files Browse the repository at this point in the history
  • Loading branch information
julesvirallinen committed Sep 29, 2023
1 parent 2294464 commit 2cca555
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 195 deletions.
3 changes: 2 additions & 1 deletion src/compiler/ExcalidrawCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export class ExcalidrawCompiler {
idAppendage = "",
includeFrontMatter = true,
): TCompilerStep =>
(file: PublishFile, fileText: string) => {
(file: PublishFile) =>
(fileText: string) => {
if (!file.file.name.endsWith(".excalidraw.md")) {
throw new Error("File is not an excalidraw file");
}
Expand Down
Loading

0 comments on commit 2cca555

Please sign in to comment.