Skip to content

API Documentation / @pinia/colada / TypesConfig

Interface: TypesConfig

Allows you to extend the default types of the library.

Example

ts
// types-extension.d.ts
import '@pinia/colada'
export {}
declare module '@pinia/colada' {
  interface TypesConfig {
    defaultError: MyCustomError
  }
}

Properties

defaultError

ts
defaultError: object;

custom

ts
custom: Error;

Released under the MIT License.