Files
DefinitelyTyped/jsnlog/index.d.ts
Andy 05e9c858cf Merge 20dec (#13471)
* base-64 typings

* formatting and indenting

* feat: add typings for watchpack

* fix: improve missing typings

* Port from https://github.com/agileek/typings-vis/blob/master/vs.d.ts

* Fix travis build failures

* Port PR https://github.com/agileek/typings-vis/pull/12

* Fix travis build failures

* added tsconfig and tslint

* removed patch number

* added tests

* made it export like base64-js

* removed old code

* formatted code

* fix: add files field in tsconfig.json for expected publishment

* fix: improve most missing typings

* feat: upgrade to v3.0.0

* feat: upgrade to tapbale v0.2.5

* Types 2.0 (#13261)

* updating typing of the latest 7.0 react-autosuggest

* updating typing of react-autosuggest 7.0

* update typings for react-autosuggest 7.0

* Remove '+' from header versions, so they can be parsed (#13239)

* Updated masonry-layout to fix linting errors (#13272)

* Updated masonry-layout to fix linting errors

* Fixed the tests I could fix.

* Removed patch version

* Add redux-persist and basic transformers (#13389)

* Add definitions for redux-persist

* Add missin generic types

* Add definitions for filter transformer

* Add definitions for encrypt transformer

* Fix header

* Add definitions for compress transformer

* Delete unnecessary linter configs

* Change way of importing, fix tests

* fix: angulartics type definition for ES6 import

* fix: lint error

* fix scalar type config (#13398)

The `GraphQLScalarTypeConfig` interface had incorrect types. Correct types may be seen here: 379a308439/src/type/definition.js (L348-L350)

* [interact.js] Update module names (#13316)

Update CommonJS module name as it was changed in version 1.2.7.
AMD module name is also different from both new and old CommonJS module names, so a separate declaration was created for that as well.

* Add definitions for redux-recycle (#13424)

* Add definitions for redux-recycle

* Fix linter errors

* [jest] add type definition for toHaveBeenLastCalledWith (#13038)

* remove ajv because the package bundles its own types (#13028)

* Updated type definitions to yfiles for HTML 2.0. (#13332)

* Updated type definitions to yFiles for HTML 2.0.

* Updated type definitions to yfiles for HTML 2.0.

* Added contact in yfiles .d.ts header.

* Add redux-batched-actions typings. (#13054)

* Add types for mailgen (#13080)

* Typings for cordova-sqlite-storage (#13081)

* Add flatpickr definitions (#13083)

* Add pouch-redux-middleware typing (#13071)

* Add pouch-redux-middleware typing

* Fix <> in comment

* Add declaration for crc (#13068)

* Updated jquery.dataTables for 1.10.9 (#13099)

Release Notes: https://cdn.datatables.net/1.10.9/

* Moved legacy browser settings to its own data type.
* Added 'aIds' property on legacy settings object for mapping row ids to data indexes.
* Added 'rowIdFn' function to legacy settings object to get a row's id from the row's data.

* chore(lint): change vis typing to external module (#13399)

* Fix cordova-sqlite-storage lint

* Lint `vis`: Remove "I" prefix for namespaces

* Change cordova-sqlite-storage back. Linter was wrong.
2016-12-20 11:55:40 -08:00

116 lines
4.1 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Type definitions for JSNLog 2.17.3
// Project: https://github.com/mperdeck/jsnlog.js
// Definitions by: Mattijs Perdeck <https://github.com/mperdeck>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// -------------------------------
// Full documentation is at
// http://jsnlog.com
// -------------------------------
/**
* Copyright 2016 Mattijs Perdeck.
*
* This project is licensed under the MIT license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// Declarations of all interfaces and ambient objects, except for JL itself.
// Provides strong typing in both jsnlog.ts itself and in TypeScript programs that use
// JSNLog.
declare namespace JL {
interface JSNLogOptions {
enabled?: boolean;
maxMessages?: number;
defaultAjaxUrl?: string;
clientIP?: string;
requestId?: string;
defaultBeforeSend?: (xhr: XMLHttpRequest) => void;
}
interface JSNLogFilterOptions {
level?: number;
ipRegex?: string;
userAgentRegex?: string;
disallow?: string;
}
interface JSNLogLoggerOptions extends JSNLogFilterOptions {
appenders?: JSNLogAppender[];
onceOnly?: string[];
}
// Base for all appender options types
interface JSNLogAppenderOptions extends JSNLogFilterOptions {
sendWithBufferLevel?: number;
storeInBufferLevel?: number;
bufferSize?: number;
batchSize?: number;
}
interface JSNLogAjaxAppenderOptions extends JSNLogAppenderOptions {
url?: string;
beforeSend?: (xhr: XMLHttpRequest) => void;
}
interface JSNLogLogger {
setOptions(options: JSNLogLoggerOptions): JSNLogLogger;
trace(logObject: any): JSNLogLogger;
debug(logObject: any): JSNLogLogger;
info(logObject: any): JSNLogLogger;
warn(logObject: any): JSNLogLogger;
error(logObject: any): JSNLogLogger;
fatal(logObject: any): JSNLogLogger;
fatalException(logObject: any, e: any): JSNLogLogger;
log(level: number, logObject: any, e?: any): JSNLogLogger;
}
interface JSNLogAppender {
setOptions(options: JSNLogAppenderOptions): JSNLogAppender;
}
interface JSNLogAjaxAppender extends JSNLogAppender {
setOptions(options: JSNLogAjaxAppenderOptions): JSNLogAjaxAppender;
}
interface JSNLogConsoleAppender extends JSNLogAppender {
}
}
declare function __jsnlog_configure(jsnlog: any): void;

// Ambient declaration of the JL function itself
declare function JL(loggerName?: string): JL.JSNLogLogger;
// Definitions that need to be kept out of the main namespace definition,
// because otherwise during compilation of jsnlog.ts it complains that you can't
// overload ambient declarations with non-ambient declarations.
declare namespace JL {
export function setOptions(options: JSNLogOptions): void;
export function createAjaxAppender(appenderName: string): JSNLogAjaxAppender;
export function createConsoleAppender(appenderName: string): JSNLogConsoleAppender;
export class Exception {
constructor(data: any, inner?: any);
}
export function getOffLevel(): number;
export function getTraceLevel(): number;
export function getDebugLevel(): number;
export function getInfoLevel(): number;
export function getWarnLevel(): number;
export function getErrorLevel(): number;
export function getFatalLevel(): number;
export function getAllLevel(): number;
}