1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
Files
openstamanager/resources/js/Components/Page.ts
Maicol Battistini 636c7ac68e feat: 💥 Conversione a Typescript
- Rimossi Babel e Flow, sostituito con Typescript
- Qualche piccolo fix qua e là
- Aggiornate dipendenze
2022-01-06 15:45:35 +01:00

20 lines
376 B
TypeScript

import Component from './Component';
/**
* The `Page` component
*
* @abstract
*/
type PageAttributes = {
component: string
locale: string
props: Record<string, any>
url: string
version: string
};
export default class Page extends Component<{}> {
page: PageAttributes = JSON.parse($('#app').attr('data-page') as string) as PageAttributes;
title?: string;
}