@types/console-log-level
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -5,3 +5,2 @@ // Type definitions for console-log-level 1.4 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
@@ -22,4 +21,4 @@ type PrefixFunction = (level: string) => string; | ||
declare function consoleLogLevel(opts: Options): consoleLogLevel.Logger; | ||
declare function consoleLogLevel(opts?: Options): consoleLogLevel.Logger; | ||
export = consoleLogLevel; |
{ | ||
"name": "@types/console-log-level", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "TypeScript definitions for console-log-level", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level", | ||
"license": "MIT", | ||
@@ -14,10 +15,12 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/console-log-level" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "eb7aa13192d407d17fee8ed4349f7a2f2f32772bf2140f463e8346f1ad15e689", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "dff959ae76978cbfd74251b4f2acf7d9a0515b81f0dd44c3c0dbf143619c64e6", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,6 +8,32 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level/index.d.ts) | ||
````ts | ||
// Type definitions for console-log-level 1.4 | ||
// Project: https://github.com/watson/console-log-level | ||
// Definitions by: Ali Ijaz Sheikh <https://github.com/ofrobots> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Wed, 25 Jul 2018 01:26:51 GMT | ||
type PrefixFunction = (level: string) => string; | ||
declare namespace consoleLogLevel { | ||
type LogLevelNames = | ||
"trace" | "debug" | "info" | "warn" | "error" | "fatal"; | ||
type Logger = Record<LogLevelNames, (...args: any[]) => void>; | ||
} | ||
interface Options { | ||
level?: consoleLogLevel.LogLevelNames; | ||
prefix?: string | PrefixFunction; | ||
stderr?: boolean; | ||
} | ||
declare function consoleLogLevel(opts?: Options): consoleLogLevel.Logger; | ||
export = consoleLogLevel; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 07 Jun 2021 19:31:27 GMT | ||
* Dependencies: none | ||
@@ -17,2 +43,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Ali Ijaz Sheikh <https://github.com/ofrobots>. | ||
These definitions were written by [Ali Ijaz Sheikh](https://github.com/ofrobots). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4049
0
43
17