Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ import { consola, createConsola } from "consola/browser";
import { createConsola } from "consola/core";
```

When typing values that come from the main `consola` entry (for example `useLogger()` from Nuxt kit), import types from `"consola"` — not `"consola/core"`. The `/core` build is a separate lightweight entry; its types are not always assignable to the main package types.

```ts
import type { ConsolaInstance } from "consola";
```

## Consola Methods

#### `<type>(logObject)` `<type>(args...)`
Expand Down