UNPKG

pinia-orm

Version:

The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.

68 lines (61 loc) 1.68 kB
import { a2 as CastAttribute, q as ModelFields } from './shared/pinia-orm.Bzthh6rU.cjs'; import 'pinia'; import 'vue-demi'; import '@pinia-orm/normalizr'; import '@/composables'; declare class ArrayCast extends CastAttribute { /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); get(value?: any): any; /** * Make the value for the attribute. */ set(value: any): string | null; } declare class StringCast extends CastAttribute { /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); get(value?: any): any; /** * Make the value for the attribute. */ set(value: any): string | null; } declare class BooleanCast extends CastAttribute { /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); get(value?: any): any; /** * Make the value for the attribute. */ set(value: any): string | null; } declare class NumberCast extends CastAttribute { /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); get(value?: any): any; /** * Make the value for the attribute. */ set(value: any): string | null; } declare class DateCast extends CastAttribute { /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); get(value: string | null): Date | null; /** * Make the value for the attribute. */ set(value: string | number | Date | null): string | null; } export { ArrayCast, BooleanCast, DateCast, NumberCast, StringCast };