Directive overview
Added in v1.0.0
Table of contents
utils
Directive
Signature
export declare function Directive<E, R>(directive: (part: Part.Part) => Effect.Effect<unknown, E, R>): Directive<E, R>
Added in v1.0.0
Directive (interface)
Signature
export interface Directive<E, R> extends Placeholder<unknown, E, R> {
readonly [DirectiveTypeId]: DirectiveTypeId
(part: Part.Part): Effect.Effect<unknown, E, R>
}
Added in v1.0.0
DirectiveTypeId
Signature
export declare const DirectiveTypeId: typeof DirectiveTypeId
Added in v1.0.0
DirectiveTypeId (type alias)
Signature
export type DirectiveTypeId = typeof DirectiveTypeId
Added in v1.0.0
attribute
Signature
export declare const attribute: <E, R>(
directive: (part: Part.AttributePart) => Effect.Effect<unknown, E, R>
) => Directive<E, R>
Added in v1.0.0
boolean
Signature
export declare const boolean: <E, R>(
directive: (part: Part.BooleanPart) => Effect.Effect<unknown, E, R>
) => Directive<E, R>
Added in v1.0.0
className
Signature
export declare const className: <E, R>(
directive: (part: Part.ClassNamePart) => Effect.Effect<unknown, E, R>
) => Directive<E, R>
Added in v1.0.0
comment
Signature
export declare const comment: <E, R>(
directive: (part: Part.CommentPart) => Effect.Effect<unknown, E, R>
) => Directive<E, R>
Added in v1.0.0
data
Signature
export declare const data: <E, R>(directive: (part: Part.DataPart) => Effect.Effect<unknown, E, R>) => Directive<E, R>
Added in v1.0.0
event
Signature
export declare const event: <E, R>(directive: (part: Part.EventPart) => Effect.Effect<unknown, E, R>) => Directive<E, R>
Added in v1.0.0
isDirective
Signature
export declare function isDirective<E, R>(renderable: unknown): renderable is Directive<E, R>
Added in v1.0.0
node
Signature
export declare const node: <E, R>(directive: (part: Part.NodePart) => Effect.Effect<unknown, E, R>) => Directive<E, R>
Added in v1.0.0
property
Signature
export declare const property: <E, R>(
directive: (part: Part.PropertyPart) => Effect.Effect<unknown, E, R>
) => Directive<E, R>
Added in v1.0.0
ref
Signature
export declare const ref: <E, R>(directive: (part: Part.RefPart) => Effect.Effect<unknown, E, R>) => Directive<E, R>
Added in v1.0.0
text
Signature
export declare const text: <E, R>(directive: (part: Part.TextPart) => Effect.Effect<unknown, E, R>) => Directive<E, R>
Added in v1.0.0