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