Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jayhayman-hdd opened this issue Oct 13, 2024 · 0 comments
Open

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

jayhayman-hdd opened this issue Oct 13, 2024 · 0 comments

Comments

@jayhayman-hdd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant