Editar

Compartir a través de


Module props.autogenerated.ts file

The props.autogenerated.ts file is a TypeScript file that is automatically generated for a module. It shouldn't be manually changed. If new configuration values are added to the module definition file and module data files, this file is automatically built so that it includes the appropriate interfaces.

Example

The following example shows the props.autogenerated.ts file for a module.

/**
 * Copyright (c) 2018 Microsoft Corporation
 * IProductFeature contentModule Interface Properties
 * THIS FILE IS AUTO-GENERATED - MANUAL MODIFICATIONS WILL BE LOST
 */

import * as Msdyn365 from '@msdyn365-commerce/core';

export const enum imageAlignment {
    left = 'left',
    right = 'right'
}

export interface IProductFeatureConfig extends Msdyn365.IModuleConfig {
    imageAlignment?: imageAlignment;
    productTitle?: string;
    productDetails?: Msdyn365.RichText;
    productImage?: Msdyn365.IImageData;
    buttonText?: string;
    productIds?: string;
}

export interface IProductFeatureResources {
    resourceKey: string;
}

export interface IProductFeatureProps<T> extends Msdyn365.IModule<T> {
    resources: IProductFeatureResources;
    config: IProductFeatureConfig;
}

Additional resources

Modules overview

Module definition file

Module React component file

Module view file

Module data file

Module mock file

Module test file