UNPKG

@excentone/spfx-react

Version:

Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.

8 lines (7 loc) 404 B
import { ServiceKey } from "@microsoft/sp-core-library"; /** * `useScopedService` returns an instance of a service that matches the specified {@link serviceKey} from the {@link serviceScope}. * @param serviceKey The key of the service to get. * @returns A service from the component's`ServiceScope`. */ export declare const useScopedService: <TService>(serviceKey: ServiceKey<TService>) => TService;