11 lines
499 B
TypeScript
Executable file
11 lines
499 B
TypeScript
Executable file
import React from "react";
|
|
import { IMsalContext } from "../MsalContext.js";
|
|
import { Subtract } from "../utils/utilities.js";
|
|
export type WithMsalProps = {
|
|
msalContext: IMsalContext;
|
|
};
|
|
/**
|
|
* Higher order component wraps provided component with msal by injecting msal context values into the component's props
|
|
* @param Component
|
|
*/
|
|
export declare const withMsal: <P extends WithMsalProps>(Component: React.ComponentType<P>) => React.FunctionComponent<Subtract<P, WithMsalProps>>;
|