Skip to content

Commit

Permalink
✨ export InspectInspect type
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Dec 18, 2024
1 parent 26ff9be commit add5ee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// main
export { default as ii } from "./src/inspect/ii";
export type { InspectInspect } from "./src/inspect/ii";

// inspect
export { default as consoleInspect } from "./src/inspect/consoleInspect";
Expand Down
14 changes: 7 additions & 7 deletions src/inspect/ii.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const ii = createInspectInspect({});

export default ii;

interface InspectInspect {
<T>(value: T, ...args: unknown[]): T
defaults: ConsoleInspectOptions
depth: (depth: number) => InspectInspect
d: (depth: number) => InspectInspect
keys: (...keys: string[]) => InspectInspect
k: (...keys: string[]) => InspectInspect
export interface InspectInspect {
<T>(value: T, ...args: unknown[]): T;
defaults: ConsoleInspectOptions;
depth: (depth: number) => InspectInspect;
d: (depth: number) => InspectInspect;
keys: (...keys: string[]) => InspectInspect;
k: (...keys: string[]) => InspectInspect;
}

function createInspectInspect(options: ConsoleInspectOptions): InspectInspect {
Expand Down

0 comments on commit add5ee8

Please sign in to comment.