[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:
Aaryan Khandelwal 2025-06-19 16:00:18 +05:30 committed by GitHub
parent 414010688d
commit eb5ffebcc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 30 additions and 15 deletions

View 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 {};
}
}