Type extending LayerDefaultConfig for layer configuration
Base URL for the API layer
A LayerConstructor function that creates layer factories
const apiLayer = Layer(new URL('https://api.example.com'))({
// layer config
});
The returned layer factory creates proxy-based API layer objects that:
Each created layer instance includes:
The proxy implementation allows transparent access to configured sub-layers and handles property access for both direct properties and nested layers.
Creates a Layer factory function that constructs API layers with configurable endpoints.