Skip to content

Commit

Permalink
Merge pull request #671 from nextcloud-libraries/fix/leak-defs
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed May 16, 2024
2 parents c80f44a + cccf32c commit b50b5f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/LoggerBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import { getCurrentUser } from '@nextcloud/auth'
import { IContext, ILogger, ILoggerFactory, LogLevel } from './contracts'

declare global {
interface Window {
_oc_config: {
loglevel: LogLevel,
},
_oc_debug: boolean,
}
}

/**
* @notExported
*/
Expand Down
17 changes: 17 additions & 0 deletions lib/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* SPDX-FileCopyrightText: 2024 Ferdinand Thiessen <opensource@fthiessen.de>
* SPDX-License-Identifier: GPL-3.0-or-later or LGPL-3.0-or-later
*/

import type { LogLevel } from './contracts'

declare global {
interface Window {
_oc_config: {
loglevel: LogLevel,
},
_oc_debug: boolean,
}
}

export {}

0 comments on commit b50b5f0

Please sign in to comment.