mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 (#1228)
* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 * actually apply the rules lol * rebuild --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { listen, type UnlistenFn, type Event } from "@tauri-apps/api/event";
|
||||
|
||||
export type LogOptions = {
|
||||
export interface LogOptions {
|
||||
file?: string;
|
||||
line?: number;
|
||||
keyValues?: Record<string, string | undefined>;
|
||||
};
|
||||
}
|
||||
|
||||
enum LogLevel {
|
||||
/**
|
||||
@@ -218,7 +218,7 @@ export async function attachLogger(fn: LoggerFn): Promise<UnlistenFn> {
|
||||
* @returns a function to cancel the listener.
|
||||
*/
|
||||
export async function attachConsole(): Promise<UnlistenFn> {
|
||||
return attachLogger(({ level, message }: RecordPayload) => {
|
||||
return await attachLogger(({ level, message }: RecordPayload) => {
|
||||
switch (level) {
|
||||
case LogLevel.Trace:
|
||||
console.log(message);
|
||||
|
||||
Reference in New Issue
Block a user