mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-04 00:37:08 +00:00
42 lines
640 B
TypeScript
42 lines
640 B
TypeScript
import * as React from 'react';
|
|
import SubModule from './sub-module';
|
|
|
|
enum Gender {
|
|
MALE,
|
|
FEMALE,
|
|
}
|
|
|
|
interface Props {
|
|
str?: string;
|
|
num: number;
|
|
gender: Gender;
|
|
any: any;
|
|
bool: boolean;
|
|
tuple: [1, 'str', true];
|
|
enum: 'red' | 'yellow' | 'green';
|
|
arr: number[];
|
|
obj: {
|
|
a: number;
|
|
[k: string]: number;
|
|
};
|
|
objOf: {
|
|
[k: string]: number;
|
|
};
|
|
exact: {
|
|
a: number;
|
|
};
|
|
empty: {};
|
|
node?: React.ReactNode;
|
|
element?: JSX.Element;
|
|
elementType?: React.ElementType;
|
|
instance: Props;
|
|
}
|
|
|
|
const App = (props: Props) => {
|
|
return <div>hello</div>;
|
|
};
|
|
|
|
App.SubModule = SubModule;
|
|
|
|
export default App;
|