hadron-document
Version:
Hadron Document
43 lines • 2.23 kB
TypeScript
import StandardEditor from './standard';
import StringEditor from './string';
import Decimal128Editor from './decimal128';
import Int32Editor from './int32';
import Int64Editor from './int64';
import DoubleEditor from './double';
import DateEditor from './date';
import NullEditor from './null';
import UndefinedEditor from './undefined';
import ObjectIdEditor from './objectid';
import UUIDEditor from './uuid';
import type { Element } from '../element';
import { type TypeCastTypes } from 'hadron-type-checker';
export declare const ElementEditor: ((element: Element, displayType?: TypeCastTypes) => {
Standard: StandardEditor;
String: StringEditor;
Decimal128: Decimal128Editor;
Date: DateEditor;
Double: DoubleEditor;
Int32: Int32Editor;
Int64: Int64Editor;
Null: NullEditor;
Undefined: UndefinedEditor;
ObjectId: ObjectIdEditor;
UUID: UUIDEditor;
}) & {
DateEditor: typeof DateEditor;
StandardEditor: typeof StandardEditor;
StringEditor: typeof StringEditor;
Decimal128Editor: typeof Decimal128Editor;
DoubleEditor: typeof DoubleEditor;
Int32Editor: typeof Int32Editor;
Int64Editor: typeof Int64Editor;
NullEditor: typeof NullEditor;
UndefinedEditor: typeof UndefinedEditor;
ObjectIdEditor: typeof ObjectIdEditor;
UUIDEditor: typeof UUIDEditor;
};
export type Editor = DateEditor | StandardEditor | StringEditor | Decimal128Editor | DoubleEditor | Int32Editor | Int64Editor | NullEditor | UndefinedEditor | ObjectIdEditor | UUIDEditor;
export { DateEditor, StandardEditor, StringEditor, Decimal128Editor, DoubleEditor, Int32Editor, Int64Editor, NullEditor, UndefinedEditor, ObjectIdEditor, UUIDEditor, };
export declare function getEditorNameByType(type: TypeCastTypes): "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Null" | "ObjectId" | "String" | "Undefined" | "UUID" | "Standard";
export declare function getEditorByType(type: TypeCastTypes): typeof StandardEditor | typeof DateEditor | typeof StringEditor | typeof Decimal128Editor | typeof Int32Editor | typeof Int64Editor | typeof DoubleEditor | typeof NullEditor | typeof UndefinedEditor | typeof ObjectIdEditor | typeof UUIDEditor;
//# sourceMappingURL=index.d.ts.map