mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 06:50:36 +02:00
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type (#7080)
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type * fix
This commit is contained in:
parent
ce2b631455
commit
24c205a835
38 changed files with 145 additions and 138 deletions
|
@ -10,10 +10,10 @@ declare module '@philpl/buble' {
|
|||
// eslint-disable-next-line import/no-extraneous-dependencies, no-restricted-syntax
|
||||
export * from 'buble';
|
||||
export const features: string[];
|
||||
export interface TransformOptions extends OriginalTransformOptions {
|
||||
export type TransformOptions = OriginalTransformOptions & {
|
||||
transforms?: OriginalTransformOptions['transforms'] & {
|
||||
asyncAwait?: boolean;
|
||||
getterSetter?: boolean;
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,9 +23,9 @@ declare module '@theme/Playground' {
|
|||
}
|
||||
|
||||
declare module '@theme/ReactLiveScope' {
|
||||
interface Scope {
|
||||
type Scope = {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
};
|
||||
|
||||
const ReactLiveScope: Scope;
|
||||
export default ReactLiveScope;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue