UNPKG

@envelop/core

Version:

This is the core package for Envelop. You can find a complete documentation here: https://github.com/n1ru4l/envelop

10 lines (9 loc) 330 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useExtendContext = void 0; const useExtendContext = (contextFactory) => ({ async onContextBuilding({ context, extendContext }) { extendContext((await contextFactory(context))); }, }); exports.useExtendContext = useExtendContext;