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

Add supported for nested profile arrays #14

Open
stackoverfloweth opened this issue Mar 17, 2024 · 0 comments
Open

Add supported for nested profile arrays #14

stackoverfloweth opened this issue Mar 17, 2024 · 0 comments

Comments

@stackoverfloweth
Copy link
Collaborator

stackoverfloweth commented Mar 17, 2024

mapper.register currently expects either a single profile or an array of profiles.
loadProfiles expects an import where each "thing" is a profile

what if my file structure was

└── src
   └── maps
     ├── string.ts
     ├── number.ts
     └── index.ts

and string.ts and number.ts both exported an array of profiles like

export const numberProfiles = [
   ...
]

we would need to support a utility that flattens those arrays nicely

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