UNPKG

shyft

Version:

Model driven GraphQL API framework

17 lines (16 loc) 552 B
import { Entity } from '../entity/Entity'; export declare const INDEX_UNIQUE = "unique"; export declare const INDEX_GENERIC = "generic"; export declare const indexTypes: string[]; export declare type IndexSetup = { type?: string; attributes?: string[]; }; export declare class Index { type: string; attributes: string[]; constructor(setup?: IndexSetup); toString(): string; } export declare const isIndex: (obj: unknown) => obj is Index; export declare const processEntityIndexes: (entity: Entity, indexes: Index[]) => Index[];