@n0safe/indirectus
Version:
Directus Tools CLI.
14 lines • 1.34 kB
TypeScript
import type { Collection, Field } from "../../../types/registry";
import type { TemplateContext } from "../../../types/template";
export declare function has_system_collections(context: TemplateContext, collections: Collection[]): boolean;
export declare function has_non_system_collections(context: TemplateContext, collections: Collection[]): boolean;
export declare function filter_untype_system_collections(context: TemplateContext, collections: Collection[]): Collection[];
export declare function to_system_method_suffix(context: TemplateContext, collection: Collection): any;
export declare function to_collection_text(context: TemplateContext, value: string, prefix?: string, suffix?: string): string;
export declare function to_collection_string(context: TemplateContext, value: string): any;
export declare function to_collection_name(context: TemplateContext, value: string, partial?: boolean): any;
export declare function to_ts_type(context: TemplateContext, field: Field): string;
export declare function only_system_fields(context: TemplateContext, fields: Field[]): Field[];
export declare function only_custom_fields(context: TemplateContext, fields: Field[]): Field[];
export declare function only_with_custom_fields(context: TemplateContext, collections: Collection[]): Collection[];
//# sourceMappingURL=directus.d.ts.map