CommandDirective
Constructors
Signature
declare const builtIn: (option: BuiltInOptions) => CommandDirective<never>;userDefined
Added in v1.0.0
Source
Signature
declare const userDefined: <A>(leftover: ReadonlyArray<string>, value: A) => CommandDirective<A>;Mapping
Models
Signature
interface BuiltIn {
readonly _tag: "BuiltIn";
readonly option: BuiltInOptions;
}CommandDirective type
Added in v1.0.0
Source
Signature
type CommandDirective<A> = BuiltIn | UserDefined<A>;UserDefined interface
Added in v1.0.0
Source
Signature
interface UserDefined<A> {
readonly _tag: "UserDefined";
readonly leftover: readonly Array<string>;
readonly value: A;
}Refinements
Signature
declare const isBuiltIn: <A>(self: CommandDirective<A>) => self is BuiltIn;isUserDefined
Added in v1.0.0
Source
Signature
declare const isUserDefined: <A>(self: CommandDirective<A>) => self is UserDefined<A>;