Skip to content

Add getLookup() API to allow composing custom lookup from internal lookup#136

Open
rmunch wants to merge 2 commits intodependents:mainfrom
rmunch:compose-lookups
Open

Add getLookup() API to allow composing custom lookup from internal lookup#136
rmunch wants to merge 2 commits intodependents:mainfrom
rmunch:compose-lookups

Conversation

@rmunch
Copy link
Copy Markdown

@rmunch rmunch commented Feb 12, 2025

Proposing to add a getLookup API. For my use case, I have some proprietary paths in a stylesheet that are not handled by existing lookups. While I can register a custom lookup to resolve these proprietary paths, I only need to handle certain of those paths, and want to defer the rest to existing lookups. Currently, the tsLookup and some others aren't exported - rather than exporting those, I thought this solution could be more flexible and future-proof if new internal lookups are added.

If this looks desirable, I can do another pass to update docs. Thanks!

@XhmikosR
Copy link
Copy Markdown
Member

Please make sure tests pass, CI didn't run here for some reason.

@XhmikosR
Copy link
Copy Markdown
Member

@rmunch please update the docs to mention the change, thanks.

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

Successfully merging this pull request may close these issues.

2 participants