Module

x/ts_morph/common/ts_morph_common.d.ts>Comparer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface Comparer
import { type Comparer } from "https://dotland.deno.dev/x/ts_morph@17.0.1/common/ts_morph_common.d.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.