fallow-extract 3.43.1

AST extraction engine for fallow codebase intelligence (parser, complexity, SFC / Astro / MDX / CSS)
Documentation
//! `Schema` export names from the Effect typings, used by the shape rules in
//! `effect_schema.rs`.

/// `Schema` functions that `pipe` can call to get a schema: the data-last
/// form returns a schema (filters, `brand`, `extend`, `check`, `decodeTo`).
/// The list comes from the typings of effect 3.22.4 and effect 4.0.5. It
/// leaves out `decode` and `encode`: they return an `Effect` in version 3.
pub(super) const PIPE_TRANSFORMS: &[&str] = &[
    "annotate",
    "annotateEncoded",
    "annotateKey",
    "annotations",
    "attachPropertySignature",
    "between",
    "betweenBigDecimal",
    "betweenBigInt",
    "betweenDate",
    "betweenDuration",
    "brand",
    "capitalized",
    "catchDecoding",
    "catchDecodingWithContext",
    "catchEncoding",
    "catchEncodingWithContext",
    "check",
    "clamp",
    "clampBigDecimal",
    "clampBigInt",
    "clampDuration",
    "compose",
    "decodeTo",
    "encodeKeys",
    "encodeTo",
    "endsWith",
    "extend",
    "extendTo",
    "filter",
    "filterEffect",
    "finite",
    "fromBrand",
    "greaterThan",
    "greaterThanBigDecimal",
    "greaterThanBigInt",
    "greaterThanDate",
    "greaterThanDuration",
    "greaterThanOrEqualTo",
    "greaterThanOrEqualToBigDecimal",
    "greaterThanOrEqualToBigInt",
    "greaterThanOrEqualToDate",
    "greaterThanOrEqualToDuration",
    "headOrElse",
    "includes",
    "int",
    "itemsCount",
    "length",
    "lessThan",
    "lessThanBigDecimal",
    "lessThanBigInt",
    "lessThanDate",
    "lessThanDuration",
    "lessThanOrEqualTo",
    "lessThanOrEqualToBigDecimal",
    "lessThanOrEqualToBigInt",
    "lessThanOrEqualToDate",
    "lessThanOrEqualToDuration",
    "lowercased",
    "maxItems",
    "maxLength",
    "middlewareDecoding",
    "middlewareEncoding",
    "minItems",
    "minLength",
    "multipleOf",
    "mutable",
    "mutableKey",
    "negative",
    "negativeBigDecimal",
    "negativeBigInt",
    "nonEmptyString",
    "nonNaN",
    "nonNegative",
    "nonNegativeBigDecimal",
    "nonNegativeBigInt",
    "nonPositive",
    "nonPositiveBigDecimal",
    "nonPositiveBigInt",
    "omit",
    "optional",
    "optionalKey",
    "overrideToCodecIso",
    "overrideToEquivalence",
    "overrideToFormatter",
    "partialWith",
    "pattern",
    "pick",
    "pickLiteral",
    "pluck",
    "positive",
    "positiveBigDecimal",
    "positiveBigInt",
    "readonlyKey",
    "refine",
    "rename",
    "required",
    "requiredKey",
    "startsWith",
    "toEncoded",
    "toTaggedUnion",
    "toType",
    "transform",
    "transformOrFail",
    "trimmed",
    "uncapitalized",
    "uppercased",
    "validDate",
    "withConstructorDefault",
    "withDecodingDefault",
    "withDecodingDefaultKey",
    "withDecodingDefaultType",
    "withDecodingDefaultTypeKey",
];

/// PascalCase `Schema` names that are only a type or an interface in
/// effect 3.22.4 and effect 4.0.5, such as `Schema.Schema` and `Schema.Top`.
pub(super) const TYPE_ONLY_NAMES: &[&str] = &[
    "Annotable",
    "AnnotableClass",
    "AnnotableDeclare",
    "Annotations",
    "Bottom",
    "BottomLazy",
    "BottomLazyWithoutNew",
    "BottomWithoutNew",
    "BrandSchema",
    "CauseEncoded",
    "CauseIso",
    "CauseReasonIso",
    "ChunkIso",
    "Codec",
    "Constraint",
    "ConstraintCodec",
    "ConstraintDecoder",
    "ConstraintEncoder",
    "ConstraintRebuildable",
    "ConstructorDefault",
    "Decoder",
    "DecodingDefaultOptions",
    "DurationEncoded",
    "EitherEncoded",
    "Element",
    "EncodedGraph",
    "Encoder",
    "EnumsDefinition",
    "ErrorOptions",
    "ExitEncoded",
    "ExitIso",
    "FiberIdEncoded",
    "FilterIssue",
    "FilterOutput",
    "GraphIso",
    "HashMapIso",
    "HashSetIso",
    "IndexSignature",
    "JsonArray",
    "LeftEncoded",
    "MakeOptions",
    "Mutability",
    "MutableJsonArray",
    "MutableJsonObject",
    "Optic",
    "OptionEncoded",
    "OptionIso",
    "OptionalOptions",
    "Optionality",
    "ParseJsonOptions",
    "PropertySignature",
    "ReadonlyMapIso",
    "ReadonlySetIso",
    "ResultIso",
    "RightEncoded",
    "Schema",
    "SchemaClass",
    "Serializable",
    "SerializableWithResult",
    "Simplify",
    "SimplifyMutable",
    "StringTree",
    "TaggedErrorClass",
    "TaggedRequestClass",
    "ToJsonSchemaOptions",
    "Top",
    "TreeRecord",
    "Tuple2",
    "TupleType",
    "TypeLiteral",
    "WithResult",
    "WithoutConstructorDefault",
];