Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
2.2 KiB
Plaintext
26 lines
2.2 KiB
Plaintext
import type { MarkOptional } from 'ts-essentials';
|
|
import type { JSONField, JSONFieldClient } from '../../fields/config/types.js';
|
|
import type { JSONFieldValidation } from '../../fields/validations.js';
|
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
type JSONFieldClientWithoutType = MarkOptional<JSONFieldClient, 'type'>;
|
|
type JSONFieldBaseClientProps = {
|
|
readonly path: string;
|
|
readonly validate?: JSONFieldValidation;
|
|
};
|
|
type JSONFieldBaseServerProps = Pick<FieldPaths, 'path'>;
|
|
export type JSONFieldClientProps = ClientFieldBase<JSONFieldClientWithoutType> & JSONFieldBaseClientProps;
|
|
export type JSONFieldServerProps = JSONFieldBaseServerProps & ServerFieldBase<JSONField, JSONFieldClientWithoutType>;
|
|
export type JSONFieldServerComponent = FieldServerComponent<JSONField, JSONFieldClientWithoutType, JSONFieldBaseServerProps>;
|
|
export type JSONFieldClientComponent = FieldClientComponent<JSONFieldClientWithoutType, JSONFieldBaseClientProps>;
|
|
export type JSONFieldLabelServerComponent = FieldLabelServerComponent<JSONField, JSONFieldClientWithoutType>;
|
|
export type JSONFieldLabelClientComponent = FieldLabelClientComponent<JSONFieldClientWithoutType>;
|
|
export type JSONFieldDescriptionServerComponent = FieldDescriptionServerComponent<JSONField, JSONFieldClientWithoutType>;
|
|
export type JSONFieldDescriptionClientComponent = FieldDescriptionClientComponent<JSONFieldClientWithoutType>;
|
|
export type JSONFieldErrorServerComponent = FieldErrorServerComponent<JSONField, JSONFieldClientWithoutType>;
|
|
export type JSONFieldErrorClientComponent = FieldErrorClientComponent<JSONFieldClientWithoutType>;
|
|
export type JSONFieldDiffServerComponent = FieldDiffServerComponent<JSONField, JSONFieldClient>;
|
|
export type JSONFieldDiffClientComponent = FieldDiffClientComponent<JSONFieldClient>;
|
|
export {};
|
|
//# sourceMappingURL=JSON.d.ts.map |