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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
7 additions and
7 deletions
-
components/menu/OverrideContext.tsx
-
components/message/index.tsx
-
components/notification/PurePanel.tsx
-
components/notification/index.tsx
-
components/theme/util/statistic.ts
|
|
@ -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; |
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
|
|
@ -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, |
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
|
|
@ -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 = {}; |
|
|
|
|
|
|
|