export增加properties

This commit is contained in:
wenjiarui 2023-06-26 18:43:17 +08:00
parent cfdbe7f868
commit 780dbc80ec
2 changed files with 2 additions and 2 deletions

2
lib/types/Port.d.ts vendored
View File

@ -7,7 +7,7 @@ export declare type Exportation<ED extends EntityDict, T extends keyof ED> = {
projection: ED[T]['Selection']['data'];
headers?: string[];
makeHeaders?: (dataList: Partial<ED[T]['Schema']>[]) => string[];
fn: (data: ED[T]['Schema'], context: AsyncContext<ED>) => Promise<Partial<Record<string, string | number | boolean | null>>>;
fn: (data: ED[T]['Schema'], context: AsyncContext<ED>, properties?: Record<string, any>) => Promise<Partial<Record<string, string | number | boolean | null>>>;
};
export declare type Importation<ED extends EntityDict, T extends keyof ED, K extends string> = {
name: string;

View File

@ -9,7 +9,7 @@ export type Exportation<ED extends EntityDict, T extends keyof ED> = {
projection: ED[T]['Selection']['data'];
headers?: string[];
makeHeaders?: (dataList: Partial<ED[T]['Schema']>[]) => string[];
fn: (data: ED[T]['Schema'], context: AsyncContext<ED>) => Promise<Partial<Record<string, string | number | boolean | null>>>;
fn: (data: ED[T]['Schema'], context: AsyncContext<ED>, properties?: Record<string, any>) => Promise<Partial<Record<string, string | number | boolean | null>>>;
};
export type Importation<ED extends EntityDict, T extends keyof ED, K extends string> = {