Skip to content

Commit

Permalink
remove any in index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
intellectus-rojiwon authored Oct 8, 2024
1 parent ae6e926 commit 7485b5b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import {LEVEL, MESSAGE, SPLAT} from 'triple-beam'

export interface TransformableInfo {
level: string;
message: any;
message: unknown;
[LEVEL]?: string;
[MESSAGE]?: any;
[SPLAT]?: any;
[key: string | symbol]: any;
[MESSAGE]?: unknown;
[SPLAT]?: unknown;
[key: string | symbol]: unknown;
}

export type TransformFunction = (info: TransformableInfo, opts?: any) => TransformableInfo | boolean;
export type TransformFunction = (info: TransformableInfo, opts?: unknown) => TransformableInfo | boolean;
export type Colors = { [key: string]: string | string[] }; // tslint:disable-line interface-over-type-literal
export type FormatWrap = (opts?: any) => Format;
export type FormatWrap = (opts?: unknown) => Format;

export class Format {
constructor(opts?: object);
Expand Down Expand Up @@ -75,14 +75,14 @@ export interface ColorizeOptions {
/**
* An object containing the colors for the log levels. For example: `{ info: 'blue', error: 'red' }`.
*/
colors?: Record<string, string | string[]>;
colors?: Record<string, string>;
}

export interface JsonOptions {
/**
* A function that influences how the `info` is stringified.
*/
replacer?: (this: any, key: string, value: any) => any;
replacer?: (this: unknown, key: string, value: unknown) => unknown;
/**
* The number of white space used to format the json.
*/
Expand Down Expand Up @@ -111,7 +111,7 @@ export interface JsonOptions {
deterministic?: boolean,
/**
* Maximum number of entries to serialize per object (at least one).
* The serialized output contains information about how many entries have not been serialized.
* The serialized output contains information about how munknown entries have not been serialized.
* Ignored properties are counted as well (e.g., properties with symbol values).
* Using the array replacer overrules this option.
* @default Infinity
Expand Down

0 comments on commit 7485b5b

Please sign in to comment.