Browse Source

chore(typo): improve typescript declaration (#41907)

* chore(typo): improve typescript declaration

* Revert "chore(typo): improve typescript declaration"

This reverts commit d340911992.

* chore(typo): improve typescript declaration

* Update components/theme/interface/components.ts

* Update components/theme/index.ts

* Update components.ts
pull/42007/head
Wuxh 2 years ago
committed by GitHub
parent
commit
f6c661ef5a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/menu/OverrideContext.tsx
  2. 4
      components/message/index.tsx
  3. 2
      components/notification/PurePanel.tsx
  4. 2
      components/notification/index.tsx
  5. 4
      components/theme/util/statistic.ts

2
components/menu/OverrideContext.tsx

@ -11,7 +11,6 @@ export interface OverrideContextProps {
onClick?: () => void;
}
/** @internal Only used for Dropdown component. Do not use this in your production. */
const OverrideContext = React.createContext<OverrideContextProps | null>(null);
/** @internal Only used for Dropdown component. Do not use this in your production. */
@ -36,4 +35,5 @@ export const OverrideProvider: React.FC<OverrideContextProps & { children: React
return <OverrideContext.Provider value={context}>{children}</OverrideContext.Provider>;
};
/** @internal Only used for Dropdown component. Do not use this in your production. */
export default OverrideContext;

4
components/message/index.tsx

@ -343,7 +343,7 @@ methods.forEach((type: keyof MessageMethods) => {
// ==============================================================================
const noop = () => {};
/** @private Only Work in test env */
/** @internal Only Work in test env */
// eslint-disable-next-line import/no-mutable-exports
export let actWrapper: (wrapper: any) => void = noop;
@ -353,7 +353,7 @@ if (process.env.NODE_ENV === 'test') {
};
}
/** @private Only Work in test env */
/** @internal Only Work in test env */
// eslint-disable-next-line import/no-mutable-exports
export let actDestroy = noop;

2
components/notification/PurePanel.tsx

@ -84,7 +84,7 @@ export interface PurePanelProps
prefixCls?: string;
}
/** @private Internal Component. Do not use in your production. */
/** @internal Internal Component. Do not use in your production. */
export default function PurePanel(props: PurePanelProps) {
const {
prefixCls: staticPrefixCls,

2
components/notification/index.tsx

@ -260,7 +260,7 @@ methods.forEach((type: keyof NoticeMethods) => {
// ==============================================================================
const noop = () => {};
/** @private Only Work in test env */
/** @internal Only Work in test env */
// eslint-disable-next-line import/no-mutable-exports
export let actWrapper: (wrapper: any) => void = noop;

4
components/theme/util/statistic.ts

@ -34,13 +34,13 @@ export function merge<T extends object>(...objs: Partial<T>[]): T {
return ret;
}
/** @private Internal Usage. Not use in your production. */
/** @internal Internal Usage. Not use in your production. */
export const statistic: Record<
string,
{ global: string[]; component: Record<string, string | number> }
> = {};
/** @private Internal Usage. Not use in your production. */
/** @internal Internal Usage. Not use in your production. */
// eslint-disable-next-line camelcase
export const _statistic_build_: typeof statistic = {};

Loading…
Cancel
Save