fix(shell): expect hoist pollution

This commit is contained in:
Il Harper 2024-09-07 14:15:22 +08:00
parent 6556b8b601
commit a91e4bde19
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -1,5 +1,7 @@
// Should be 'mime/lite' but there's hoist pollution
import { Mime } from 'mime/dist/src/index_lite'
// @ts-expect-error
// There's a hoist pollution (@types/mime). see
// https://github.com/Microsoft/TypeScript/issues/11917
import { Mime } from 'mime/lite'
import mimeStandard from 'mime/types/standard.js'
export const mime = new Mime().define(mimeStandard).define({