UNPKG

@omnia/fx-models

Version:
35 lines (34 loc) 1.35 kB
import { IIcon } from './Icon'; import { GuidValue } from './Guid'; export interface WebComponentOptions { /** The name for this component, this should be a none conflicting name e.g. use project as prefix myuniqueprojectname-componentName. i.e. <myuniqueprojectname-componentName></myuniqueprojectname-componentName> */ elementName: string; /** The path for the start point for this component e.g. './ComponentFolder/Component.tsx' Paths should be relative project root, or relative current folder */ entryPoint: string; /** The path to a .d.ts file containing the intrinsic declaration for the web component e.g. './ComponentFolder/ComponentTypings.d.ts' Paths should be relative project root or relative current folder */ typings?: string; } export interface WebComponentDefinition { /** The title shown for this component */ title: string; /** (Optional) The description shown for this component */ description?: string; /** (Optional) The icon shown for this component */ icon?: IIcon; /** (Optional) The feature dependency ids for this component availability (in or operator)*/ featureDependencyIds?: Array<GuidValue>; } export interface ResourceBuildOptions { justCopy: boolean; }