Skip to content

load parent function doesn't infer LayoutData from named layout #6013

@raythurnvoid

Description

@raythurnvoid

Describe the bug

LayoutLoad interface doesn't include named layout's LayoutData in parent() function

Reproduction

With this files structure
image

and this named layout layout-customer.ts
image

I expect layout.ts to get LayoutData from layout-customer but it doesn't
image

Logs

No response

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 AMD Ryzen 9 4900H with Radeon Graphics
    Memory: 7.55 GB / 31.42 GB
  Binaries:
    Node: 18.7.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.54)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @sveltejs/adapter-node: 1.0.0-next.86 => 1.0.0-next.86 
    @sveltejs/kit: 1.0.0-next.418 => 1.0.0-next.418
    svelte: ^3.49.0 => 3.49.0

Severity

annoyance

Additional Information

To fix the value Record<never, never> in the related ./$types
image

should become LayoutData.customer
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions