@foxpage/foxpage-types
Version:
foxpage sdk types
16 lines (15 loc) • 598 B
TypeScript
import { ContentInfo } from '../content';
import { PrePackage } from './package';
export type RelationTypes = 'sys_variable' | 'variable' | 'material' | 'condition' | 'template' | 'function' | 'block' | 'library' | 'plugin';
export interface Relation {
[k: string]: {
id: string;
type: RelationTypes;
[k: string]: unknown;
};
}
export interface RelationInfo extends Pick<ContentInfo, 'templates' | 'variables' | 'materials' | 'conditions' | 'functions' | 'mocks' | 'blocks'> {
sysVariables?: string[];
libraries?: PrePackage[];
plugins?: PrePackage[];
}