message: refactor(plugins): better types for access component
diff: @@ -60,7 +60,7 @@ export function accessProvider(container) {
  api.writeTmpFile({
  path: 'index.tsx',
  content: `
  -import React from 'react';
  +import React, { PropsWithChildren } from 'react';
  import { AccessContext } from './context';
  import type { IRoute } from 'umi';
  @@ -72,7 +72,7 @@ export interface AccessProps {
  accessible: boolean;
  fallback?: React.ReactNode;
  }
  -export const Access: React.FC<AccessProps> = (props) => {
  +export const Access: React.FC<PropsWithChildren<AccessProps>> = (props) => {
  if (process.env.NODE_ENV === 'development' && typeof props.accessible !== 'boolean') {
  throw new Error('[access] the \`accessible\` property on <Access /> should be a boolean');
  }
  