Skip to content

Is it possible to include the full namespace for a property? #66

@jayhayman-hdd

Description

@jayhayman-hdd

I have a specific case for an old project where a Class references a another class like so:

public List<Common.Dtos.FilterSelections>? Filters { get; set; }

The output generated is missing the parent name spaces so only FilterSelections is show like so:

    export class GetAssetTrackHeroColumnChartWithFiltersDto {
        
        // WORKFLOWTOKEN
        public workflowToken: string | null = null;
        // GROUPTOKEN
        public groupToken: string | null = null;
        // DATESPANOPTION
        public dateSpanOption: number = 0;
        // DRILLDOWNCURRENTLEVEL
        public drillDownCurrentLevel: number = 0;
        // DRILLDOWNDATESTART
        public drillDownDateStart: string | null = null;
        // DATASETTYPE
        public dataSetType: number = 0;
        // FILTERS
        public filters: FilterSelections[] = null;
    }

Template generation code is as follows:

namespace Cylch.Atp.Dashboard.Services.Features.Reports.AssetTrack.Dtos {
    $Classes(c => c.Namespace == "Cylch.Atp.Dashboard.Services.Features.Reports.AssetTrack.Dtos")[
    export class $Name {
        $Properties[
        // $LoudName
        public $name: $Type = $Type[$Default];]
    }]
}

Is there a way to specify to output the full namespace instead of just FilterSelections?

Manually adding Common.Dtos. to the .tsx class resolves the full path to the included class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions