pinia-orm
Version:
The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
27 lines (23 loc) • 755 B
TypeScript
import { Version4Options } from 'uuid';
import { C as CastAttribute, M as ModelFields, F as FieldDecorator } from '../shared/pinia-orm.DkHEBXTz.js';
import 'pinia';
import 'vue';
import '@pinia-orm/normalizr';
import '@/composables';
declare class UidCast extends CastAttribute {
static parameters?: Version4Options;
/**
* Create a new String attribute instance.
*/
constructor(attributes: ModelFields);
static withParameters(parameters?: Version4Options): typeof CastAttribute;
/**
* Make the value for the attribute.
*/
set(value: any): string | null;
}
/**
* Create a uuid v4 uid attribute property decorator.
*/
declare function Uid(options?: Version4Options): FieldDecorator;
export { Uid, UidCast };