sicua
Version:
A tool for analyzing project structure and dependencies
15 lines (14 loc) • 745 B
TypeScript
import { Thing, WithContext, Graph } from "schema-dts";
import ts from "typescript";
export declare class SeoRelated {
static extractRouteParams(route: string): string[];
static isInternalLink(href: string): boolean;
static getJsxTagName(node: ts.JsxElement | ts.JsxSelfClosingElement): string;
static extractStaticValue(node: ts.Expression): string | null;
static extractRouteConstant(text: string): string | null;
static getCommonElements<T>(arr: T[]): T[];
static calculateAverage(numbers: number[]): number;
static getTypeFromThing(thing: Thing | WithContext<Thing>): string;
static isGraph(schema: WithContext<Thing> | Graph): schema is Graph;
static isThingWithType(item: unknown): item is Thing;
}