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:
Joshua Chen 2022-03-31 19:16:07 +08:00 committed by GitHub
parent ce2b631455
commit 24c205a835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 145 additions and 138 deletions

View file

@ -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;
};
}
};
}

View file

@ -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;