Sha256: aded479332d98ff70b8142ab03fc68ce73f5a3af24725105ab12d62c0384a73a

Contents?: true

Size: 1.95 KB

Versions: 15

Compression:

Stored size: 1.95 KB

Contents

import { Plugin } from "./types";
export default function (plugins: Plugin<any>[]): {
    Type: {
        or(...types: any[]): import("./types").Type<any>;
        from<T>(value: any, name?: string | undefined): import("./types").Type<T>;
        def(typeName: string): import("./types").Def<any>;
        hasDef(typeName: string): boolean;
    };
    builtInTypes: {
        string: import("./types").Type<string>;
        function: import("./types").Type<Function>;
        array: import("./types").Type<any[]>;
        object: import("./types").Type<{
            [key: string]: any;
        }>;
        RegExp: import("./types").Type<RegExp>;
        Date: import("./types").Type<Date>;
        number: import("./types").Type<number>;
        boolean: import("./types").Type<boolean>;
        null: import("./types").Type<null>;
        undefined: import("./types").Type<undefined>;
        BigInt: import("./types").Type<BigInt>;
    };
    namedTypes: import("./gen/namedTypes").NamedTypes;
    builders: import("./gen/builders").builders;
    defineMethod: (name: any, func?: Function | undefined) => Function;
    getFieldNames: (object: any) => string[];
    getFieldValue: (object: any, fieldName: any) => any;
    eachField: (object: any, callback: (name: any, value: any) => any, context?: any) => void;
    someField: (object: any, callback: (name: any, value: any) => any, context?: any) => boolean;
    getSupertypeNames: (typeName: string) => string[];
    getBuilderName: (typeName: any) => any;
    astNodesAreEquivalent: {
        (a: any, b: any, problemPath?: any): boolean;
        assert(a: any, b: any): void;
    };
    finalize: () => void;
    Path: import("./path").PathConstructor;
    NodePath: import("./node-path").NodePathConstructor;
    PathVisitor: import("./path-visitor").PathVisitorConstructor;
    use: <T_1>(plugin: Plugin<T_1>) => T_1;
    visit: <M = {}>(node: import("./types").ASTNode, methods?: import("./main").Visitor<M> | undefined) => any;
};

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.51 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.50 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.49 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.48 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.47 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.46 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.45 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.44 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.43 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.42 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.41 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.40 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.39 node_modules/ast-types/lib/fork.d.ts
immosquare-cleaner-0.1.38 node_modules/ast-types/lib/fork.d.ts