export增加properties
This commit is contained in:
parent
cfdbe7f868
commit
780dbc80ec
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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> = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue