Skip to content

Commit

Permalink
MDX: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Dec 18, 2024
1 parent affc9fc commit 177ba67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mdx/src/map/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
import { readFile, writeFile } from 'node:fs/promises';
import { type EventName } from 'chokidar/handler.js';
import grayMatter from 'gray-matter';
import { getConfigHash, loadConfigCached } from '@/config/cached';
import { generateJS, generateTypes } from '@/map/generate';
Expand Down Expand Up @@ -53,7 +52,9 @@ export async function start(
console.log('[MDX] started dev server');
});

instance.on('all', (event: EventName, file: string) => {
instance.on('all', (event, file) => {
if (typeof file !== 'string') return;

const onUpdate = async (): Promise<void> => {
const isConfigFile = path.resolve(file) === configPath;

Expand Down

0 comments on commit 177ba67

Please sign in to comment.