mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
- Fix problemi rilevati da ESLint (per togliere alcune regole commentate) - Spostati i tipi nella cartella typings - Aggiunti alcuni alias per la cartella resources
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
import type {
|
|
Attributes,
|
|
CommonAttributes
|
|
} from 'mithril';
|
|
import type {Response} from 'redaxios';
|
|
|
|
export type ErrorResponse = Response<{errors: Record<string, string>}>;
|
|
|
|
export type JSXElement<T> = Omit<Partial<T>, 'children' | 'style'>
|
|
& CommonAttributes<any, any>
|
|
& {
|
|
children?: JSX.Element | JSX.Element[] | Attributes | Attributes[],
|
|
style?: string | CSSStyleDeclaration
|
|
};
|
|
|