Skip to content

Commit

Permalink
fix: set unknown hook type to any
Browse files Browse the repository at this point in the history
  • Loading branch information
Repraance committed Dec 20, 2023
1 parent 7145f89 commit c2828b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/platform-shared/src/shared/applicationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Loader } from './loader';
export type Loaders = Record<string, Loader>;

export interface IAppContext extends CustomAppContext {
[x: string]: unknown;
[x: string]: any;
}

export type IRerenderConfig = {
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-shared/src/shared/runtimPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { createPluginCreator } from '@shuvi/shared/plugins';
import { IAppContext } from './applicationTypes';
import { IRouter } from './routerTypes';

export type AppComponent = unknown;
export type AppComponent = any;
export type AppContextCtx = {
router: IRouter;
request?: ShuviRequest;
Expand Down Expand Up @@ -75,7 +75,7 @@ export type IAppModule = {

type SerializedPluginOptions = string;

export type IRuntimePluginOptions = Record<string, unknown>;
export type IRuntimePluginOptions = Record<string, any>;

export type IRuntimePluginWithOptions = (
...params: any[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type ISendHtml = (
const getPageData = createAsyncParallelHook<
void,
IAppContext,
Record<string, unknown>
Record<string, any>
>();
const handlePageRequest = createAsyncSeriesWaterfallHook<IHandlePageRequest>();
const modifyHtml = createAsyncSeriesHook<IHtmlDocument, ModifyHtmlContext>();
Expand Down

0 comments on commit c2828b9

Please sign in to comment.