[WIKI-458] refactor: base page instance for additional properties (#7228)
* refactor: create a super class for base page * fix: path --------- Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
This commit is contained in:
parent
414010688d
commit
eb5ffebcc6
7 changed files with 30 additions and 15 deletions
16
web/ce/store/pages/extended-base-page.ts
Normal file
16
web/ce/store/pages/extended-base-page.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { TPage, TPageExtended } from "@plane/types";
|
||||
import { RootStore } from "@/plane-web/store/root.store";
|
||||
import { TBasePageServices } from "@/store/pages/base-page";
|
||||
|
||||
export type TExtendedPageInstance = TPageExtended & {
|
||||
asJSONExtended: TPageExtended;
|
||||
};
|
||||
|
||||
export class ExtendedBasePage implements TExtendedPageInstance {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
constructor(store: RootStore, page: TPage, services: TBasePageServices) {}
|
||||
|
||||
get asJSONExtended(): TExtendedPageInstance["asJSONExtended"] {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue