pinia-orm
Version:
The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
26 lines (22 loc) • 743 B
TypeScript
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.Bzthh6rU.js';
import 'pinia';
import 'vue-demi';
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 cast for an attribute property decorator.
*/
declare function Uid(options?: NanoidOptions): PropertyDecorator;
export { Uid, UidCast };