-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpreact-config.ts
More file actions
18 lines (17 loc) · 841 Bytes
/
preact-config.ts
File metadata and controls
18 lines (17 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import type { Language } from "@grida/builder-platform-types";
import type { ReactFrameworkConfig } from "../framework-react";
import type { JsxModuleConfig } from "../module-jsx/jsx-config";
import type { PreactComponentExportingCofnig } from "./preact-config-exporting-component";
import type { PreactFunctionalComponentDeclarationConfig } from "./preact-config-functional-component-declaration";
import type { PreactStylingStrategy } from "./preact-config-styling";
export interface PreactFrameworkConfig
extends JsxModuleConfig,
Omit<ReactFrameworkConfig, "framework"> {
framework: "preact";
language: Language.jsx | Language.tsx;
styling: PreactStylingStrategy;
component_declaration_style: {
exporting_style: PreactComponentExportingCofnig;
declaration_style?: PreactFunctionalComponentDeclarationConfig;
};
}