Skip to content

Interface: VueReActiveRecordTypes

An augmentable interface for the Vue ReActiveRecord types.

TIP

This interface should be extended to match your application's configuration needs.

Example

In your Vue application, you should extend this interface to define the shape of your models

ts
// src/types/vue-re-active-record.d.ts
declare module '@nhtio/vue-re-active-record' {
  interface VueReActiveRecordTypes {
    ObjectMap: {
      User: {
       ...
      }
      Post: {
       ...
      }
    }
 }