123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- function StatelessFunctionalComponent({
- isActive,
- onFiltersUpdated,
- onSelect,
- onSubmitAndDeselect,
- onCancel,
- searchFilters,
- title,
- items,
- }) {
- return <div />
- }
- function StatelessFunctionalComponent({
- isActive = true,
- onFiltersUpdated = () => null,
- onSelect = () => null,
- onSubmitAndDeselect = () => null,
- onCancel = () => null,
- searchFilters = null,
- title = '',
- items = [],
- } = {}) {
- return <div />
- }
- function StatelessFunctionalComponent(
- {
- isActive,
- onFiltersUpdated = () => null,
- onSelect = () => null,
- onSubmitAndDeselect = () => null,
- onCancel = () => null,
- searchFilters = null,
- title = '',
- items = [],
- } = {
- isActive: true
- }
- ) {
- return <div />
- }
- function StatelessFunctionalComponent({
- isActive,
- onFiltersUpdated,
- onSelect,
- onSubmitAndDeselect,
- onCancel,
- searchFilters,
- title,
- items,
- }: MyType | null | void) {
- return <div />
- }
- const StatelessFunctionalComponent = ({
- isActive,
- onFiltersUpdated,
- onSelect,
- onSubmitAndDeselect,
- onCancel,
- searchFilters,
- title,
- items,
- }: {
- isActive: number,
- onFiltersUpdated: number,
- onSelect: number,
- onSubmitAndDeselect: number,
- onCancel: number,
- searchFilters: number,
- title: number,
- items: number,
- }) => {
- return <div />
- };
- class C {
- StatelessFunctionalComponent({
- isActive,
- onFiltersUpdated,
- onSelect,
- onSubmitAndDeselect,
- onCancel,
- searchFilters,
- title,
- items,
- }) {
- return <div />
- }
- }
- type T = ({
- isActive: number,
- onFiltersUpdated: number,
- onSelect: number,
- onSubmitAndDeselect: number,
- onCancel: number,
- searchFilters: number,
- title: number,
- items: number,
- }) => void;
- const X = (props: {
- a: boolean,
- }) =>
- <A />;
|