mirror of https://github.com/alibaba/ice.git
fix: type
This commit is contained in:
parent
785db8e0d1
commit
6b5d56bc15
|
|
@ -1,7 +1,6 @@
|
|||
import * as React from 'react';
|
||||
import type { PageData } from './types';
|
||||
|
||||
const Context = React.createContext<PageData>({});
|
||||
const Context = React.createContext({});
|
||||
|
||||
Context.displayName = 'PageContext';
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ export interface AppData {
|
|||
}
|
||||
|
||||
export interface PageData {
|
||||
pageConfig?: PageConfig;
|
||||
pageConfig: PageConfig;
|
||||
initialData?: InitialData;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue