Skip to content

Commit

Permalink
feat: add typescript typings (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zashchelkin authored and pi0 committed Oct 18, 2018
1 parent e7b5ebd commit 0853a6f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions types/consola.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare class Consola {
static fatal (message: string): void;
static error (message: string): void;
static warn (message: string): void;
static log (message: string): void;
static info (message: string): void;
static start (message: string): void;
static success (message: string): void;
static ready (message: string): void;
static debug (message: string): void;
static trace (message: string): void;
static addReporter (reporter: (message: string) => void): (typeof Consola);
static removeReporter (): (typeof Consola);
}

declare module "consola" {
export default Consola;
}

0 comments on commit 0853a6f

Please sign in to comment.