Skip to content

Commit 31103e7

Browse files
graph-ts: fix log namespace collision (#2057)
* fix log namespace collision * re-fix namespace issue
1 parent 971c81a commit 31103e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ts/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ function format(fmt: string, args: string[]): string {
8282
return out;
8383
}
8484

85-
// Host export for logging, providing basic logging functionality
86-
export declare function log(level: log.Level, msg: string): void;
87-
8885
// Host interface for logging
8986
export namespace log {
87+
// Host export for logging, providing basic logging functionality
88+
export declare function log(level: Level, msg: string): void;
89+
9090
export enum Level {
9191
CRITICAL = 0,
9292
ERROR = 1,

0 commit comments

Comments
 (0)