mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
migrate importing transaction dialog to composition API and typescript
This commit is contained in:
@@ -3,6 +3,11 @@ export type PartialRecord<K extends keyof any, T> = {
|
||||
[P in K]?: T;
|
||||
}
|
||||
|
||||
export interface NameValue {
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface TypeAndName {
|
||||
readonly type: number;
|
||||
readonly name: string;
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
export interface ImportFileTypeAndExtensions {
|
||||
readonly type: string;
|
||||
readonly extensions?: string;
|
||||
}
|
||||
|
||||
export interface ImportFileType extends ImportFileTypeAndExtensions {
|
||||
readonly type: string;
|
||||
readonly name: string;
|
||||
readonly extensions: string;
|
||||
readonly subTypes?: ImportFileTypeSubType[];
|
||||
readonly document?: {
|
||||
readonly supportMultiLanguages: boolean | string;
|
||||
readonly anchor: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ImportFileTypeSubType extends ImportFileTypeAndExtensions {
|
||||
readonly type: string;
|
||||
readonly name: string;
|
||||
readonly extensions?: string;
|
||||
}
|
||||
|
||||
export interface LocalizedImportFileType extends ImportFileTypeAndExtensions {
|
||||
readonly type: string;
|
||||
readonly displayName: string;
|
||||
readonly extensions: string;
|
||||
readonly subTypes?: LocalizedImportFileTypeSubType[];
|
||||
readonly document?: LocalizedImportFileDocument;
|
||||
}
|
||||
|
||||
export interface LocalizedImportFileTypeSubType extends ImportFileTypeAndExtensions {
|
||||
readonly type: string;
|
||||
readonly displayName: string;
|
||||
readonly extensions?: string;
|
||||
}
|
||||
|
||||
export interface LocalizedImportFileDocument {
|
||||
readonly language: string;
|
||||
readonly displayLanguageName: string;
|
||||
readonly anchor: string;
|
||||
}
|
||||
Reference in New Issue
Block a user