Coggle requires JavaScript to display documents.
import
export
export var pi = 3.14;
import { pi } from "./utils.js";
import { pi as magicNumber } from "./utils.js";
export default class User implements Person { constructor(public username: string, public email: string) {} logout() { console.log(`${this.username} logs out!!`); } }
import User from "./User.js";
import thingy from "./User.js";
import User, { userHelper } from "./User.js";
export default class User implements Person { constructor(public username: string, public email: string) {} logout() { console.log(`${this.username} logs out!!`); } } export function userHelper() { console.log("USER HELPER!"); }
export interface Person { username: string; email: string; }
export type Color = "red" | "green" | "blue";
import type { Person } from "./types.js";
import { type Person } from "./utils.js";
import { type Person, createAccount } from "./utils.js";