diff --git a/README.md b/README.md index 0486be9..ef70a8c 100644 --- a/README.md +++ b/README.md @@ -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 #### `(logObject)` `(args...)`