Skip to content

Commit

Permalink
always async
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Jul 13, 2023
1 parent d7e7ed9 commit 7edb82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/compiler/src/emitter-framework/asset-emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ export function createAssetEmitter<T, TOptions extends object>(
return invokeTypeEmitter("tupleLiteralValues", tuple);
},

emitSourceFile(sourceFile) {
return typeEmitter.sourceFile(sourceFile);
async emitSourceFile(sourceFile) {
return await typeEmitter.sourceFile(sourceFile);
},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/src/emitter-framework/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface AssetEmitter<T, TOptions extends object = Record<string, unknow
emitEnumMembers(en: Enum): EmitEntity<T>;
emitUnionVariants(union: Union): EmitEntity<T>;
emitTupleLiteralValues(tuple: Tuple): EmitEntity<T>;
emitSourceFile(sourceFile: SourceFile<T>): Promise<EmittedSourceFile> | EmittedSourceFile;
emitSourceFile(sourceFile: SourceFile<T>): Promise<EmittedSourceFile>;
/**
* Create a source file.
*
Expand Down

0 comments on commit 7edb82e

Please sign in to comment.