feat(address-component): Address für mehrteilige Adressen [tsc:fail]
This commit is contained in:
parent
1068ec827d
commit
d3f7ba27c1
@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"completed_features": [],
|
"completed_features": [],
|
||||||
"current_feature": "time-ago-component",
|
"current_feature": "address-component",
|
||||||
"started_at": "2026-05-23T10:48:26.654134",
|
"started_at": "2026-05-23T10:48:26.654134",
|
||||||
"attempted_features": [
|
"attempted_features": [
|
||||||
"price-tag-component"
|
"price-tag-component",
|
||||||
|
"time-ago-component"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -4703,3 +4703,21 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
|
|||||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||||
|
- `10:48:47` **INFO** Committed feature time-ago-component
|
||||||
|
- `10:48:48` **INFO** Pushed: rc=0
|
||||||
|
|
||||||
|
## Phase-3 Feature: address-component (2026-05-23 10:48:48)
|
||||||
|
|
||||||
|
- `10:48:48` **INFO** Description: Address für mehrteilige Adressen
|
||||||
|
- `10:48:48` **INFO** Generating apps/web/src/components/Address.tsx (Address-Component. Props: street, city, zip, country?. Mehrzeilig: Str…)
|
||||||
|
- `10:48:51` **INFO** wrote 469 chars in 3.6s (attempt 1)
|
||||||
|
- `10:48:51` **INFO** Running tsc --noEmit on api…
|
||||||
|
- `10:48:53` **WARN** tsc errors:
|
||||||
|
src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||||
|
src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||||
|
src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||||
|
src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||||
|
src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||||
|
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||||
|
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||||
|
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||||
|
|||||||
18
apps/web/src/components/Address.tsx
Normal file
18
apps/web/src/components/Address.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface AddressProps {
|
||||||
|
street: string;
|
||||||
|
city: string;
|
||||||
|
zip: string;
|
||||||
|
country?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Address({ street, city, zip, country }: AddressProps) {
|
||||||
|
return (
|
||||||
|
<div className="text-sm leading-relaxed text-slate-600 dark:text-slate-400">
|
||||||
|
<div className="font-medium text-slate-900 dark:text-slate-100">{street}</div>
|
||||||
|
<div>{zip} {city}</div>
|
||||||
|
{country && <div>{country}</div>}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user