mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add fancy-log types
This commit is contained in:
parent
f7f81bced2
commit
98363f3261
26
types/fancy-log/fancy-log-tests.ts
Normal file
26
types/fancy-log/fancy-log-tests.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import log = require('./');
|
||||
|
||||
log();
|
||||
log(1);
|
||||
log('foo');
|
||||
log('foo', 'bar');
|
||||
|
||||
log.dir();
|
||||
log.dir(1);
|
||||
log.dir('foo');
|
||||
log.dir('foo', 'bar');
|
||||
|
||||
log.error();
|
||||
log.error(1);
|
||||
log.error('foo');
|
||||
log.error('foo', 'bar');
|
||||
|
||||
log.info();
|
||||
log.info(1);
|
||||
log.info('foo');
|
||||
log.info('foo', 'bar');
|
||||
|
||||
log.warn();
|
||||
log.warn(1);
|
||||
log.warn('foo');
|
||||
log.warn('foo', 'bar');
|
||||
17
types/fancy-log/index.d.ts
vendored
Normal file
17
types/fancy-log/index.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Type definitions for fancy-log 1.3
|
||||
// Project: https://github.com/js-cli/fancy-log
|
||||
// Definitions by: Pine Mizune <https://github.com/pine>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace FancyLog {
|
||||
interface Logger {
|
||||
(...args: any[]): Logger;
|
||||
dir(...args: any[]): Logger;
|
||||
error(...args: any[]): Logger;
|
||||
info(...args: any[]): Logger;
|
||||
warn(...args: any[]): Logger;
|
||||
}
|
||||
}
|
||||
|
||||
declare var logger: FancyLog.Logger;
|
||||
export = logger;
|
||||
23
types/fancy-log/tsconfig.json
Normal file
23
types/fancy-log/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"fancy-log-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/fancy-log/tslint.json
Normal file
1
types/fancy-log/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user