APIDemo

@alinea/input.link

/**
Create a link field configuration */
export function createLink<T, Q>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
/**
Create a link field which accepts multiple inputs */
export namespace link {
export namespace entry {
export function multiple<T = {}, Q = Array<Entry & T>>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
}
export namespace image {
export function multiple<T = {}, Q = Array<Entry & {averageColor: string, blurHash: string, extension: string, hash: string, height: number, size: number, src: string, width: number} & T>>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
}
export function entry<T = {}, Q = Entry & T>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
export function image<T = {}, Q = Entry & {averageColor: string, blurHash: string, extension: string, hash: string, height: number, size: number, src: string, width: number} & T>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
export function multiple<T = {}, Q = Array<(Entry & T) & (Url & T)>>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
}
/**
Create a link field configuration */
export function link<T = {}, Q = (Entry & T) & (Url & T)>(
label: Label,
options: LinkOptions<T, Q>
): LinkField<T, Q>
export namespace LinkData {
}
/**
Internal representation of a link field */
/**
Optional settings to configure a link field */
export namespace LinkType {
export function conditionOf(
cursor: Cursor<Entry>,
type: LinkType
): Expr<boolean>
}