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 ExpandsTo and FlattensTo helper types #2975

Open
LukeAbby opened this issue Dec 17, 2024 · 1 comment
Open

Add ExpandsTo and FlattensTo helper types #2975

LukeAbby opened this issue Dec 17, 2024 · 1 comment
Assignees

Comments

@LukeAbby
Copy link
Collaborator

Will be used as:

function takesConfig<T>(config: ExpandsTo<T, { foo: { bar: number } }>) { ... }
function takesData<T>(config: FlattensTo<T, { foo: { bar: number } }>) { ... }

In order to enable functions that call foundry.utils.expandObject and foundry.utils.flattenObject.

@LukeAbby LukeAbby self-assigned this Dec 17, 2024
@esheyw
Copy link
Collaborator

esheyw commented Dec 17, 2024

Places this will be useful for:

  • BaseEffectSource#_configure

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

2 participants