CIDARLAB / 3DuF

Detected usage of the any type JS-0323
Anti-pattern
Critical
15 days ago3 years old
Unexpected any. Specify a different type
45
46/** Server */
47const httpServer = http.createServer(router);
48const PORT: any = process.env.PORT ?? 6060;49httpServer.listen(PORT, () => console.log(`The server is running on port ${PORT}`));
Unexpected any. Specify a different type
358            threeduftypestring = "Template";
359        }
360        const definition = ComponentAPI.library[threeduftypestring].object;
361        const params_to_pass: { [index: string]: any } = {};362        params.forEach((value, key) => {
363            params_to_pass[key] = value;
364        });
Unexpected any. Specify a different type
351     * @param minttypestring
352     * @return {void|Array}
353     */
354    static getComponentPorts(params: Map<string, any>, minttypestring: string): Array<ComponentPort> {355        let threeduftypestring = ComponentAPI.getTypeForMINT(minttypestring);
356        if (threeduftypestring === null) {
357            console.error("Component Ports of: " + threeduftypestring + " not found in library. Using default Template");
Unexpected any. Specify a different type
187    __tools: any;
188    __render2D: any;
189    __render3D: any;
190    name: any;191    setString: string | undefined;
192
193    /**
Unexpected any. Specify a different type
186    __setString: any;
187    __tools: any;
188    __render2D: any;
189    __render3D: any;190    name: any;
191    setString: string | undefined;
192