UNPKG

pinia-orm

Version:

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

27 lines (23 loc) 756 B
import { Version1Options } from 'uuid'; import { C as CastAttribute, M as ModelFields, F as FieldDecorator } from '../shared/pinia-orm.DkHEBXTz.cjs'; import 'pinia'; import 'vue'; import '@pinia-orm/normalizr'; import '@/composables'; declare class UidCast extends CastAttribute { static parameters?: Version1Options; /** * Create a new String attribute instance. */ constructor(attributes: ModelFields); static withParameters(parameters?: Version1Options): typeof CastAttribute; /** * Make the value for the attribute. */ set(value: any): string | null; } /** * Create a uuid v1 uid attribute property decorator. */ declare function Uid(options?: Version1Options): FieldDecorator; export { Uid, UidCast };