Skip to content

Commit

Permalink
refactor: remove any in index.d.ts (#325)
Browse files Browse the repository at this point in the history
* remove any in index.d.ts

* Update index.d.ts
  • Loading branch information
intellectus-rojiwon authored Oct 14, 2024
1 parent ae6e926 commit 55f3d8c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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 @@ -82,7 +82,7 @@ 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

0 comments on commit 55f3d8c

Please sign in to comment.