UNPKG

pinia-orm

Version:

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

27 lines (23 loc) 744 B
import { V4Options } from 'uuid'; import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.cf7a7464.js'; import 'pinia'; import 'vue-demi'; import '@pinia-orm/normalizr'; import '@/composables'; declare class UidCast extends CastAttribute { static parameters?: V4Options; /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); static withParameters(parameters?: V4Options): typeof CastAttribute; /** * Make the value for the attribute. */ set(value: any): string | null; } /** * Create a cast for an attribute property decorator. */ declare function Uid(options?: V4Options): PropertyDecorator; export { Uid, UidCast };