Skip to content

Commit 27c2de2

Browse files
author
Franck Freiburger
committed
wip: fixing TS errors/warnings
1 parent 04628b1 commit 27c2de2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export async function loadDeps(refPath : AbstractPath, deps : AbstractPath[], op
385385
/**
386386
* Default implementation of handleModule
387387
*/
388-
async function defaultHandleModule(type : string, getContentData : File['getContentData'], path : AbstractPath, options : Options) : Promise<ModuleExport | null | undefined> {
388+
async function defaultHandleModule(type : string, getContentData : File['getContentData'], path : AbstractPath, options : Options) : Promise<ModuleExport | undefined> {
389389

390390
switch (type) {
391391
case '.vue': return createSFCModule((await getContentData(false)) as string, path, options);

src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ export type CustomBlock = {
120120
/**
121121
* This just represents a loaded js module exports
122122
*/
123-
export type ModuleExport = {
124-
}
123+
export type ModuleExport = {} | null
125124

126125
/**
127126
* This just represents a loaded js module

0 commit comments

Comments
 (0)