We are seing some issues with RPC and types.. The method implementation has following return type: `
We are seing some issues with RPC and types.. The method implementation has following return type:
However the consuming worker, doesn't pick up the type
Another method does work though, so our general setup is correct. Any ideas how to debug this further or figure out why it get's
Example of a working method
(method) UserService.mergeActivatedVouchers(signature: string | null, objVouchers: string, userId: number): Promise<{
id: number;
company_id: number;
contract_sequence: number;
contract_type: string;
contract_successor: string | null;
contract_start: Date | null;
contract_end: Date | null;
contract_cancellation_period_end: Date | null;
contract_annotation: string | null;
invoice_amount: string;
invoice_currency: string;
invoice_item_number: string | null;
contract_options: unknown;
createdat: Date;
updatedat: Date;
billing_blocked_until: Date | null;
free_period_boost: string | null;
cancellation_reason: string | null;
preceding_contract_id: number | null;
customer_signature: string | null;
contract_labels: string[] | null;
airtable_contracts_recordid: string | null;
}[]>(method) UserService.mergeActivatedVouchers(signature: string | null, objVouchers: string, userId: number): Promise<{
id: number;
company_id: number;
contract_sequence: number;
contract_type: string;
contract_successor: string | null;
contract_start: Date | null;
contract_end: Date | null;
contract_cancellation_period_end: Date | null;
contract_annotation: string | null;
invoice_amount: string;
invoice_currency: string;
invoice_item_number: string | null;
contract_options: unknown;
createdat: Date;
updatedat: Date;
billing_blocked_until: Date | null;
free_period_boost: string | null;
cancellation_reason: string | null;
preceding_contract_id: number | null;
customer_signature: string | null;
contract_labels: string[] | null;
airtable_contracts_recordid: string | null;
}[]>However the consuming worker, doesn't pick up the type
(property) mergeActivatedVouchers: (signature: string | null, objVouchers: string, userId: number) => never(property) mergeActivatedVouchers: (signature: string | null, objVouchers: string, userId: number) => neverAnother method does work though, so our general setup is correct. Any ideas how to debug this further or figure out why it get's
neverneverExample of a working method
(method) UserService.getMailTemplate(basePricing: number, environment: string): Promise<{
template_id: number | null;
subject: string;
}[]>(method) UserService.getMailTemplate(basePricing: number, environment: string): Promise<{
template_id: number | null;
subject: string;
}[]>(property) getMailTemplate: (basePricing: number, environment: string) => Promise<{
template_id: number | null;
subject: string;
}[] & Disposable> & {
[x: number]: Promise<{
template_id: number | null;
subject: string;
} & Disposable> & {
...;
};(property) getMailTemplate: (basePricing: number, environment: string) => Promise<{
template_id: number | null;
subject: string;
}[] & Disposable> & {
[x: number]: Promise<{
template_id: number | null;
subject: string;
} & Disposable> & {
...;
};