Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.27 KB

File metadata and controls

19 lines (12 loc) · 1.27 KB

Home > @velcro/resolver > ResolverStrategyWithRoot

ResolverStrategyWithRoot interface

Signature:

interface ResolverStrategyWithRoot extends ResolverStrategy 

Extends: ResolverStrategy

Properties

Property Type Description
rootUri Uri The root uri of the strategy.A common parent to all uris that this strategy can handle.This may sometimes be the same value as would be returned by getResolveRoot but will sometimes be a parent of that. Take, for example Unpkg; there, we may want to express that a strategy should 'own' all uris under https://unpkg.com/ even though the resolve root for https://unpkg.com/react@16.13.1/index.js will actually be https://unpkg.com/react@16.13.1/.Notably, the CompoundResolverStrategy requires all child strategies implement the ResolverStrategyWithRoot interface because it dispatches operations on different uris according to each strategy's rootUri.