Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/common/mod.ts>Comparer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
interface Comparer
import { type Comparer } from "https://deno.land/x/ts_morph@18.0.0/common/mod.ts";

Compares two values specifying the sort order.

Methods

compareTo(a: T, b: T): number

Checks the two items returning -1 if a preceeds, 0 if equal, and 1 if a follows.